
On Thu, 18 Apr 2002, Mike Fabian wrote:
Wolfgang Slany <wsi@dbai.tuwien.ac.at> writes:
How to tweak xemacs to print text files (including Japanese text)?
I think that doesn't work yet from XEmacs, unfortunately.
[...]
There is the Perl script a2ps.pl by Kazumasa Utashiro <utashiro@iij.ad.jp>
[...]
I'm almost sure that it is already available on the German SuSE Linux 7.3 CDs/DVD. If not it can be downloaded here:
ftp://ftp.suse.com/pub/suse/i386/7.3/suse/j2/a2ps-perl-ja.rpm
The command line options of a2ps.pl are completely different to those of the a2ps. Have a look at the output of 'a2ps -help'.
[...]
This PostScript file can be printed on a Japanese PostScript printer or with Ghostscript which is automatically used by the SuSE print filter system if you have configured your printer as a non-PostScript printer.
a2ps.pl was indeed installed and prints the Japanese files as described. To get xemacs to print from the button, I added the following Perl script to /usr/bin: a2ps-lpr.pl: ============================================================== #!/usr/bin/perl ;# ;# a2ps-lpr.pl: ascii to ps | lpr ;# open F, "| a2ps.pl -p -ns -nh -nt -fx1.5 | lpr"; while (<>) { print F; } close F; =============================================================== Additionally, I added the following lines to /home/user/.xemacs/init.el: =============================================================== ;;---------------------------------------------------------------------- ;; Print Japanese: (when (string-match "XEmacs" emacs-version) (setq lpr-command "a2ps-lpr.pl")) =============================================================== Many thanks and best regards, Wolfgang Wolfgang SLANY mailto:wsi@dbai.tuwien.ac.at