diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index 520a6b71..7ce6163e 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -191,7 +191,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll </body> </html>

If you look carefully, you’ll notice that the <html> element has the xml:lang="en-US" attribute, even though our source text uses British spelling! We have to change the xml:lang attribute for the source files to match the actual language, which in this case is en-GB. Let’s do that now:

perl -pi -e "s|en-US|en-GB|g" src/epub/text/chapter* -

Note that we don’t change the language for the metadata or front/back matter files, like content.opf, titlepage.xhtml, or colophon.xhtml. Those must always be in American spelling, so they’ll always have the en-US language tag.

+

Note that we don’t change the language for the metadata or boilerplate files, like colophon.xhtml, imprint.xhtml, toc.xhtml, or titlepage.xhtml. Those must always be in American spelling, so they’ll always have the en-US language tag.

Once the file split and cleanup is complete, you can perform your second commit.

git add -A git commit -m "Split files and clean"