Article View: cu.linguistics
Article #340Printing Asian Languages on Babel
From: Douglas Roland
Date: Wed, 24 Feb 1999 00:00
Date: Wed, 24 Feb 1999 00:00
81 lines
3780 bytes
3780 bytes
We can now print text files containing Chinese, Japanese, and Korean text from Babel. The command for printing in these languages is 'cnprint'. See below for usage info. Let me know if there are any bugs or suggestions for the README file. This command only works for text data, not fancy web pages. If you wish to print web pages in these languages, there are two options: 1 - save them as text only (in Netscape, etc), which will lose the graphics, and print them using cnprint. 2 - if you want to keep graphics and other formatting, then use Windows software such as MS Internet Explorer plus the appropriate (free) downloadable language pack. If you also get the global IME, you can even input text in your favorite language (but only in IE and Outlook) The following is a copy of the README file for cnprint which can be found on Babel at: /home/speech/bin/README-cnprint =============================================================== Instructions for cnprint: You need to set a font path in .cshrc: setenv HBFPATH /home/speech/fonts You also need to add /home/speech/bin to your path This program is used to print text files containing double byte characters - ie most characters used in Asian languages such as Chinese, Japanese, and Korean. Note that these languages use multiple coding schemes (imagine multiple varieties of ascii for English), so you need to know which system your file uses. Here are the coding schemes and some sample corpora and other data: Chinese big5 - tw.putonghua corpus and most files from Taiwan gb - no, not Chomsky. call home mandarin, files from China Japanese euc - call home Japanese, Japanese Unix files jis or jis8 - Most newer Japanese files, including Windows files and most WWW stuff Korean ksc - most? all? Korean data Other There are other systems supported by cnprint. Enter cnprint -h for a list or read cnprint290.help Usage: You must include the input file type, or you will get garbage (bakemoji) for output. cnprint -euc japanese-sample.txt cnprint -big5 chinese-sample.txt etc. Other useful flags are: -w generates a postscript file but doesn't print -i skips dialog that normally appears before printing -q=laserps (ie -q=cuneifrm, -q=cyrillic) chose a printer (cyrillic is default) see cnprint -h and cnprint190.help for more details. You can also choose an output font, but cnprint does choose an appropriate default based on the input flag (-euc, -big5, etc). NETSCAPE: use -i option when printing from netscape (to avoid dialog) only (and/or sometimes) works for text files - netscape appears to generate ps output automatically ps is *not* good input for cnprint - it will generate pages of junk. ============================================================== Douglas Roland γγΌγ©γ³γγ»γγ°γ©γΉ Department of Linguistics γ¨γγΎγͺθ¨θͺε¦θ University of Colorado γ³γγ©γε€§ε¦ http://rintintin.colorado.edu/~rolandd rolandd@colorado.edu ==============================================================
Technical Details
Message-ID:
<919914895.17508@news.Colorado.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 100e15,bcc79904888e8711,start X-Google-Attributes: gid100e15,public From: Douglas Roland <Douglas.Roland@Colorado.EDU> Subject: Printing Asian Languages on Babel Date: 1999/02/24 Message-ID: <919914895.17508@news.Colorado.EDU> X-Deja-AN: 448169535 Distribution: cu Sender: daemon@lace.colorado.edu Content-Type: text/plain; charset="ISO-2022-JP" X-Note1: message-id generated by recnews X-Note2: mail msgid was <199902250354.UAA22627@rintintin.Colorado.EDU> Organization: University of Colorado at Boulder Mime-Version: 1.0 Reply-To: Douglas.Roland@Colorado.EDU Newsgroups: cu.linguistics