Usage preconv tries to find the input encoding with the following algorithm. Also add information on how to contact you by electronic and paper mail. The glyph can also be input to groff using this code by. Use the hpfcode request to map the encoding used in hyphenation patterns files to groff s input encoding. Description this manual page lists the standard groff glyph names and the default input mapping, latin1. Do not confuse source encoding with groff encoding. Options without an argument can be grouped behind a single. Dencoding specify default encoding if everything fails see below. On ebcdic platforms, only code page cp1047 is supported which contains the same characters as latin1.
When he is not doing wwws public relations, robert is contributing browser software for the macintosh platform, and analysing the needs of physics experiments for online data access. It is the gnu replacement for the troff and nroff text formatters. Eventually, groff will support proper unicode input, and much of this horror can go away. The groff program allows to control the whole groff system by command line options. If you want groff to accept unicode input, use the k switch. See the gnu general public license for more details. Note these devices are used by mandb when formatting nonenglish manual pages that are not in the iso88591 encoding. But the groff program has some additional, native options and gives a new meaning to some troff options. Each macro package stores its macros and definitions in a file called the packages tmac file. This feature does not apply to any pro grams different from the ones above most notably groff itself since they are unique to the groff package. It is possible to have whitespace between an option and its parameter.
Compiles descriptions of equations embedded within troff input files into commands that are understood by troff. Groff and its contemporary counterpart, tex, both work using a batch paradigm. The test set button validates all the encoder settings then sends the setup to the hardware encoder. The encoding specified in this table is the encoding in which the source man pages in each language directory are expected to be written. Dont forget to prepare your hyphenation file accordingly. Note that some of the input characters are reserved by groff, either for internal use or for special input purposes. The groff program allows to control the whole groff system by comand line options.
It can optionally preprocess with any of gpic, geqn, gtbl, ggrn, grap, gchem, grefer, gsoelim, or preconv. Unlike other troff implementations namely plan 9 and heirloom troff, groff does not support utf8 in documents. The groff software devices for conversion into other document file formats are grodvi1 for the dvi format, grohtml1 for html and xhtml formats, grops 1 for postscript. This is a great simplification in comparison to the classical case. The value of this environment value is passed to the preconv preprocessor to select the encoding of input files. The groff program and macro suite is the implementation of a roff7 system within the free software collection the groff system has all features of the classical roff, but adds many extensions. The set of hyphenation patterns is associated with the current language set by the hla request. The character encoding is the character set used for rendering the document, which may differ from the encoding specified by the page the user can override the encoding. D arg set default input encoding used by preconv to arg.
Groff preprocessor for producing chemical structure diagrams eqn. Another way to have cyrillic is simply to use tlatin1 to enable eightbit character codes, and feed groff a source file in a singlebyte encoding such as cp 1251 or koi8r. If set without a value, groff calls preconv without arguments. Combined with the many existing free conversion tools this should be sufficient to convert a troff document into virtually any existing data format.
Setting this option implies groff s commandline option k that is, groff actually always calls preconv. The groff counterpart of tcls \uxxxx is \uxxxx, and i could confirm that replacing the o in the generated. However, utf8 output can be achieved using the preconv1 preprocessor, which converts utf8 characters in a file to groff native escape sequences. So in gnu, the terms roff, troff, and groff language could be used as synonyms. The inputencoding property returns the character encoding at the time of parsing, and will return null if the document is created in memory. Native groff options the following options either do not exist for troff or are differently interpreted by groff. The check button makes mx light recheck the input settings, allowing rechecking if the original detection appears wrong or your have changed the active input.
Jeanfrancois groff provided useful input in the design issues. Groff contains a large number of helper programs, preprocessors, and postprocessors including eqn, tbl, pic. The groff software devices for conversion into other document file for mats are grodvi1 for the dvi format, grohtml1 for html and xhtml formats, grops 1 for postscript. This feature does not apply to any programs different from the ones above most notably groff itself since they are unique to the groff package. This is a great simplification in comparison to the classical. The grog command can be used to guess the correct groff command to format a file. Producing pdfs with groff and mom deri james and peter schaffter 2012 deri james and peter schaffter this. This is the default input encoding on nonebcdic platforms. However troff slightly tends to refer more to the classical aspects, whereas groff emphasizes the gnu extensions, and roff is the general term for the language. The glyphs in this document look different depending on which output device was chosen with option. Output may be postscript or pdf, html, or asciiutf8 for display at the terminal. The groff program and macro suite is the implementation of a roff7 system within the free software collection gnu.
On startup the active input is automatically detected and settings are displayed. You should have received a copy of the gnu general public license along with this program. Nov 22, 2002 acknowledgement sent to michal politowski. A compilation of linux man pages for all commands in html. Thanks for contributing an answer to stack overflow. The glyphs in this document look different depending on which output device was chosen with option t for the man1 program or the roff formatter. Without this switch, preconv uses the algorithm described below to select the input encoding. Specify input encoding explicitly, overriding all other methods. Groff gnu trof f is a typesetting system that reads plain text mixed with formatting commands and produces formatted output. Hi there, to convert a text file to postscript format is easy with groff.