Category:N/t/roff: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2:
 
/.ROFF/ '''are''' also compilers for the /.ROFF/ formatting language. The regular expression /.ROFF/ in this page metaphorically matches ''TROFF'' and ''NROFF'' (but it technically matches more than that). Thus, ''TROFF'' and ''NROFF'' are compilers.
The two compilers understand and parse the same language of /.ROFF/, but their outputs are '''not''' the same. Document output from the ''TROFF'' compiler is better-suited for typesetters: photo-typesetters, laser printers, etc.; whereas output from the ''NROFF'' compiler is better-suited for typewriter-like printers: line printers, daisy wheel printers, or glass teletypes. This holds, even if the both compilers get the exact same input verbatim; although all logical flow controls are executed in the same manner.
 
A typical ''/.ROFF/ source file'' for documents is a plaintext file with the extensions: <code>*.roff</code>, <code>*.me</code>, <code>*.ms</code>, <code>*.mm</code>, or <code>*.mom</code>. The extension depends on what macro package is used to set the pages of the document, although the /.ROFF/ compiler treats all of them the same way and associates no special meanings thither. Such a /.ROFF/ document contains the document's text itself (i.e. the writer's actual words) ''interspersed'' with some formatting requests that instruct the computer how to set the text on a page.
Anonymous user