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