Subsections

2 ¤¤¤åÀô¹Ò³]©w

2.1 §Ú²{¦b­n¦w¸Ë Debian¡A§Ú·Q¨Ï¥Î¤¤¤å¡A»Ý­n«ç»ò°µ©O¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



©M¥¿±`¦w¸Ë Debian ¤@¼Ë¨S¦³¤°»ò¯S§O¡A¦b¦w¸Ë¹Lµ{¤¤¿ï¾Ü task-chinese-s(²Åé) ©Î task-chinese-t (ÁcÅé)¡C¦³¤@ÂI­nª`·N¡A potato ¦w¸Ë®É¡A ¦³¥i¯à¥X²{¦³¨Ç®M¥ó¿ï¤F¡A¦ý¬O¨S¦³¦w¸Ë¤W¡A³o®É»Ý­n±z¤â°Ê°õ¦æ dselect¡A ª½±µ¶i¤J Install ¿ï³æ´N¥i¥H¤F¡C

2.2 §Ú¤w¸g¦³¤F Debian ¨t²Î¡A§Ú«ç¼Ë²K¥[¤¤¤å¤ä´©¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



½T»{±zªº /etc/apt/sources.list ³]¸m¥¿½T¡A°õ¦æ©R¥Oapt-get install task-chinese-s (²Åé) ©Î apt-get install task-chinese-t (ÁcÅé)¡C

2.3 ¦p¦ó¬° libc6 2.2 ¥Í¦¨ locale ÀɮסH

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



±q libc6 2.2 ¶}©l locale Àɮ׻ݭn±z¦Û¤v¨Ó¥Í¦¨¡C½s¿è /etc/locale.gen¡A ¥h±¼±z»Ý­nªº locale ªºª`ÄÀ¡AµM«á¥H root ¨­¥÷¨Ó°õ¦æ locale-gen¡C

2.4 §Ú¤w¸g¦w¸Ë¤F¤¤¤å¤ä´©¡AÁٻݭn§@¤°»ò¤~¯à¥¿±`¨Ï¥Î¤¤¤å¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



½T»{±z³]©w¤F¥H¤U°Ñ¼Æ (bash) ¡G

$(HOME)/.bashrc
alias ls=``ls -show-control-chars''
export LC_ALL=zh_CN.GB23122
export LC_CTYPE=zh_CN.GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=``@im=Chinput''3
stty cs8 -istrip
stty pass8

$(HOME)/.inputrc
set meta-flag on
set convert-meta off
set output-meta on

2.5 ª¢¶À¤¤¤å¥­¥x¤U¬°¤°»òÁ`¥X²{¥ô¦ó¿é¤J³£¨S¦³¤ÏÀ³ªº±¡ªp¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



ª¢¶À¤¤¤å¥­¥x¥Ø«e¥u¤ä´© vt100 ²×ºÝÃþ«¬¡A©Ò¥H¦b±Ò°Êª¢¶À¥­¥x«e¥ý°õ¦æ export TERM=vt100¡A¤]¥i¥H§â³o±ø©R¥O©ñ¨ì $(HOME)/.bashrc ùØ¡C

2.6 §Ú«ç»ò¯àÅý XFree86 3.3.6 ¨Ï¥Î TrueType ¦r«¬©O¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



½T»{¤w¸g¦w¸Ë¨Ã±Ò°Ê xfs-xtt ¦r«¬¦øªA¾¹¡AµM«á¦b /etc/X11/XF86Config ªº Section ``Files'' ¤p¸`¤¤¥[¤J FontPath ``unix/localhost:7100''¡C

2.7 §Ú«ç»ò¯àÅý XFree86 4.0 ¨Ï¥Î TrueType ¦r«¬©O¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



XF4.0.2 ¨Ï¥Î xtt ªº module ¨Ó¤ä´© GB/Big5 ªº TrueType ¦r«¬¡A¤w¸g¤£¦A»Ý­n xfs-xtt ¤F¡C ¦b /etc/X11/XF86Config-4 ªº Section ``Files'' ¤p¸`¤¤¥[¤J FontPath ``/usr/lib/X11/fonts/TrueType''¡A µM«á±N Load ``freetype'' ´À´«¦¨ Load ``xtt'' ´N¥i¥H¤F¡C ¥i¥H±N FontPath ``unix/:7100'' ª`ÄÀ±¼¡C

Contributed by: mailto:foka@debian.orgAnthony Fok 2001/08/23



¦pªG§A¥Îªº¬O woody/sid ¡A¨Ã¥B x-ttcidfont-conf ª©¥»¬O3.5¥H¤W¡A½Ð¦b /etc/X11/XF86Config-4ªº Section ``Files'' ¥[¤W¡G

FontPath ``/usr/lib/X11/fonts/defoma/TrueType/''
FontPath ``/usr/lib/X11/fonts/defoma/CID/''

Contributed by: mailto:ygh@debian.orgYu Guanghui 2002/01/04



¦pªG±z¥Îªº¬O x-ttcidfont-conf ª©¥» 8 ¥H¤W¡A½Ð°µ¦p¤U­×§ï /etc/X11/XF86Config-4ªº Section ``Files'' ¥[¤W¡G

FontPath ``/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/''
FontPath ``/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/''

Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/10/20



½Ðª`·N¤É¯Å x-ttcidfont-conf ¨ìª©¥» 7 ¥H¤W¡C³o­Óª©¥»­×¥¿¤F¦b¨Ï¥Î xtt ¦r«¬¦øªA¾¹ ªº®É­Ô¥u¦³¶ÂÅé©M±×Åé¦rªº°ÝÃD¡C

2.8 §Ú¥Î xfs-xtt ÁY©ñ¦r«¬«á¡A¬°¤°»ò X Åܪº¯S§OºC¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



³o¬O¦]¬°±z±Ò°Ê X ®É¨S¦³¥[¤J -deferglyphs 16 ªº°Ñ¼Æ¡C³o¼Ë¸Ü xfs-xtt ´N ·|¸Õ¹Ï²£¥Í¥þ³¡ªº¦r«¬¡C¦]¦¹­n¥Î startx -- -deferglyphs 16 ¨Ó±Ò°Ê X¡C ¦pªG¨Ï¥Î xdm ªº¸Ü¡A´N­n¦b /etc/X11/xdm/Xserver ùØ¥[¤J -deferglyphs 16¡C

2.9 «ç¼Ë¤~¯à¨Ï¥Î XCIN ¿é¤J¤¤¤å©O¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



XCIN ¨Ï¥Îªº¬O XIM ¨óij¡A¥u¦³¤ä´© XIM ªºµ{¦¡¤~¯à±µ¨ü XCIN ¿é¤J¡C ¦b°õ¦æÀ³¥Îµ{¦¡«e¡A­n¥ý¹B¦æ XCIN¡A¨Ã¥B³]©w XMODIFIERS=``@im=xcin-zh_CN.GB2312''¡C¥i¥H¦b $(HOME)/.bashrc ùØ¥[¤J export XMODIFIERS=``@im=xcin-zh_CN.GB2312''¡C µM«á´N¥i¥H¥Î ctrl+space ¨Ó¿E¬¡¿é¤Jªk¡C¦pªG¬O¦b Big5 ¼Ò¦¡¡A½Ð³]©w XMODIFIERS=``@im=xcin''¡F«á­±¦pªG¥[¤W ``-zh_TW.Big5'' ´N¤Ï¦Ó¤£¦æ¤F¡C Xcin uses the XIM protocol, so only applications that support XIM will accept xcin input. Before running the application, you should start xcin, and set:

export XMODIFIERS=``@im=xcin-zh_CN.GB2312''
at the command line or in your $(HOME)/.bashrc to select simplified Chinese support. After starting the application, you can use ctrl-space to toggle input methods.
To use traditional Chinese, set XMODIFIERS to ``@im=xcin''. Adding ``-zh_TW.Big5'' will not work.


Contributed by: mailto:foka@debian.orgAnthony Fok 2000/12/10



§ó²³æªº¿ìªk¡A¬O¥ý¤É¯Å¦Ü Debian 2.2r2 ùتº xcin-2.5.2 ª©¡A©Î Debian unstable (woody) ùتº xcin-2.5.2.2 ª©¡AµM«á±z´N¥i¥Hª½±µ±q¿ï³æ±Ò°Ê XShell $\rightarrow$ XCINterm (Big5) ©Î XCINterm (GB2312)¡A©Î±q¥ô¦ó shell ªº´£¥Ü²Å¹B¦æ xcinterm-big5 ©Î xcinterm-gb)¡A¨t²Î´N·|¦Û°Ê¬°±z¥´¶}¥i¥H¿é¤J¤¤¤åªº xcin ¦øªA¾¹©M crxvt ²×ºÝ¤F¡C

2.10 «ç¼Ë¤~¯à¨Ï¥Î Chinput ¿é¤J¤¤¤å©O¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/11/19



Chinput ¥Ø«eÁÙ¨S¦³¥¿¦¡¯Ç¤J Debian¡A¦]¬° Chinput ­n¨Ï¥Î UNICON ªº¿é¤Jªk¡A ¦Ó UNICON Áٻݭn°µ¶i¤@¨Bªº´ú¸Õ¡C±z¥i¥H±q¡G
http://master.debian.org/~ygh/unicon-im_3.0-1_i386.deb
http://master.debian.org/~ygh/chinput_3.0.1-1_i386.deb
¤U¸ü©M¦w¸Ë unicon-im ©M chinput¡C
chinput ¨Ï¥Îªº¤]¬O XIM ¨óij¡A¥u¦³¤ä´© XIM ªºµ{¦¡¤~¯à±µ¨ü¿é¤J¡C ¦b°õ¦æÀ³¥Îµ{¦¡«e¡A­n¥ý°õ¦æ chinput¡A¨Ã¥B³]©w XMODIFIERS=``@im=Chinput''¡C¥i¥H¦b $(HOME)/.bashrc ùØ¥[¤J export XMODIFIERS=``im=Chinput''¡C µM«á´N¥i¥H¥Î ctrl+space ¨Ó¿E¬¡¿é¤Jªk¡C»Ý­nª`·Nªº¬O¹w³]ªº chinput ®M¥ó¨Ï¥Îªº¬O TrueType ¦r«¬¡C

¸Éµù¡Gchinput ©M unicon-im ¤w¸g¶¶§Q¶i¤J Debian unstable ùØ­±¤F¡C¦U¦ì¨Ï¥Î unstable ªºªB¤Í¡A¥Î apt-get install chinput unicon-im ´N¥i¥H¤F¡C

Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/10/20



ª`·N¡G chinput ¥u¯à¨Ï¥Î16ÂI°}ªº¦r«¬¡C

2.11 ³]©w¦n¤¤¤åÀô¹Ò«á¡Aicewm ªºµøµ¡¼ÐÃD«ç»òÅܪº¯S§O¤j¡H

Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/01/05



§A»Ý­n¤â°Ê§ï¤@¤U icewm ªº°t¸m¤å¥ó¡A³]©w¤@¤Uµøµ¡ªº¤å¦rªº¤j¤p¡C¥i¥H¥ý±N /etc/X11/icewm/preferences ½Æ»s¬° $(HOME)/.icewm/preferences¡A µM«á­×§ï $(HOME)/.icewm/preferences¡C §ä¨ì #TitleFontName="-adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*"¡A ­×§ï TitleFontName="-default-song-bold-r-normal--16-160-72-72-c-160-gb2312.1980-0" ©Î TitleFontName="-default-ming-bold-r-normal--16-160-72-72-c-160-big5-0"¡C

2.12 cce, crxvt


Debian ¤¤¤å­p¹º