From owner-freebsd-questions@FreeBSD.ORG Mon Apr 12 11:19:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89C3F1065687 for ; Mon, 12 Apr 2010 11:19:36 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 193B18FC14 for ; Mon, 12 Apr 2010 11:19:35 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1O1Hfw-0005br-EW for freebsd-questions@freebsd.org; Mon, 12 Apr 2010 13:19:32 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o3CBGJUM004810 for ; Mon, 12 Apr 2010 13:18:20 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o3CBGEaF004800 for freebsd-questions@freebsd.org; Mon, 12 Apr 2010 13:16:14 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Mon, 12 Apr 2010 13:16:14 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20100412111614.GA4742@current.Sisis.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Subject: cups 1.3.9 (from ports) && Cyrillic fonts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 11:19:36 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, I want to print via CUPS (from the ports 1.3.9) in FreeBSD 8-CURRENT UTF-8 text files with Cyrillic (and other) chars; see the very small attached file; the conversion of the UTF-8 textfile is done by CUPS's texttops and someone can simulate this without wasting paper with this command: $ CHARSET=utf-8 /usr/local/libexec/cups/filter/texttops 1 rleigh myfile 1 "" < testfile.utf8 > ps and check the resulting PostScript file with a viewer, for example Ghostview. The mapping between the Unicode codepoints and fonts for CUPS is done in /usr/local/share/cups/charsets/utf-8 which has for Cyrillic chars U-0400...U+04FF: 0400 04FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic Using the attached test file all is printed fine, all but the Cyrillic line. If you run this through Ghostview it says (it seems for the Cyrillic chars): $ gs ps GPL Ghostscript 8.63 (2008-08-01) Copyright (C) 2008 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Substituting .notdef for afii10035 in the font Courier Substituting .notdef for afii10077 in the font Courier Substituting .notdef for afii10085 in the font Courier ... On a real printer all is printed fine, all but the the Cyrillic line. Any idea what is missing? Is this a problem with CUPS or with the viewer? Thanks in advance matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Ya basta! Tropas de OTAN, fuera de Afghanistan! There's an end of it! NATO troups out of Afghanistan! Schluss jetzt endlich! NATO raus aus Afghanistan! --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="testfile.utf8" Content-Transfer-Encoding: 8bit Deutsche Umlaute: äöü AÖÜ ß Spanische tilde Zeichen: áéíñóúü ÁÉÍÑÓÚÜ ¿? ¡! Russische Zeichen: Случайно заметил, какая штука появляется на мгновение при компилляции Grieschiche Zeichen: Το μεγαλόσταυρο του Αποστόλου --Nq2Wo0NMKNjxTN9z--