groff
[Top][All Lists]
Advanced

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

Re: [Groff] Included files are not preprocessed


From: Anton Shepelev
Subject: Re: [Groff] Included files are not preprocessed
Date: Tue, 4 Dec 2012 20:56:42 +0400

Tadziu Hoffmann:

> > Files  included  via .mso, .so, or -m, are never
> > run through preprocessors.
>
> That's why soelim was invented
>
>   http://lists.gnu.org/archive/html/groff/2003-01/msg00069.html

I have finally decided to try this way  because  the
included  file  is  subject  to frequent changes and
storing its pre-encoded version, as per Werner's ad-
vice,  would  be  inconvenient.   Now  I  found that
groff's -s option behaves differently  from  calling
soelim manually on the pipeline:

  mmst1:                   tr -d \015 < [infile]| groff -s -Kcp1251 -t 
-Tutf8>[outfile].txt
  mmst2: soelim [infile] | tr -d \015           | groff    -Kcp1251 -t 
-Tutf8>[outfile].txt

With the included test file (test.mm) the first call
seems to ignore iconv processing  (res1.txt),  while
the  second  one works as expected, producing a cor-
rectly encoded UTF-8 file (res2.txt).

Am I missing something or is it a bug?

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: soelimex.zip
Description: Zip archive


reply via email to

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