From owner-freebsd-questions@FreeBSD.ORG Mon Jul 18 14:59:33 2011 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 D6694106564A for ; Mon, 18 Jul 2011 14:59:33 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id 66F4A8FC19 for ; Mon, 18 Jul 2011 14:59:32 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id p6IEx1hI025297; Mon, 18 Jul 2011 16:59:01 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 76211BA82; Mon, 18 Jul 2011 16:59:01 +0200 (CEST) Date: Mon, 18 Jul 2011 16:59:01 +0200 From: Roland Smith To: Matthias Apitz Message-ID: <20110718145901.GB71153@slackbox.erewhon.net> References: <20110718104939.GA32254@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: <20110718104939.GA32254@sh4-5.1blu.de> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: groff && UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 14:59:33 -0000 --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 18, 2011 at 12:49:39PM +0200, Matthias Apitz wrote: >=20 >=20 > Hello, >=20 > In the '90 I have used for a lot of my internal and external papers and > letter the groff suite (gtbl, groff, ...) with good results. >=20 > I've now a project where it would fit really nicely. It's making > (Postscript or PCL) printout of some pages like this example one: >=20 > http://www.unixarea.de/MagazinZettel.pdf >=20 > in which most of the part is just plain text, printed in some fixed > font, a few big letters (big font) and some OCR-B on the page (like the > number 0000471110 in the mentioned page). >=20 > The critical part seems to be: the text is UTF-8 and converting this > to ISO 8859-1 is not an option. It's a Library Management System we > just ported to Unicode, and we don't want to fall back in printing :-) If you want to produce postscript output from groff, you will have to deal with postscript fonts. The usual Type 1 fonts are single-byte fonts. Groff only deals with Latin-1 characters (see groff_char(7)). > Any other ideas? =20 If you use unicode character outside of the Latin-1 set, you're in trouble. You'll have to find or make a font that includes those characters = and matches your body text font, and then replace all instances of those characters with the appropriate font changing commands for groff. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --MW5yreqqjyrRcusr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk4kSjUACgkQEnfvsMMhpyVyQACcDKHUDyNVk329WvTgdoZKilrL 5gYAoJ+bRgeq4Qut9Kb6pBhw0byBsPpe =ucXi -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--