groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] UTF8 characters to pdf


From: John Gardner
Subject: Re: [groff] UTF8 characters to pdf
Date: Fri, 25 Jan 2019 00:41:30 +1100

Make sure you have GhostScript installed as well, especially if you plan on
producing PDF versions of your documents:

brew install ghostscript


And yes, what Ralph said will fix the encoding issue. =)

$ echo 'Hasta mañana. 32 años. ¡Está bien! ¡Sí!' > ~/Desktop/test.roff
$ groff -Tutf8 test.roff
Hasta mañana. 32 años. ¡Está bien! ¡SÃ!

$ groff -Tutf8 -k test.roff
Hasta mañana. 32 años. ¡Está bien! ¡Sí!


As a side-note, you should use Homebrew to update whatever you can. Apple
ships macOS with woefully outdated versions of *everything*, yet nobody
knows why...

On Fri, 25 Jan 2019 at 00:26, Ralph Corderoy <address@hidden> wrote:

> Hi jonathan,
>
> > I have seen some people use a `preconv`command or a `-k` flag to
> > convert their files for utf-8 into latin1 within the groff command.
> > But the build I have on my Mac computer doesn’t seem to have this
> > (version 1.19.2).
>
> I don't have any Apple hardware myself, but I understand Homebrew is
> used by many users to get up to date versions of the software Apple
> ships.  It supplies groff 1.22.4.
>
>     https://brew.sh/
>     https://formulae.brew.sh/formula/groff
>
> --
> Cheers, Ralph.
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]