Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2011 13:03:44 +0200
From:      Polytropon <>
To:        Matthias Apitz <>
Subject:   Re: groff && UTF-8
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 18 Jul 2011 12:49:39 +0200, Matthias Apitz wrote:
> Hello,
> 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.
> 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:
> 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).
> 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 :-)
> I've checked groff 1.21 from the ports but it seems to understand
> only making UTF-8 output with its driver -Tutf8. Is there a way to make
> it understand UTF-8 as input and making PCL or Postscript of it
> (like CUPS which has a filter 'texttops' which together with the
> FreeFonts can make Postscript of UTF-8 text)?
> Any other ideas?
> OCR-B is another issue, perhaps. But it seems that there are at least
> free fonts available for it in Postscript...

Other idea. :-)

One option is to use LaTeX which can understand UTF-8
in the input. I've used it primarily to incorporate
chinese text into german papers. Basically the macro
\usepackage[utf8]{inputenc} does the trick.

You're outputting plain text mostly, so LaTeX would be
considered "too heavy" at this point. I'm not sure if
you can program PostScript directly... maybe it does
understand UTF-8 as input text so you can write a simple
output filter that outputs PS, given some data input.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>