This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
openbsd:chinese [2019/11/16 13:36] jrmu |
openbsd:chinese [2019/11/16 15:51] (current) jrmu |
||
---|---|---|---|
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: | ||
+ | |||
+ | <code> | ||
+ | export LC_CTYPE=en_US.UTF-8 | ||
+ | </code> | ||
+ | |||
+ | You will also want to run that command in your current terminal. | ||
+ | |||
+ | 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 add the following lines: | ||
+ | |||
+ | <code> | ||
+ | XTerm*forcePackedFont: true | ||
+ | XTerm*cjkWidth: false | ||
+ | XTerm*mkWidth: true | ||
+ | xterm*faceName: DejaVu Sans Mono | ||
+ | xterm*faceSize: 25 | ||
+ | </code> | ||
+ | |||
+ | Change xterm*faceSize: 25 to match your desired font size. Open a new xterm window to see the new settings. |