支持中文! 详细步骤请参考 Wine Documentation 中关于 Printing的内容. 简单步骤: 1. 从Wine源码包中找到 generic.ppd 文件, 编译好的rpm包中通常没有. 或者到这儿下载: ftp://jcnp.pku.edu.cn/unix/tools/wine/ 把 generic.ppd 拷贝到 /etc/wine/ 2. 修改 config [spooler] "LPT1:" = "|cat >/tmp/wine.ps" "LPT2:" = "|lpr" 其中 "cat >/tmp/wine.ps" 表示打印到文件, lpr表示用 /etc/printcap 中的默认打印机打印. 3. 修改 ~/.wine/win.ini 添加: [windows] device=Wine PostScript Driver,WINEPS,LPT1: [devices] Wine PostScript Driver=WINEPS,LPT1: 4. 修改 ~/.wine/system.reg 添加: [System\\CurrentControlSet\\Control\\Print\\Environments\\Windows 4.0\\Drivers\\PS Driver] 1038148770 "Configuration File"="wineps.drv" "Data File"="<datafile?>" "Datatype"="RAW" "Dependent Files"=str(7):"" "Driver"="wineps.drv" "Help File"="<helpfile?>" "Help Files"="" "Monitor"="<monitor name?>" "Version"=dword:00000400 [System\\CurrentControlSet\\Control\\Print\\Printers\\Wine PostScript Driver] 1038147402 "Attributes"=dword:00000000 "Default Devmode"=hex:57,69,6e,65,20,50,6f,73,74,53,63,72,69,70,74,20,44,72,69,\ 76,65,72,00,00,00,00,00,00,00,00,00,00,0a,03,01,00,9c,00,08,00,13,7b,00,00,\ 01,00,09,00,9a,0b,33,08,64,00,01,00,07,00,00,00,02,00,00,00,00,00,03,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "Name"="Wine PostScript Driver" "Port"="LPT1:" "Print Processor"="WinPrint" "Printer Driver"="PS Driver" "Priority"=dword:00000000 "Start Time"=dword:00000000 "Status"=dword:00000000 "Until Time"=dword:00000000 [System\\CurrentControlSet\\Control\\Print\\Printers\\Wine PostScript Driver\\PrinterDriverData] 1001545261 "PPD File"="/etc/wine/generic.ppd" [System\\CurrentControlSet\\Control\\Print\\Printers\\Wine PostScript Driver\\PrinterDriverData\\FontSubTable] 1038033224 "Arial"="Helvetica" "Courier New"="Courier" "Helv"="Helvetica" "Times New Roman"="Times"
分享到:
|