Tree
- Tree:
f6faaef72b36bc2a5e4f103b2a872f89c303e26f
- Date:
- Message:
- troff: support `\~` as an alias for `\ ` (#567) In groff, Heirloom Doctools troff, and neatroff, the `\~` escape sequence produces an adjustable (paddable) but unbreakable space. mandoc, which does not perform adjustment or render to typesetters, supports the escape sequence as a synonym for `\ `, the same as `\0`. This extension is of long pedigree: groff has supported it for at least 30 years, Heirloom for 17, mandoc for 13, and neatroff for 6. Do the same as mandoc to prevent mis-rendering of documents using this escape sequence. Heirloom Doctools troff, a descendant of Documenter's Workbench troff, would be a good place to look for a compatible implementation of the adjustable semantics for this sequence.
README | commits | blame |
mkfile | commits | blame |
mnihongo.c | commits | blame |
tmac.nihongo | commits | blame |
README
mnihongo is a fairly clumsy troff post-processor that catches unicode characters that might be japanese, looks them up in a font file (currently /lib/font/bit/pelm/unicode.9x24.font) to get the bits, converts that to postscript, and dumps that in the output. Widths are taken from troff font Jp, which has at best a simple approximation to the truth. The program itself is normally called implicitly by loading the troff macro package -mnihongo, which does a .pi command.