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.
This commit is contained in:
Robin Whittleton 2019-05-19 14:19:49 +02:00
parent 426716234c
commit d7d2fdbe3c

View file

@ -261,7 +261,7 @@ require_once('Core.php');
<p><code class="program">se modernize-spelling</code> would replace the dash in <code class="html">gold-thread</code> so that it reads <code class="html">goldthread</code>. Well <code class="html">goldthread</code> is an actual word, which is why its in our dictionary, and why the script makes a replacement—but its the name of a type of flower, <em>not</em> a golden fabric thread! In this case, <code class="program">se modernize-spelling</code> made an incorrect replacement, and we have to change it back.</p>
<p><code class="program">git</code> provides a handy way for us to visualize these differences:</p><code class="terminal"><span>git difftool</span></code>
<p>After youve 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.</p>
<p>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 <code class="program">git</code> history can be easily searched by people looking to revert changes.</p><code class="terminal"><span>git add -A</span> <span>git commit -m "[Editorial] Modernize hyphenation and spelling"</span></code>
<p>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 <code class="program">git</code> history can be easily searched by people looking to revert changes.</p><code class="terminal"><span>git commit -am "[Editorial] Modernize hyphenation and spelling"</span></code>
</li>
<li>
<h2>Modernize spacing in select words</h2>