IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
openbsd:chinese [2019/11/16 13:32]
jrmu created
openbsd:chinese [2019/11/16 13:38]
jrmu
Line 2: Line 2:
  
 <​code>​ <​code>​
-ubuntu-fonts +$ doas pkg_add ​ubuntu-fonts uim uim-chewing uim-gtk ​\ 
-uim + ​uim-gtk3 zh-fonts-arphicttf zh-fonts-kc zh-libchewing ​\ 
-uim-chewing + ​zh-libpinyin zh-wqy-bitmapfont zh-wqy-zenhei-ttf 
-uim-gtk +</​code>​ 
-uim-gtk3 + 
-zh-fonts-arphicttf +Inside ~/.profile, I put this line: 
-zh-fonts-kc + 
-zh-libchewing +<​code>​ 
-zh-libpinyin +export LC_CTYPE=en_US.UTF-8 
-zh-wqy-bitmapfont +</​code>​ 
-zh-wqy-zenhei-ttf+ 
 +When you need to type Chinese in firefox, I run: 
 + 
 +<​code>​ 
 +$ uim-toolbar-gtk3 
 +</​code>​ 
 + 
 +When I need to type Chinese in Xterm, I type: 
 + 
 +<​code>​ 
 +$ uim-fep 
 +</​code>​ 
 + 
 +To toggle between Chinese and English, type ctrl+space. 
 + 
 +For xterm, I have the following configuration:​ 
 + 
 +<​code>​ 
 +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
 </​code>​ </​code>​