News for hackers. Stuff that matters.
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:38AM (#23152149)
I just found a brand new PAGER for man: konqueror (man:/) https://imgur.com/a/F3o4VIu
Re:UNIX Text Formatting Using the -ms Macros (1984) by znpy on Tuesday May 12, 2020 @06:24AM (#23152466)
Konqueror is a marvel. Too bad that KDE is now pushing that brain-damaged piece of code, Dolphin.
Re:UNIX Text Formatting Using the -ms Macros (1984) by emilsedgh on Tuesday May 12, 2020 @08:06AM (#23153055)
Dolphin is actually pretty much aligned with Konqueror.

Konqueror can open up anything using KDE's KParts. Applications and libraries provide different KParts and Konqueror is just a shell that can open them all.

Dolphin is Konqueror's KPart provider for file browsing.

So basically Konqueror's file browsing capability is provided by Dolphin.

Re:UNIX Text Formatting Using the -ms Macros (1984) by fanf2 on Tuesday May 12, 2020 @10:19AM (#23154230)
I used troff to typeset a few papers, because it was relatively familiar from writing man pages and more light weight than LaTeX. And groff is installed on practically every Linux or BSD box.

But I switched to LaTeX because it it more mainstream for this kind of document production workflow, so for instance we have a LaTeX template for official-looking University letters, which would be hard to reproduce using troff. And I also switched from magicpoint http://member.wide.ad.jp/wg/mgp/ to Beamer https://www.overleaf.com/learn/latex/Beamer for presentation slides.

For man pages there is now the OpenBSD mandoc processor https://mandoc.bsd.lv/ which can turn semantic markup in -mdoc format in to fairly nice html and other formats. And though -mdoc is a bit weird it is easy to use, well documented, and powerful. It is so much nicer than the old -man macros!

Re:UNIX Text Formatting Using the -ms Macros (1984) by tyingq on Tuesday May 12, 2020 @08:30AM (#23153197)
Perl's POD ecosystem is worth looking at if you have similar needs today. Even if you don't use (or like) Perl.

It's very easy to use, and supports a lot of different output formats. So, one source doc can create troff man pages, html, markdown, PDF, etc.

https://perldoc.perl.org/perlpod.html

Re:UNIX Text Formatting Using the -ms Macros (1984) by cstross on Tuesday May 12, 2020 @09:27AM (#23153727)
Can confirm. I wrote (for publication) about six novels using POD format plus some basic command line tools and a makefile, treating RTF as a final output format, back in the day.

(I was forced to adopt Microsoft Word for checking copy-edits only when my publishers insisted on moving to a Word/InDesign based workflow and ditching paper edits -- this was around 2008. Which in turn forced me to stop using vim as my main creative tool. If I had discretion to go back to chewing on text files today, I'd probably go with Markdown or a superset thereof.)

Re:UNIX Text Formatting Using the -ms Macros (1984) by cat199 on Tuesday May 12, 2020 @10:58AM (#23154693)
agree, though i've personally switched to python's sphinx - the input text is more readable and less 'markupy'
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:16AM (#23152013)
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:19AM (#23152039)
if you want to convert to pdf some of the steps involving postscript can be skipped using something like xelatex
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:22AM (#23152053)
sorry I forgot the purpose of the link was to provide nostalgia but here I go with all of the format and conversion paths... sorry :(
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:21AM (#23152045)
although I believe groff itself has the ability to just straight generate pdf
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:12AM (#23151992)
Re:UNIX Text Formatting Using the -ms Macros (1984) by geertj on Tuesday May 12, 2020 @07:53AM (#23152977)
There’s also the playfully named ‘an’ macro to format a man page:

nroff -man ls.1 | less

Re:UNIX Text Formatting Using the -ms Macros (1984) by donaldihunter on Tuesday May 12, 2020 @09:32AM (#23153764)
Ha ha. Some of my University submissions were generated directly from project code using troff -ms macros. Nostalgia.
Re:UNIX Text Formatting Using the -ms Macros (1984) by jhoechtl on Tuesday May 12, 2020 @04:40AM (#23151798)
Is there a PS or PDF version around somewhere? The HTML-output doesn't cover what is possible with the ms-macros.
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:28AM (#23152090)
heres a more recent groff implementation of it the macros: https://linux.die.net/man/7/groff_ms prob not what you're looking for, you prob want to get ahold of the orig nroff/troff files
Re:UNIX Text Formatting Using the -ms Macros (1984) by uranium235 on Tuesday May 12, 2020 @05:24AM (#23152072)
the implication for me at least is a lot, and yeah a lot more has come to exist since so shrug still nothing like using a troff/nroff from 1984 I spose