[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:24293] magicfilter で日本語を印刷するには



谷口です。

CANON BJC-465j というプリンタを使っています。
/etc/printcap が

# /etc/printcap: printer capability database. See printcap(5).
# You can use the filter entries df, tf, cf, gf etc. for
# your own filters. See the printcap(5) manual page for further 
# details.

lp|Generic dot-matrix printer entry
        :lp=/dev/lp0
        :sd=/var/spool/lpd/lp
        :af=/var/log/lp-acct
        :lf=/var/log/lp-errs
        :pl#66
        :pw#80
        :pc#150
        :mx#0
        :sh

# rlp|Remote printer entry
#         :lp=
#         :rm=remotehost
#         :rp=remoteprinter
#         :sd=/var/spool/lpd/remote
#         :mx#0
#         :sh

のときに、

gs -dNOPAUSE -sOutputFile=\|lpr -sDEVICE=bjc600 file.ps -c quit

では正常に日本語が印刷できます。
しかし、magicfilter をいれて、
/etc/printcap を
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#	@(#)etc.printcap	5.2 (Berkeley) 5/5/88
#
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|bjc465j|CANON BJC-465j:\
	:lp=/dev/lp0:sd=/var/spool/lpd/bjc465j:\
	:sh:pw#80:pl#72:px#1440:mx#0:\
	:if=/etc/magicfilter/bj600-filter:\
	:af=/var/log/lp-acct:lf=/var/log/lp-errs:

と作ってもらって、
lpr file.ps
とすると日本語が印刷できません。日本語の部分が記号のようなものの羅列に
なります。どうすれば日本語が正常に印刷できるようになるでしょうか??
宜しくお願いします。

Debian 2.2 (potato)
Printer : CANON BJC-465j

ii  magicfilter    1.2-39

ii  gs             5.10-9.1
ii  gsfonts        5.10a-2 
ii  gsfonts-other  5.10-2  
ii  gsfonts-x11    0.12    

-----
Norio Taniguchi <white@xxxxxxxxxxxxx>
http://www.susono.com/~norio/linux/