[Top][All Lists]
[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: |
Wed, 5 Dec 2012 12:10:18 +0400 |
Ralph Corderoy:
> > mmst1: tr -d 15 < [infile]| groff -s -Kcp1251 -t
> > -Tutf8>[outfile].txt
> > mmst2: soelim [infile] | tr -d 15 | 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 ex-
> > pected, producing a correctly encoded UTF-8 file
> > (res2.txt).
>
> Does groff's -V option help? It shows the con-
> structed pipeline.
>
> $ groff -V -Kcp1251 -t -Tutf8
> preconv -ecp1251 | tbl | troff -Tutf8 | grotty
> $ groff -V -s -Kcp1251 -t -Tutf8
> preconv -ecp1251 | soelim | tbl | troff -Tutf8 | grotty
>
> The preconv has happened before soelim if -s is
> used whereas when you run it manually, it's after.
Thank you, Ralph. I forgot about the -V option.
Now the question is whether this sequence is correct
or should be changed so that soelim will be called
before all other preprocessors. After all, soelim's
very purpose is to preprocess included files...
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
- Re: [Groff] Included files are not preprocessed, Anton Shepelev, 2012/12/04
- Re: [Groff] Included files are not preprocessed, Ralph Corderoy, 2012/12/04
- Re: [Groff] Included files are not preprocessed,
Anton Shepelev <=
- Re: [Groff] Included files are not preprocessed, Werner LEMBERG, 2012/12/06
- Re: [Groff] Included files are not preprocessed, brian m. carlson, 2012/12/06
- Re: [Groff] Included files are not preprocessed, Werner LEMBERG, 2012/12/07
- Re: [Groff] Included files are not preprocessed, Mike Bianchi, 2012/12/07
- Re: [Groff] Included files are not preprocessed, Werner LEMBERG, 2012/12/07
- Re: [Groff] Included files are not preprocessed, Anton Shepelev, 2012/12/10