[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
man page .SY/.YS synopsis .OP HTML output breaks long options between hy
From: |
Brian Inglis |
Subject: |
man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens |
Date: |
Thu, 16 Mar 2023 19:39:27 -0600 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
Hi folks,
Output of man pages with lengthy synopses from grohtml do not disable adjustment
and hyphenation as for tty, breaking long options between the hyphens and
anywhere else available.
Attached is a man page I generated from help2man, then fixed to use current
macros and look okay on the tty.
I then generated HTML output, and added fixes so the output looked as good as on
the tty.
For each option, I had to use:
‑ U+2011 NON-BREAKING HYPHEN
U+2060 WORD JOINER
‑ U+2011 NON-BREAKING HYPHEN ‑ as option flag(s), instead of normal \-
output, followed by U+2060 WORD JOINER ⁠ to avoid breaks before the
option character or in a long option.
If you wanted to avoid breaks within long options with multiple hyphenated
words, you would have to use the same character sequence instead of hyphens.
Similarly, to avoid breaks between alternatives within brackets, vertical bars
or other punctuation needs to be followed by ⁠ to keep as one word e.g.
*-a*|*--all*
[<b>‑⁠a</b>|⁠<b>‑‑all</b>]
*-c*|*--outputencoding* /outputencoding/
[<b>‑⁠c</b>|⁠<b>‑‑outputencoding </b><i>outputencoding</i>]
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
xlsx2csv.1
Description: Text document
- man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens,
Brian Inglis <=
- Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens, G. Branden Robinson, 2023/03/23
- Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens, G. Branden Robinson, 2023/03/23
- Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens, Alejandro Colomar, 2023/03/23
- adjustment and hyphenation in mdoc(7) pages, G. Branden Robinson, 2023/03/24
- Re: adjustment and hyphenation in mdoc(7) pages, G. Branden Robinson, 2023/03/24
- Re: adjustment and hyphenation in mdoc(7) pages, G. Branden Robinson, 2023/03/24
- Re: adjustment and hyphenation in mdoc(7) pages, Alejandro Colomar, 2023/03/24
- Re: adjustment and hyphenation in mdoc(7) pages, G. Branden Robinson, 2023/03/24
- Re: adjustment and hyphenation in mdoc(7) pages, Dave Kemper, 2023/03/24
- using the `hw` request in man pages (was: adjustment and hyphenation in mdoc(7) pages), G. Branden Robinson, 2023/03/25