From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: pdf or ps from emacs syntax highlighted source code Date: Sat, 5 May 2007 10:46:12 +0200 Message-ID: <1588EA99-25E4-4150-9AE8-35A4239B4469@Web.DE> References: <463A48E0.5030605@xs4all.nl> <87lkg4n5pe.fsf@gmail.com> <463B2E5D.2050501@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178354806 470 80.91.229.12 (5 May 2007 08:46:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 May 2007 08:46:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alexey Pustyntsev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 05 10:46:44 2007 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 1HkFue-0004qG-Fb for geh-help-gnu-emacs@m.gmane.org; Sat, 05 May 2007 10:46:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkG1N-00074z-Ab for geh-help-gnu-emacs@m.gmane.org; Sat, 05 May 2007 04:53:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HkG12-00072a-Lj for help-gnu-emacs@gnu.org; Sat, 05 May 2007 04:53:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HkG10-00070h-Te for help-gnu-emacs@gnu.org; Sat, 05 May 2007 04:53:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkG10-00070R-N1 for help-gnu-emacs@gnu.org; Sat, 05 May 2007 04:53:18 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HkFuH-0007Bv-3G for help-gnu-emacs@gnu.org; Sat, 05 May 2007 04:46:21 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 146D4793C4D1; Sat, 5 May 2007 10:46:20 +0200 (CEST) Original-Received: from [62.134.227.214] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1HkFuF-0008DM-00; Sat, 05 May 2007 10:46:20 +0200 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18BtWqIfsE1mfxCzxDQHirOvcmXornFDsU4zTLb 0o5Ex6nafFnw7C/jNq7B5zznhqf0ZAFdoFnfd0jGRAEipPFMAS hGosdbVKYjPakUVwy+KA== X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:43723 Archived-At: Am 05.05.2007 um 03:33 schrieb Alexey Pustyntsev: > Would you please briefly explain to me (or post a decent link where > it's been clarified) why printing the non-latin characters is said to > be impossible in Emacs without htmlizing the buffer? Citing myself from six weeks ago: The problem with PostScript is that it usually only supports 8 bit encodings. So you can't print Unicode. You can try to find a CID keyed PostScript font and with some effort you can print CJK. No such font is available for free or public domain. TrueType and OpenType fonts have better Unicode support. Modern PostScript can use such TrueType fonts, which are quite often free and acceptable quality. But I have no idea how to create a mapping from an UTF-8 encoded text to a Unicode encoded font in PostScript. Another problem is that GNU Emacs' PS print facility does not support non-Latin scripts. It actually only supports ISO 8859-1 and it reports that characters outside this encoding exist in the region or buffer you want to print. -- Greetings Pete Time is an illusion. Lunchtime, doubly so.