Pictured above: a printout of an unformatted NRO source document (see link at bottom to get a PostScript or Plaintext copy)
What is NRO?
'NRO is a text processor based on the design provided in "Software Tools" by Kernighan and Plauger.' -- taken from the NRO description
(link: https://gitlab.com/FDOS/unix/nro/-/blob/master/HELP/NRO)
But that's not exactly helpful, is it? Put more simply, NRO is nroff for FreeDOS. Not sure what nroff is? For the GNU/Linux user, it's the program that makes manpages look the way they do. The GNU version used for GNU/Linux is called groff. For those unfamiliar, each line beginning with a period (.sp 2
for example) starts a formatting command. The letters specify which command is meant. All other lines contain the text that will be formatted. To learn more about nroff, look at the following Wikipeidia article on troff: https://en.wikipedia.org/wiki/Troff
Or visit the related Lemmy:
-
(it's new: first post coming soon, but the sidebar has some info)
Does DOS need this? If so, why?
Good question! I am unsure. Nonetheless, it does its intended job well. It's possible to make easily readable documentation for DOS this way. However, groff can also be used for professional typesetting, akin to LaTeX, albeit with easier and simpler syntax. As I use groff primarily for this purpose, I was curious to see how the NRO version fared. For that, we turn to a printout of my NRO document:
The printout looks awful, and that's mostly due to the monospaced "typewriter font" that it's formatted with. Can this be remedied? Not without printing the document on a real PostScript printer with another font, I would think. Why don't I know for certain? I am printing this to PDF on Linux using CUPS, which creates a PDF document using the processed NRO output. Turning away from the font however, it's clear to see NRO did some fairly remarkable things to the source file. There is a header, an automatically numbered page, various indenting, bolded text, reasonable margins, and all the fragmented lines in the source file have been joined together to fill the page. Wow! It's just like every other word processor! But the real question is: should you start to use NRO? Probably not, unless you already use groff on GNU/Linux already, and want to continue to use it in FreeDOS.
Is there a better way to produce professional looking PostScript and PDF documents in FreeDOS? Up next on my schedule is exploring TeX in FreeDOS.
All the files shown here can be located / downloaded at the following address: https://github.com/sennler/nro/tree/main/EXAMPLES