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/*