From df9d5e03e39f77ef07c47ef9cb85baf9f7ae9aed Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Fri, 13 Sep 2024 08:18:44 +0200 Subject: [PATCH] Add stretched words to the list of manual typogrify checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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”. --- www/contribute/producing-an-ebook-step-by-step.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index e433d7bb..84fee712 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -269,6 +269,12 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll +
  • +

    + Non-breaking hyphens are used when a word is stretched out for effect. +

    +

    Although it will produce a lot of false positives, this regex can help you find stretched words: (?i)([a-z])-\1

    +
  • The fourth commit

    Once you’ve searched the work for the common issues above, if any manual changes were necessary, you should perform the fourth commit.

    git add -A git commit -m "Manual typography changes"