manpagetroff

Diacritical marks in man pages


I have written a man page in the nroff syntax. The text is in English but I want to make sure that a name containing the character "ö" is displayed correctly (even on a non-UTF-8 system). Is there a way to specify this character in nroff, similar to ö in HTML? Or can I specify the encoding in the file?


Solution

  • GNU troff (groff), which seems to be the de facto standard, accepts the named glyph \[:o] for the character "ö":

    http://man7.org/linux/man-pages/man7/groff_char.7.html