diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index 7c3cf8b9..f0b08492 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -269,12 +269,12 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll

Semantics rules for chapter titles.

  • -

    Semantics rules for abbreviations. Abbreviations should always be wrapped in the <abbr> element and with the correct class attribute.

    -

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

    +

    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:

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

    Typography rules for times. Wrap a.m. and p.m. in <abbr class="time"> and add a no-break space between digits and a.m. or p.m.

    +

    Typography rules for times. Wrap a.m. and p.m. in <abbr> and add a no-break space between digits and a.m. or p.m.

  • Words or phrases in foreign languages should always be marked up with <i xml:lang="TAG">, where TAG is an IETF language tag. This website can help you look them up. If the text uses fictional or unspecific languages, use the x- prefix and make up a subtag yourself.