{"id":621,"date":"2004-06-01T12:38:17","date_gmt":"2004-06-01T04:38:17","guid":{"rendered":"http:\/\/www.yuleshow.com\/?p=621"},"modified":"2004-06-01T12:38:17","modified_gmt":"2004-06-01T04:38:17","slug":"chinese_solution_for_emacs","status":"publish","type":"post","link":"https:\/\/www.yuleshow.com\/?p=621","title":{"rendered":"Chinese solution for emacs"},"content":{"rendered":"<h1 class=\"english-h1\">Chinese solution for emacs<\/h1>\n<pre>\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n====================================================================================================\nNTEmacs Chineselization\nVersion: NTEmacs 21.1\nEnvironment: cygwin, Windows 2000 SP2\n===================================================================================================\n1. Check menu Options-&gt;Mule-&gt;Set Language Environment-&gt;Chinese-&gt;Chinese-GB\nTurn on Chinese mode\n2. Click menu Options-&gt;Save Options\n3. WuBi input method\nDownload WuBi.tar.gz from http:www.linux.org.cn\/emacs\/WuBi.tar.gz or http:www.17fun.org\/emacs\/WuBi.tar.gz\nExtract both WuBi.el and WuBi.elc to DRIVE:\/...\/emacs-21.1\/lisp\nAdd following into .emacs\n; Chinese Wubi IME\n(register-input-method  \"chinese-wubi\" \"Chinese-GB\" 'quail-use-package \"WuBi\" \"ChIME::YuleWB::\" \"WuBi\")\nIf you like to set WuBI as default Chinese IME, just open .emacs and find \"chinese-py-punct\" change to\n\"chinese-wubi\".\n4. Add following line into .emacs for change font menu to Unix style\n; Set font select style to Unix\n(setq w32-use-w32-font-dialog nil)\n5. Install BDF fonts\nReference: http:www.gnu.org\/software\/emacs\/windows\/faq5.html#windows-font\nI. Download BDF fonts of ftp:ftp.gnu.org\/gnu\/intlfonts\/intlfonts-1.2-split\/16dots.tar.gz\nExtract 16dots.tar.gz to a directory\ni.e. i:\/gnu\/intlfonts-1.2\nII. Set bdf font directory, add following lines into .emacs\n; bdf font directory\n(setq bdf-directory-list\n'(\"i:\/gnu\/intlfonts-1.2\/Asian\" \"i:\/gnu\/intlfonts-1.2\/Chinese\" \"i:\/gnu\/intlfonts-1.2\/Chinese.X\"\n\"i:\/gnu\/intlfonts-1.2\/Ethiopic\" \"i:\/gnu\/intlfonts-1.2\/European\" \"i:\/gnu\/intlfonts-1.2\/Japanese\"\n\"i:\/gnu\/intlfonts-1.2\/Japanese.X\" \"i:\/gnu\/intlfonts-1.2\/Korean.X\" \"i:\/gnu\/intlfonts-1.2\/Misc\/\"))\n(setq w32-bdf-filename-alist\n(w32-find-bdf-fonts bdf-directory-list))\nIII. Create fontset by add following lines into .emacs\n(create-fontset-from-fontset-spec\n\"-*-fixed-medium-r-normal-*-16-*-*-*-c-*-fontset-bdf,\njapanese-jisx0208:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1983-*,\nkatakana-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,\nlatin-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,\njapanese-jisx0208-1978:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1978-*,\nthai-tis620:-misc-fixed-medium-r-normal--16-160-72-72-m-80-tis620.2529-1,\nlao:-misc-fixed-medium-r-normal--16-160-72-72-m-80-MuleLao-1,\ntibetan-1-column:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-80-MuleTibetan-1,\nethiopic:-Admas-Ethiomx16f-Medium-R-Normal--16-150-100-100-M-160-Ethiopic-Unicode,\ntibetan:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-160-MuleTibetan-0\")\nIV. Add bdf font to font-encoding-alist\n;; Need to add some fonts to font-encoding-alist since the bdf fonts\n;; are type 0 not the default type 1.\n(setq font-encoding-alist\n(append '((\"MuleTibetan-0\" (tibetan . 0))\n(\"GB2312\"        (chinese-gb2312 . 0))\n(\"JISX0208\"      (japanese-jisx0208 . 0))\n(\"JISX0212\"      (japanese-jisx0212 . 0))\n(\"VISCII\"        (vietnamese-viscii-lower . 0))\n(\"KSC5601\"       (korean-ksc5601 . 0))\n(\"MuleArabic-0\"  (arabic-digit . 0))\n(\"MuleArabic-1\"  (arabic-1-column . 0))\n(\"MuleArabic-2\"  (arabic-2-column . 0))) font-encoding-alist))\nV. Set DBF font as default\n(set-default-font \"fontset-bdf\")\n6. Bonus option: add following line can change to a good background color, which is my favorite.\n; Set background color\n(set-background-color \"mintcream\")\n====================================================================================================\nEnd of NTEmacs Chineselization\n====================================================================================================\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Chinese solution for emacs ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ==================================================================================================== NTEmacs Chineselization Version: NTEmacs 21.1 Environment: cygwin, Windows 2000 SP2 =================================================================================================== 1. Check menu Options-&gt;Mule-&gt;Set Language Environment-&gt;Chinese-&gt;Chinese-GB Turn on Chinese mode 2. Click menu Options-&gt;Save Options 3. WuBi input method Download WuBi.tar.gz from http:www.linux.org.cn\/emacs\/WuBi.tar.gz or http:www.17fun.org\/emacs\/WuBi.tar.gz Extract both WuBi.el and WuBi.elc to DRIVE:\/&#8230;\/emacs-21.1\/lisp Add following into .emacs ; Chinese [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-emacs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":0,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}