Mailinglist Archive: opensuse-m17n (18 mails)
| < Previous | Next > |
Re: [m17n] suse 7.3 xemacs(mule) printing problem
- From: Mike Fabian <mfabian@xxxxxxx>
- Date: Mon, 22 Apr 2002 12:29:40 +0000 (UTC)
- Message-id: <s3td6ws139u.fsf@xxxxxxxxxxxxxxx>
Wolfgang Slany <wsi@xxxxxxxxxxxxxxxxx> writes:
[...]
> 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"))
> ===============================================================
Good idea! That's a really convenient workaround.
I wrote that I wanted to try whether the ps-print.el of GNU Emacs can
be made to work with XEmacs. It looks like somebody has already done
this and recent versions of the XEmacs Sumo tarballs already contain a
recent version of ps-print.el taken from GNU Emacs.
I.e. ps-print.el for XEmacs will likely work as soon as I update
XEmacs.
I'll try to do that during the next weeks and upload the new rpms to
the SuSE ftp server.
--
Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
[...]
> 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"))
> ===============================================================
Good idea! That's a really convenient workaround.
I wrote that I wanted to try whether the ps-print.el of GNU Emacs can
be made to work with XEmacs. It looks like somebody has already done
this and recent versions of the XEmacs Sumo tarballs already contain a
recent version of ps-print.el taken from GNU Emacs.
I.e. ps-print.el for XEmacs will likely work as soon as I update
XEmacs.
I'll try to do that during the next weeks and upload the new rpms to
the SuSE ftp server.
--
Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
| < Previous | Next > |