Paul Ito wrote in <CA+GHV2g0zG9Hk5QuZ4-n3hKCDhpPXvqH9X=JkncjO-Ru7w=95Q@m\ ail.gmail.com>: |Very new to this list, so please be gentle. | |I have the following issue: | |I want to include a utf8-encoded file "text.txt" (with lots of german \ |umlauts in my case) into a groff file "include.roff", |that would then be processed with the -ms macro along with the -Kutf8 flag. | |However, this does not seem to work properly, as all the fancy umlauts \ |aren't recognized and get "butchered". | |Having the same text and processing it directly works fine. | |Am I missing something here, or is this a bug in the way, utf8 input \ |is handled? | |include.roff might look like this: | |[fancy formatting, headings, etc here] | |.so text.txt | |where text.txt includes all the text that matters | |the command I run is | |groff -Tpdf -Kutf8 -ms include.roff > out.pdf | |(with groff version 1.22.3 on ubuntu 18.10)
I think this has come up on this list already. According to your words it seems that the inclusion happens after the character set conversion has taken place. So using the traditional UNIX roff pipeline could help you out, as in "soelim FILE | preconv | rest". I think having an option to .so which allows special preconv setting, or a different way to achive that, would also be cool. I wished i had more time. (I am hoping for a self-maintained roff clone, somewhen.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) _______________________________________________ bug-groff mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-groff
