Skip to content
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

AsciiDoc text replacement: flanking '--' pairs of hyphens with spaces #115

Closed
wants to merge 2 commits into from

Conversation

grahamperrin
Copy link
Contributor

@grahamperrin grahamperrin commented Feb 20, 2023

Reference

https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#text-replacements under AsciiDoc Syntax Quick Reference | Asciidoctor Docs.

One of the criteria, paraphrased:

  • wherever a pair of hyphens should be automatically replaced by an em dash, the pair may be flanked by spaces.

Background

The (pt-br) Brazilian Portuguese case was found through running a ripgrep command:

rg '`.* -- .*`' /usr/doc

– in connection with:

The window to the right in this screenshot:

image

To allow automated replacement of pairs of hyphens, some pairs must be flanked by spaces.
To allow automated replacement of pairs of hyphens, some pairs must be flanked by spaces.
@@ -123,7 +123,7 @@ You can quit `adduser` any time by typing kbd:[Ctrl+C], and at the end you will
You might want to create a second new user so that when you edit `jack`'s login files, you will have a hot spare in case something goes wrong.

Once you have done this, use `exit` to get back to a login prompt and log in as `jack`.
In general, it is a good idea to do as much work as possible as an ordinary user who does not have the power-and risk-of `root`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each single hyphen '-' flanked by words – no space on either side of the hyphen – was incorrect.

Looking ahead: the commit from finalisation of this PR can be a fix to a past commit.

(A lazy guess: something around the time of migration to AsciiDoc.)

@grahamperrin grahamperrin deleted the pr-115 branch August 20, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant