From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: Re: Chinese characters missing in .ps output file Date: Mon, 22 Dec 2008 15:41:53 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <87wsdsgqta.fsf@gmail.com> References: <87zliqq21s.fsf@gmail.com> <87lju9tgn7.fsf@gmail.com> <87prjl895u.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1229974908 15532 80.91.229.12 (22 Dec 2008 19:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 19:41:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 22 20:42:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LEqg0-0003NN-AT for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 20:42:52 +0100 Original-Received: from localhost ([127.0.0.1]:57042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEqen-00052D-JD for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 14:41:37 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!195.208.113.2.MISMATCH!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rqVd8TB+cnOYk3GUV2b1DQCl1co= Original-Lines: 55 Original-NNTP-Posting-Host: 151.82.1.163 Original-X-Trace: news.sunsite.dk DXC=d>M3h>?aR[TlW2_Qa?Yk]^YSB=nbEKnk[L?8>K\5E[I[:AocXk=\=_TT7bXfBO; G:UKAib\KDO`hR\kGdmDA3=IY8S0]j>N9IMUZ_i@2OIn List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60904 Archived-At: Peter Dyballa writes: > try htmlize.el by Hrvoje Nikšić: http://fly.srk.fer.hr/ > ~hniksic/emacs/htmlize.el. A sample of its capabilities can be seen here: > http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html – missing some CJK and > other non-Latin content. Lennart Borgman's htmlize- > view.el helps a bit to handle printing (http://piprim.tuxfamily.org/ > home/pi/emacs.d/site-lisp/htmlize-view.el). This way I can immediately have an HTML file. Then, Debian Testing's Firefox will convert it to .ps or .pdf format, so my problem is solved in practice. But still I wish I could get the .ps file directly from within Emacs using the pr-ps-print commands, as I do with files containing `normal' characters: Rodolfo Medina writes: > With Emacs, I correctly open a file including chinese characters. The > characters are correctly displayed in the text file, but when I try to create > the ps file, with `C-u M-x pr-ps-print-buffer-preview' or `C-u M-x > pr-ps-print-buffer-print', they are not displayed. > > What am I missing, how can I work it out? Peter: > You are missing CID mapped PostScript fonts or a means to teach GNU Emacs to > use TrueType or OpenType fonts instead. > > Remember: a PostScript font can have thousands or millions of glyphs, but its > encoding can only be 256 elements. It took years until PostScript was > expanded > to support CJK scripts. Rodolfo: >> How can obtain a .ps file from a text file including chinese characters? Peter: > By using complex commercial CJK fonts. Times, Helvetica, Courier have no CJK > glyphs. And they only have a 256 elements encoding, maximally! Can you give some more indications about where to download and how to install those fonts? Thanks Rodolfo