From 7191efe974a7ddbddd80f5ed3eaf171e963d9eda Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Fri, 13 Sep 2024 17:58:48 -0700 Subject: Handle ellipses interactions with curly double quotes --- script/unicodify.sed | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/unicodify.sed b/script/unicodify.sed index ae33151..a95fec0 100644 --- a/script/unicodify.sed +++ b/script/unicodify.sed @@ -1,5 +1,6 @@ -# Remove spaces on either end of an em-dash. +# Remove spaces on either end of an em-dash or ellipsis. s,[[:space:]]--[[:space:]],\&\#8212;,g +s,[[:space:]]\.\.\.[[:space:]],\&\#8230;,g # WilloraPDF extension: explicit "unmatched" double-quote shortcuts. # @@ -10,7 +11,9 @@ s,[[:space:]]--[[:space:]],\&\#8212;,g s,\&_OPENDOUBLEQUOTE;,\&\#8220;,g s,\&_CLOSEDOUBLEQUOTE;,\&\#8221;,g -# Curly single quotes. +# Explicitly handle curly double quotes before curly single quotes. +s,"`,\&\#8220;,g +s,`",\&\#8221;,g s,'`,\&\#8216;,g s,`',\&\#8217;,g -- cgit v1.2.3