From 81283d77bcb39c8ef984a3f124a62d40493c5cbe Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Sun, 15 May 2022 00:15:49 -0600 Subject: [PATCH] Link to SEMOS 8.10.4 for rules on initials --- www/contribute/producing-an-ebook-step-by-step.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index 61c34220..e78b3ebf 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -278,7 +278,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll
  • Semantics rules for abbreviations. Abbreviations should always be wrapped in the <abbr> element and with the correct epub:type attribute.

    -

    Specifically, see the typography rules for initials. Wrap people’s initials in <abbr epub:type="z3998:given-name">. This command helps wrap initials:

    +

    Specifically, see the typography rules for initials. Wrap people’s initials in <abbr epub:type="z3998:given-name">. This command helps wrap initials:

    se interactive-replace '(?<!<abbr[^<]*?>)([A-Z]\.(\s?[A-Z]\.)*)(?!</abbr>|”)' '<abbr epub:type="z3998:given-name">\1</abbr>' src/epub/text/*