From 1b6d69c7258726ee938b9eeaad981819f2cfdeaf Mon Sep 17 00:00:00 2001 From: vr8hub Date: Fri, 7 Mar 2025 14:44:56 -0600 Subject: [PATCH] Clarify the files excluded from language check --- 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 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"