Skip to content

Conversation

@jnavila
Copy link

@jnavila jnavila commented Dec 20, 2025

The changes are basically the expected stuff for synopsis conversion, and a few cases of "imperative mood" style.

Additionally, this series has two special commits

  • fix to the comparison of synopsis and help, to allow using synopsis paragraph elsewhere in manpages
  • the "ascii art" tables in git-status are converted to plain asciidoc tables. The alignment output is managed by the asciidoc processor.

The second patch is a RFC as to whether we should convert our tables or not. For the translations of the manual pages, this setup simplifies the maintenance, because we are able to export each table cell as a separate segment.

In case there are multiple synopsis blocks (declared with [synopsis]
or [verse] style) in the same file, the previous implementation was
incorrectly picking up text from all the blocks until the first empty
line. This commit modifies the sed command to stop processing upon
encountering the first empty line after the first block declaration,
thereby ensuring that only the intended block is captured.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Also convert unformatted lists to proper AsciiDoc lists.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Instead of plain text tables with hand formatting, take advantage of
asciidoc's table syntax to let the renderer do the heavy lifting and
make the tables more maintainable and translatable.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
- Switch the synopsis to a synopsis block which will automatically
  format placeholders in italics and keywords in monospace
- Use _<placeholder>_ instead of <placeholder> in the description
- Use `backticks` for keywords and more complex option
descriptions. The new rendering engine will apply synopsis rules to
these spans.
- also convert first sentences to imperative mood where applicable

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
@jnavila
Copy link
Author

jnavila commented Dec 20, 2025

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 20, 2025

Submitted as pull.2020.git.1766258187.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-2020/jnavila/doc_git_status-v1

To fetch this version to local tag pr-2020/jnavila/doc_git_status-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-2020/jnavila/doc_git_status-v1

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