Add stretched words to the list of manual typogrify checks

The regex picks up a lot of words that don’t need non-breaking hyphens unfortunately, but I can’t think of anything better. Changing it to just vowels means ignoring “hm-m” or “stop-p-p”.
This commit is contained in:
Robin Whittleton 2024-09-13 08:18:44 +02:00 committed by Alex Cabal
parent 545f82a672
commit df9d5e03e3

View file

@ -269,6 +269,12 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll
</tbody>
</table>
</li>
<li>
<p>
<a href="/manual/latest/single-page#8.7.7.6">Non-breaking hyphens are used when a word is stretched out for effect.</a>
</p>
<p>Although it will produce a lot of false positives, this regex can help you find stretched words: <code class="regex">(?i)([a-z])-\1</code></p>
</li>
</ul>
<h3>The fourth commit</h3>
<p>Once youve searched the work for the common issues above, if any manual changes were necessary, you should perform the fourth commit.</p><code class="terminal"><span><b>git</b> add -A</span> <span><b>git</b> commit -m <i>"Manual typography changes"</i></span></code>