I'm trying to display the characters for ascending and descending orbital nodes (☊ and ☋) in groff, however when I export the document to postscript they simply don't show.
Displaying orbital node characters in groff ms macros
groffpostscriptunicode
Best Answer
There is quite a bit of work to get unusual characters into a PostScript document with groff. First you need to choose a font that contains the character. Googling for the name and the tag unicode can find for example this site which says that, for example, it is found in font DejaVuSans-Bold, which I happen to have on my system in ttf format.
You need to convert the ttf to the format wanted by groff. I created a directory
/tmp/font/devps
and in it ranwhere
ttf2pt1
came from a package of the same name on my system. This created the filesDejaVuSans-Bold.afm
andDejaVuSans-Bold.pfa
. They need more conversion withwhere
afmtodit
came from packagegroff-perl
. This created fileDejaVuSans-Bold
which can now be referenced from groff by the commandprovided you have told it where to find it by doing
before running
groff -Tps
. You also need to refer to the character by its unicode value in the input text, eg:(If your input file is in utf-8 you may be able to have this conversion done for you by adding groff option
-K utf-8
, which I have not tried). Here's a set of commands that worked for me (you may need to change the origin of the ttf file):