-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite manpages in mdoc(7) #91
base: master
Are you sure you want to change the base?
Conversation
Currently, the manpages of sndfile-tools are written using the legacy man(7) markup language. I propose to rewrite them into the markup of mdoc(7), (like with libsndfile some years ago, and sndfile-resample which has since been moved here). As an example, here is a rewrite of sndfile-mix-to-mono, being the shortest of course :-) The main advantage is that the mdoc(7) language, available for decades alongside man(7), is semantical and describes the intent, as opposed the the low-level formatting of roff(7). For example: .Fl w Op Ar port means there is a -w option which takes an optional 'port' argument; as opposed to .BR \-w [ =\fIport ] which says switch to bold, type a hyphen and a 'w', then switch to italics, and type out 'port' in brackets. Both languages are well supported since the eighties; nowadays, the prevalent formatters are groff on the linuxes and mandoc on the BSDs and macOS.
@evpobr , if you decide to merge, please don't close the PR just yet: |
I have no system with JACK, so please someone test that the options of sndfile-jackplay |
Just link to the homepage.
This one was a gem: help2man like it's the nineties. While here, remove the note to not touch the manpage.
OK, it's done. Is there any interest in this? |
(I only added the copyright line because the pre-commit hook required it.) |
Is there any interest in this please? |
Currently, the manpages of sndfile-tools are written using the legacy man(7) markup language.
I propose to rewrite them into the markup of mdoc(7), (like with libsndfile some years ago,
and sndfile-resample which has since been moved here).
As an example, here is a rewrite of sndfile-mix-to-mono, being the shortest of course :-)
The main advantage is that the mdoc(7) language, available for decades alongside man(7),
is semantical and describes the intent, as opposed the the low-level formatting of roff(7).
For example:
.Fl w Op Ar port
means there is a -w option which takes an optional 'port' argument; as opposed to
.BR -w [ =\fIport ]
which says switch to bold, type a hyphen and a 'w', then switch to italics, and type out 'port' in brackets.
Both languages are well supported since the eighties; nowadays, the prevalent formatters
are groff on the linuxes and mandoc on the BSDs and macOS.