Re: how to print unicode encoded file to ps
- To: debian-user@lists.debian.org
- Subject: Re: how to print unicode encoded file to ps
- From: JWS <jstumpel@planet.nl>
- Date: Mon, 02 Apr 2007 19:05:46 +0200
- Message-id: <[🔎] 461137EA.1020809@my.home>
- In-reply-to: <85wXc-7yE-5@gated-at.bofh.it>
- References: <85vHP-5FA-29@gated-at.bofh.it> <85vHP-5FA-31@gated-at.bofh.it> <85vHP-5FA-33@gated-at.bofh.it> <85vHP-5FA-35@gated-at.bofh.it> <85vHP-5FA-27@gated-at.bofh.it> <85wXc-7yE-5@gated-at.bofh.it>
Jeff Zhang wrote:
> [Try it] with simple unicode encoding file (test.txt), like:
> chinese 中文
> then produce with:
> u2ps -X utf8 --gpfamily="Sans 12" test.txt -o u2ps.ps
> paps --font "Sans 12" < test.txt >paps.ps
It must have something to do with installed fonts. I repeated your
experiments exactly, but when viewing the .ps files with gv:
- u2ps.ps had rectangles instead of 中文
- paps.ps displayed 中文 correctly.
Maybe this is because I do not have the Chinese fonts that you
mentioned (like GnomeUni-MicrosoftYaHei_005) installed. Because of
fontconfig, this does not matter with paps; it just finds another
font which has the "中" and "文" characters. But u2ps cannot.
I hope the unicode characters in this message make it to the list..
Regards, Jan
Reply to: