9.10. wprint

Last Update: 2003年 1月29日 周三 06時24分36秒 CST

Contributed by 陳漢儀 ( moto@chuany.net )

Wprint is a filter for Mozilla (Galeon, etc.), Htmldoc, and Netscape PostScript output that uses TrueType fonts to allow the printing of pages written in Unicode, Big5, KOI8, SJIS, the ISO-8859* charsets, and others.

安裝 print/wprint

若要直接列印, 修改 /usr/local/etc/wprint.conf, 加入底下兩行:

fontpath:/usr/local/share/fonts/TrueType/
default:EUC-TW:bkai00mp.ttf=zh_TW.Big5:|lpr -P lp

fontpath 的實際位置請依照您系統的目錄架構, 另外 ttf 字型請依照自己需求修改, 本例子採用文鼎中楷體 ( bkai00mp )。

若要列印成 ps 檔案, 修改 /usr/local/etc/wprint.conf, 加入底下兩行:

fontpath:/usr/local/share/fonts/TrueType/
default:EUC-TW:bkai00mp.ttf=zh_TW.Big5:mybig5.ps

設定最後一行的最後一欄中文 ps 檔案名稱可自訂, 這裡隨意以mybig5.ps 為例,當在 mozilla 中選擇列印到檔案時, 您的 $HOME 會出現 mozilla.ps ( mozilla 預設產生 ) 與 mybig5.ps ( wprint 轉換成中文後的 ps 檔 )。

以更改 mozilla 印表機選項為例,原來的列印流程:

mozilla -> print -> lpr

現在要改成:

mozilla -> print -> wprint -> lpr

設定步驟如下: 請選擇下拉選單的 『 列印 』-> 點選 『 印表機 』 右側的 『 屬性 』鍵 -> 將 『印命令 』由原來的 『 lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME} 』 改為 『 wprint 』

WWW: http://ttt.esperanto.org.uy/programoj/angle/wprint.html