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: print with DejaVu font from emacs Date: Wed, 11 Nov 2009 20:23:11 +0100 Message-ID: <422FC12A-C275-41BF-94D1-FDDB3BEC3D17@Web.DE> References: <874op3iu85.fsf@ergodik.univ-brest.fr> <877htxnir3.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257967550 16570 80.91.229.12 (11 Nov 2009 19:25:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 19:25:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: harven Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 11 20:25:43 2009 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 1N8Ip4-0005bB-JQ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 20:25:42 +0100 Original-Received: from localhost ([127.0.0.1]:46871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Ip3-0003gG-Tp for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 14:25:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8Imm-0001RI-6H for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 14:23:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8Imh-0001K0-88 for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 14:23:19 -0500 Original-Received: from [199.232.76.173] (port=52868 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Imh-0001Jl-2Y for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 14:23:15 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:57466) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8Img-000450-Ha for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 14:23:14 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 875C014124C5A; Wed, 11 Nov 2009 20:23:13 +0100 (CET) Original-Received: from [91.35.186.221] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (WEB.DE 4.110 #314) id 1N8Imf-0003tj-00; Wed, 11 Nov 2009 20:23:13 +0100 In-Reply-To: <877htxnir3.fsf@ergodik.univ-brest.fr> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19V7tw0ejb92Qv/vj1ykD/wYPsC03T5+csg3T6T DLtIxmSeb2H3vTRGVGurAdOOry3ooGJW0NI6zfjeqvACx5VBlJ zByZpksmmIkoZ9FuiZuw== X-detected-operating-system: by monty-python.gnu.org: GNU/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:69673 Archived-At: Am 11.11.2009 um 17:12 schrieb harven: > Thanks for your reply. > Instead of converting to html, I think I will just open the file in =20= > the > browser and print from there. DejaVu is also used as the default =20 > monospace > in my browser. That's exactly what htmlize.el and htmlize-view.el do: they prepare =20 an Unicode encoded buffer easily as HTML which is then "sent" to an =20 external HTML viewer (a so-called "browser") which can use the OS' =20 desktop mechanisms to print that Unicode contents as PDF Unicode. > > I am a bit surprised by your comment on postscript not supporting =20 > unicode. PostScript is 8 bit! It might be elder then you. PostScript fonts can =20= larger, maybe contain 1,000 glyphs. These are accessed by an =20 encoding, which is 8 bit. TeX, a bit elder then PS, is essentially 7 =20 bit. The trick of a "virtual font,=05" something like a "fontset" in =20 GNU Emacs, allows it to access two 7-bit encoded fonts as if it were =20 one 8-bit font. Similarly by using a whole stack of encodings TeX is =20 able to access some percent of Unicode. Particular mechanisms in TeX =20 and in PostScript allow to print in CJK. BTW, I am not that sure that your GNOME desktop creates PostScript =20 files! (It would necessitate CID fonts.) You can easily check this by =20= disabling the printer queue. Then any print output is queued in but =20 not sent to the printer. So you have (almost) infinite time to locate =20= the queue's content and check the files' type =96 possibly with super-=20= user privileges. And I am sure you'll find PDF... -- Greetings Pete Encryption, n.: A powerful algorithmic encoding technique employed in the = creation =20 of computer manuals.