Skip to content

Comments

Improve markup in unicharset_extractor.1.asc#4501

Open
mariobl wants to merge 1 commit intotesseract-ocr:mainfrom
mariobl:main
Open

Improve markup in unicharset_extractor.1.asc#4501
mariobl wants to merge 1 commit intotesseract-ocr:mainfrom
mariobl:main

Conversation

@mariobl
Copy link

@mariobl mariobl commented Jan 11, 2026

Hello,

I've tried to improve the markup in unicharset_extractor.1.asc. Some explanations:

The man page man-pages.7 ("Fomatting conventions") describes how we should treat command names, literal options and file names. I've applied that to write command names and options in bold, file names italic.

The current links in the SEE ALSO sections are unformatted, but should be bold. Especially online man page collections (like [1]) need this formatting to generate clickable links to that man pages (by the way, this applies also to external commands found in "description" paragraphs etc.).

Currently I've written the following file header:
:man source: tesseract
This is still incomplete. For an example what it should be, see [2]. With the macro {release-version} we would be able to write an unique version number into the header of the rendered man page. Don't know how to expand the macro; maybe refer to the util-linux code…?

If you agree with the changes, I will continue on review the formatting of the other man pages.

[1] https://man.archlinux.org/man/unicharset_extractor.1#SEE_ALSO
[2] https://github.com/util-linux/util-linux/blob/master/text-utils/col.1.adoc?plain=1#L44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant