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

Link to this comparison view

Both sides previous revision Previous revision
openbsd:chinese [2019/11/16 13:38]
openbsd:chinese [2019/11/16 15:51] (current)
Line 6: Line 6:
  ​zh-libpinyin zh-wqy-bitmapfont zh-wqy-zenhei-ttf  ​zh-libpinyin zh-wqy-bitmapfont zh-wqy-zenhei-ttf
 </​code>​ </​code>​
 +This includes the font packs and UIM input engine for zhuyin (chewing) and pinyin.
 Inside ~/.profile, I put this line: Inside ~/.profile, I put this line:
Line 12: Line 14:
 export LC_CTYPE=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8
 </​code>​ </​code>​
 +You will also want to run that command in your current terminal.
 When you need to type Chinese in firefox, I run: When you need to type Chinese in firefox, I run:
Line 27: Line 31:
 To toggle between Chinese and English, type ctrl+space. To toggle between Chinese and English, type ctrl+space.
-For xterm, I have the following ​configuration:+For xterm, I add the following ​lines:
 <​code>​ <​code>​
-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*forcePackedFont:​ true
 XTerm*cjkWidth:​ false XTerm*cjkWidth:​ false
 XTerm*mkWidth:​ true XTerm*mkWidth:​ true
-XTerm*visualBell:​ true 
 xterm*faceName:​ DejaVu Sans Mono xterm*faceName:​ DejaVu Sans Mono
 xterm*faceSize:​ 25 xterm*faceSize:​ 25
-#! Fix for DJVSM low-hanging underscore, adds line spacing: 
-#​xterm*scaleHeight:​ 1.01 
 </​code>​ </​code>​
 +Change xterm*faceSize:​ 25 to match your desired font size. Open a new xterm window to see the new settings.