groff
[Top][All Lists]
Advanced

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

Re: [Groff] mom : unicode in .INCLUDE'd files


From: Ralph Corderoy
Subject: Re: [Groff] mom : unicode in .INCLUDE'd files
Date: Fri, 21 Jul 2017 17:32:38 +0100

Hi Peter,

> > You could try replacing `.INCLUDE' with `.so'.
>
> First thing I tried with the OP.  Same problem.  .so is definitely not
> playing nice with unicode.

Ah, well, in that case, I think this explains it.

    $ cat foo
    .nf
    foo: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    .so bar
    $
    $ cat bar
    bar: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    $
    $ groff -Tutf8 -sk foo | grep .
    foo: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    bar: ÃÃà SS ÃÃÃÃÅŠà äöü à òóôõÅŠç
    $
    $ soelim foo
    .lf 1 ./foo
    .nf
    foo: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    .lf 1 ./bar
    bar: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    .lf 4 ./foo
    $
    $ soelim foo | preconv
    .lf 1 -
    .lf 1 ./foo
    .nf
    foo: \[u00C4]\[u00D6]\[u00DC] SS 
\[u00D2]\[u00D3]\[u00D4]\[u00D5]\[u014E]\[u014C] \[u00C7] 
\[u00E4]\[u00F6]\[u00FC] \[u00DF] 
\[u00F2]\[u00F3]\[u00F4]\[u00F5]\[u014F]\[u014D] \[u00E7]
    .lf 1 ./bar
    bar: \[u00C4]\[u00D6]\[u00DC] SS 
\[u00D2]\[u00D3]\[u00D4]\[u00D5]\[u014E]\[u014C] \[u00C7] 
\[u00E4]\[u00F6]\[u00FC] \[u00DF] 
\[u00F2]\[u00F3]\[u00F4]\[u00F5]\[u014F]\[u014D] \[u00E7]
    .lf 4 ./foo
    $
    $ soelim foo | preconv | groff -Tutf8 | grep .
    foo: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    bar: ÄÖÜ SS ÒÓÔÕŎŌ Ç äöü ß òóôõŏō ç
    $
    $ groff -V -Tutf8 -sk foo
    preconv foo | soelim | troff -Tutf8 | grotty
    $

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

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