How to tweak xemacs to print text files (including Japanese text)? My
Suse 7.3 (german, professional) xemacs with Japanese support sends the
text to the apsfilter but a2ps then fails. Sending euc encoded files
directly to a2ps produces bakemoji, so my a2ps seems not to support
Japanese. Is there a simpler solution than replacing a2ps with a
patched version (as in http://www.on.cs.keio.ac.jp/~yasu/jp_a2ps.html)
when I have all Japanese packages from Suse 7.3 (german, professional,
dvd) installed? Also, there seems to be some unrelated encoding
problem (see the end of this memo) that makes a2ps think a shifted-jis
encoded file was sent to it instead of the normal euc encoded one
(that is specified in xemacs).
Printing Japanese html pages from netscape works fine, and gs can
print latex'ed Japanese files fine.
Some details:
# a2ps --version
GNU a2ps 4.13
After the failed printing from xemacs, I get the following mail
From: (STDIN)
Subject: apsfilter: printer fault during job (STDIN)
apsfilter: unable to print job (STDIN)
Additionally, lpq -lllll reports (first failure after issuing a M-x
ps-print-buffer, second failure after pressing the "Print" button):
user@linux:~> lpq -lllll
Printer: lp@linux 'y2prn_lp.upp auto'
Queue: no printable jobs in queue
Status: job 'cfA280linux.local' error 'aborting operations' at
06:35:49.373
Status: sending mail to 'root' at 06:35:49.375
Status: removing job 'cfA280linux.local' - ABORT at 06:35:49.807
Status: waiting for subserver to exit at 06:36:40.013
Status: subserver pid 1346 starting at 06:36:40.217
Status: opening device '/dev/lp0' at 06:36:40.218
Status: printing job 'user@linux+344' at 06:36:40.219
Status: processing 'dfA344linux.local', size 13152, format 'l', IF filter
'y2prn_lp.upp--auto-lp' at 06:36:40.220
Status: IF filter 'y2prn_lp.upp--auto-lp' filter msg - '%%[ Error:
syntaxerror; OffendingCommand: --nostringval-- ]%%' at 06:36:47.890
Status: IF filter 'y2prn_lp.upp--auto-lp' filter msg - 'GNU Ghostscript
6.51: Unrecoverable error, exit code 1' at 06:36:47.892
Status: IF filter 'y2prn_lp.upp--auto-lp' filter exit status 'JABORT' at
06:36:48.683
Status: printing finished at 06:36:48.684
Status: finished 'user@linux+344', status 'JABORT' at 06:36:48.684
Status: subserver pid 1346 exit status 'JABORT' at 06:36:48.688
Status: job 'cfA344linux.local' error 'aborting operations' at
06:36:48.723
Status: sending mail to 'root' at 06:36:48.726
Status: removing job 'cfA344linux.local' - ABORT at 06:36:49.217
Status: subserver pid 1964 starting at 09:43:42.917
Status: opening device '/dev/lp0' at 09:43:42.935
Status: waiting for subserver to exit at 09:43:43.408
Status: printing job 'user@linux+962' at 09:43:43.436
Status: processing 'dfA962linux.local', size 146, format 'l', IF filter
'y2prn_lp.upp--auto-lp' at 09:43:43.437
Status: IF filter 'y2prn_lp.upp--auto-lp' filter msg - 'a2ps: unknown
encoding `ja_jp.sjis'' at 09:43:49.574
Status: IF filter 'y2prn_lp.upp--auto-lp' filter msg - '%%[ Error:
typecheck; OffendingCommand: closefile ]%%' at 09:43:55.702
Status: IF filter 'y2prn_lp.upp--auto-lp' filter msg - 'GNU Ghostscript
6.51: Unrecoverable error, exit code 1' at 09:43:55.705
Status: IF filter 'y2prn_lp.upp--auto-lp' filter exit status 'JABORT' at
09:43:57.540
Status: printing finished at 09:43:57.541
Status: finished 'user@linux+962', status 'JABORT' at 09:43:57.541
Status: subserver pid 1964 exit status 'JABORT' at 09:43:57.622
Status: job 'cfA962linux.local' error 'aborting operations' at
09:43:57.722
Status: sending mail to 'root' at 09:43:57.725
Status: removing job 'cfA962linux.local' - ABORT at 09:43:58.213
As mentioned in the beginning, the "unknown encoding `ja_jp.sjis'" is
also weird since (I believe) I set xemacs to encode files as euc-jp. I
may be wrong, but I copied everything from
http://www.suse.de/~mfabian/suse-cjk/emacs-and-xemacs.html to my
~/.xemacs/init.el file.
Thanks for any simple help and best regards, Wolfgang
Wolfgang SLANY mailto:wsi@dbai.tuwien.ac.at