Skip to contentSkip to conversation

Consistency fixes in util-linux man pages

DISCUSSION Michael Kerrisk (man-pages) 3 participants 6 messages May 16, 2020 – May 19, 2020 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Hello Karel,

Perhaps a little inspired by Helge's recent reports, I wonder about submitting some wide-ranging patches to improve consistency across the util-linux manual pages.

As an example, there's quite a bit of variation in the order of .SH sections in the manual pages (e.g., in the placement of the SEE ALSO section). The pages would be more readable if the ordering was more consistent.

Would you entertain patches that made wide-ranging changes that fixed that sort of thing (without changing page content?

Thanks,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
maintainer
#1 lore raw
Quoted 6 lines · Michael Kerrisk (man-pages)

Hello Karel,

Perhaps a little inspired by Helge's recent reports, I wonder about submitting some wide-ranging patches to improve consistency across the util-linux manual pages.

Quoted 7 lines

As an example, there's quite a bit of variation in the order of .SH sections in the manual pages (e.g., in the placement of the SEE ALSO section). The pages would be more readable if the ordering was more consistent.

Would you entertain patches that made wide-ranging changes that fixed that sort of thing (without changing page content?

No problem, but it would be nice to somehow document that is expected to avoid future changes in an opposite way. For example add some info to Documentation/howto-man-page.txt.

BTW, I'm not sure about man pages as ideal format to maintain documentation (because it's mostly about formatting than about content). I think about AsciiDoc or so in future. What do you think about this idea?

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw

Hello Karel,

Quoted 13 lines · Karel Zak
Quoted 11 lines · Michael Kerrisk (man-pages)

Hello Karel,

Perhaps a little inspired by Helge's recent reports, I wonder about submitting some wide-ranging patches to improve consistency across the util-linux manual pages.

As an example, there's quite a bit of variation in the order of .SH sections in the manual pages (e.g., in the placement of the SEE ALSO section). The pages would be more readable if the ordering was more consistent.

Quoted 4 lines
Quoted 2 lines

Would you entertain patches that made wide-ranging changes that fixed that sort of thing (without changing page content?

No problem,

Ok.

Quoted 3 lines

but it would be nice to somehow document that is expected to avoid future changes in an opposite way. For example add some info to Documentation/howto-man-page.txt.

Agreed. For man-pages, I created man-pags(7) to document those expectations. At least some of that should be applicable in othe pojects, if they want.

Quoted 4 lines

BTW, I'm not sure about man pages as ideal format to maintain documentation (because it's mostly about formatting than about content). I think about AsciiDoc or so in future. What do you think about this idea?

I'm not too knowledgeable in AsciiDc, but my impression is that it's too limited in terms of its formatting opinions.

If I did move man-pages, the most likely candidate would probably be Sphinx, as is nowadays used in the kernel docs. But, that would require converting a thousand pages or so, and I have not so far had the stomach for that. Of course, you have a rather smaller set of pages to deal with, so a conversion step sould be more easily entertained.

Thanks,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#3 lore raw

Hello Michael and Karel,

Quoted 9 lines · Michael Kerrisk (man-pages)
Quoted 4 lines · Karel Zak

BTW, I'm not sure about man pages as ideal format to maintain documentation (because it's mostly about formatting than about content). I think about AsciiDoc or so in future. What do you think about this idea?

I'm not too knowledgeable in AsciiDc, but my impression is that it's too limited in terms of its formatting opinions.

Quoted 6 lines

If I did move man-pages, the most likely candidate would probably be Sphinx, as is nowadays used in the kernel docs. But, that would require converting a thousand pages or so, and I have not so far had the stomach for that. Of course, you have a rather smaller set of pages to deal with, so a conversion step sould be more easily entertained.

Even though man pages are limitted in formatting, they are universally available and, from our POV, getting more attention from the translators side. We just welcomed our seventh language. Probably not relevant for kenel side docs, but for programs by non programmers (and presumably non native speakers) man pages are good option.

(Of course, translation tools for other formats exists and e.g. po4a supports many formats, it also need a dedicated community of translators).

Greetings

Helge

Signature · 4 lines
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
maintainer
#4 lore raw
Quoted 3 lines · Helge Kreutzmann
Quoted 2 lines · Michael Kerrisk (man-pages)

I'm not too knowledgeable in AsciiDc, but my impression is that it's too limited in terms of its formatting opinions.

Yes, I'm not sure about AsciiDoc limitations. For example systemd guys uses DocBook which is probably ultimate solution.

Quoted 8 lines
Quoted 7 lines

If I did move man-pages, the most likely candidate would probably be Sphinx, as is nowadays used in the kernel docs. But, that would require converting a thousand pages or so, and I have not so far had the stomach for that. Of course, you have a rather smaller set of pages to deal with, so a conversion step sould be more easily entertained.

Quoted 5 lines

Even though man pages are limitted in formatting, they are universally available and, from our POV, getting more attention from the translators side. We just welcomed our seventh language. Probably not relevant for kenel side docs, but for programs by non programmers (and presumably non native speakers) man pages are good option.

The idea is maintain documentation (in git tree) in some content oriented language and then generate man pages from this content. It means in the official release tarball will be man pages and end-users will not see any difference.

The issue I have with man pages is that contributor very often send patches to change formatting details and keep it consistent, avoid color-of-bike-shed discussions is very difficult. It would be better care about content and keep all the formatting details in some conversion template.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#5 lore raw

Hello Karel,

Quoted 7 lines · Karel Zak
Quoted 3 lines · Helge Kreutzmann
Quoted 2 lines · Michael Kerrisk (man-pages)

I'm not too knowledgeable in AsciiDc, but my impression is that it's too limited in terms of its formatting opinions.

Yes, I'm not sure about AsciiDoc limitations. For example systemd guys uses DocBook which is probably ultimate solution.

I'm currently translating them. Also I've used DocBook myself to write manges (a long time ago).

Quoted 13 lines
Quoted 7 lines
Quoted 6 lines

If I did move man-pages, the most likely candidate would probably be Sphinx, as is nowadays used in the kernel docs. But, that would require converting a thousand pages or so, and I have not so far had the stomach for that. Of course, you have a rather smaller set of pages to deal with, so a conversion step sould be more easily entertained.

Quoted 5 lines

Even though man pages are limitted in formatting, they are universally available and, from our POV, getting more attention from the translators side. We just welcomed our seventh language. Probably not relevant for kenel side docs, but for programs by non programmers (and presumably non native speakers) man pages are good option.

Quoted 4 lines

The idea is maintain documentation (in git tree) in some content oriented language and then generate man pages from this content. It means in the official release tarball will be man pages and end-users will not see any difference.

Ok, then this is fine.

Quoted 5 lines

The issue I have with man pages is that contributor very often send patches to change formatting details and keep it consistent, avoid color-of-bike-shed discussions is very difficult. It would be better care about content and keep all the formatting details in some conversion template.

I strongly agree. Keep content and presentation separate. This also helps us translators, even though we don't see the original markup, we do quickly understand the results, because it is consistent, i.e. what to translate and what to leave untranslated (e.g. command names vs. variable names)

Greetings

Helge

Signature · 4 lines
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/