From d7d2fdbe3c4b59ec481b9886a01876a92503a94e Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Sun, 19 May 2019 14:19:49 +0200 Subject: [PATCH] Simplify spelling modernisation git command We can do the same with did with the individual spelling changes and get this down to a single command as it only runs against existing files. --- 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 3030985a..190d2a21 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -261,7 +261,7 @@ require_once('Core.php');

se modernize-spelling would replace the dash in gold-thread so that it reads goldthread. Well goldthread is an actual word, which is why it’s in our dictionary, and why the script makes a replacement—but it’s the name of a type of flower, not a golden fabric thread! In this case, se modernize-spelling made an incorrect replacement, and we have to change it back.

git provides a handy way for us to visualize these differences:

git difftool

After you’ve reviewed the changes that the tool made, do another commit. This commit is important, because it gives purists an avenue to revert modernizing changes to the original text.

-

Note how we preface this commit with “[Editorial]”. Any change you make to the source text that can be considered a modernization or editorial change should be prefaced like this, so that the git history can be easily searched by people looking to revert changes.

git add -A git commit -m "[Editorial] Modernize hyphenation and spelling" +

Note how we preface this commit with “[Editorial]”. Any change you make to the source text that can be considered a modernization or editorial change should be prefaced like this, so that the git history can be easily searched by people looking to revert changes.

git commit -am "[Editorial] Modernize hyphenation and spelling"
  • Modernize spacing in select words