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: E. Hoffmann
Subject: Re: [Groff] mom : unicode in .INCLUDE'd files
Date: Sun, 23 Jul 2017 17:01:01 +0200

Am Sun, 23 Jul 2example17 13:example4:5example +example1exampleexample
schrieb Ralph Corderoy <address@hidden>:

> Hi Erich,

Hi Ralph.  Thank you for looking into it.

[...]
> preconv is only processing example.mom, converting it to input groff
> can read.  When groff does that, it sees the .so and goes off and
> reads a second file, one that preconv hasn't converted.  That's you
> problem.

I wrote the following script:


----------------------------------------------------------------------\

for IN in $(ls *.mom); do
    OU=${IN%%.*}
            echo -n ·
                  preconv -eutf8 $IN > $OU
              done
              echo ';'

              cat example

              soelim example |  pdfmom  > example.pdf

----------------------------------------------------------------------/

The concerned lines in example.mom are:

----------------------------------------------------------------------\

.pp
latin1: Ä-Ö-Ü Ò-Ó-Ô-Õ- Ç ä-ö-ü ß ò-ó-ô-õ ç
.PP
UNICODE:  -Ŏ-Ō- and -ŏ-ō-
.PP
so'eD FILE BEGINS:
.PP
.so identical_string

----------------------------------------------------------------------/

So I hoped that each momfile is preconv'ed, and yes it is, compare
identical_string:

----------------------------------------------------------------------\

.PP
latin1: \[u00C4]-\[u00D6]-\[u00DC] \[u00D2]-\[u00D3]-\[u00D4]-\[u00D5]-
\[u00C7] \[u00E4]-\[u00F6]-\[u00FC] \[u00DF]
\[u00F2]-\[u00F3]-\[u00F4]-\[u00F5] \[u00E7] .PP \# UNICODE:
-\[u014E]-\[u014C]- and -\[u014F]-\[u014D]- .PP

----------------------------------------------------------------------/

But again, only the latin1 chars show up, in both the example and the
identical_string files.  Thus, the .so-handling is _not_ the problem.

   I keep getting the error messages:

example.mom:12: warning: can't find special character `u004F_0306'
example.mom:12: warning: can't find special character `u004F_0304'
example.mom:12: warning: can't find special character `u006F_0306'
example.mom:12: warning: can't find special character `u006F_0304'

Which means, Ŏ Ō  and  ŏ ō are nowhere recognized.

   OK I know that I'm not the sharpest knife in the drawer, perhaps
this is beyond my level, and I admit that I can't really follow the
'-V output' discussion.  My fault.

Cheers, Erich




reply via email to

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