diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index 8306ae76..df98a7d3 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -255,7 +255,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll sed --regexp-extended --in-place "s|[A-Z’]{2,}|<em>\L\1</em>|g" src/epub/text/*

This will unfortunately replace language tags like en-US, so fix those up with this:

sed --regexp-extended --in-place "s|en-<em>([a-z]+)</em>|en-\U\1|g" src/epub/text/* -

These replacments don’t take Title Caps into account, so use git diff to review the changes and fix errors before committing.

+

These replacements don’t take Title Caps into account, so use git diff to review the changes and fix errors before committing.

  • Semantics rules for chapter titles.