diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2024-09-24 17:34:26 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2024-09-24 17:34:26 -0700 |
| commit | 2cff46a8899973832a411d5cc15a2dd64dbdcd85 (patch) | |
| tree | 80b765126d75d1b6f6f453af6c855499ca8bdc03 /script | |
| parent | 7191efe974a7ddbddd80f5ed3eaf171e963d9eda (diff) | |
Need another post-processing step to "unconvert" double quotes
Diffstat (limited to 'script')
| -rw-r--r-- | script/unicodify.sed | 9 | ||||
| -rw-r--r-- | script/unicodify2.sed | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/script/unicodify.sed b/script/unicodify.sed index a95fec0..4668732 100644 --- a/script/unicodify.sed +++ b/script/unicodify.sed @@ -2,15 +2,6 @@ s,[[:space:]]--[[:space:]],\&\#8212;,g s,[[:space:]]\.\.\.[[:space:]],\&\#8230;,g -# WilloraPDF extension: explicit "unmatched" double-quote shortcuts. -# -# This is to work around a shortcoming in Asciidoctor when a double-quote is -# right up against a non-word character -- em-dashes, ellipses, etc. TL;DR -# it's better to let Asciidoctor handle ("`) and (`") automatically by -# default EXCEPT FOR the times we need to wrangle it ourselves. -s,\&_OPENDOUBLEQUOTE;,\&\#8220;,g -s,\&_CLOSEDOUBLEQUOTE;,\&\#8221;,g - # Explicitly handle curly double quotes before curly single quotes. s,"`,\&\#8220;,g s,`",\&\#8221;,g diff --git a/script/unicodify2.sed b/script/unicodify2.sed new file mode 100644 index 0000000..f78c65e --- /dev/null +++ b/script/unicodify2.sed @@ -0,0 +1,8 @@ +# WilloraPDF extension: explicit "unmatched" double-quote shortcuts. +# +# This is to work around a shortcoming in Asciidoctor when a double-quote is +# right up against a non-word character -- em-dashes, ellipses, etc. TL;DR +# it's better to let Asciidoctor handle ("`) and (`") automatically by +# default EXCEPT FOR the times we need to wrangle it ourselves. +s,\&_OPENDOUBLEQUOTE;,\"\`,g +s,\&_CLOSEDOUBLEQUOTE;,\`\",g |
