IRCNow

This is an old revision of the document!


I download these packages:

$ doas pkg_add ubuntu-fonts uim uim-chewing uim-gtk \
 uim-gtk3 zh-fonts-arphicttf zh-fonts-kc zh-libchewing \
 zh-libpinyin zh-wqy-bitmapfont zh-wqy-zenhei-ttf

Inside ~/.profile, I put this line:

export LC_CTYPE=en_US.UTF-8

When you need to type Chinese in firefox, I run:

$ uim-toolbar-gtk3

When I need to type Chinese in Xterm, I type:

$ uim-fep

To toggle between Chinese and English, type ctrl+space.

For xterm, I have the following configuration:

XTerm*loginShell:true
XTerm*foreground: white
XTerm*background: black
XTerm*metaSendsEscape: true
XTerm*scrollBar: false
#XTerm*font: -adobe-courier-bold-r-*-*-34-*-*-*-*-*-*-*
XTerm*VT100.geometry: 70x22
XTerm*forcePackedFont: true
XTerm*cjkWidth: false
XTerm*mkWidth: true
XTerm*visualBell: true
xterm*faceName: DejaVu Sans Mono
xterm*faceSize: 25
#! Fix for DJVSM low-hanging underscore, adds line spacing:
#xterm*scaleHeight: 1.01