Text codepage in groff

喜欢而已 提交于 2019-12-13 00:43:10

问题


How to setup a correct codepage in groff? For example to use a cyrillic language.

Man page notes about -T switch. But troff -T utf8 -ms troff_file.txt gives:

warning: invalid input character code 128`

回答1:


-Tutf8 only selects the output device. If you want groff to accept Unicode input, use the -K switch.

Another way to have Cyrillic is simply to use Tlatin1 to enable eight-bit character codes, and feed groff a source file in a single-byte encoding such as CP 1251 or KOI8-R. Don't forget to prepare your hyphenation file accordingly.



来源:https://stackoverflow.com/questions/23138930/text-codepage-in-groff

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!