From 2cff46a8899973832a411d5cc15a2dd64dbdcd85 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 24 Sep 2024 17:34:26 -0700 Subject: Need another post-processing step to "unconvert" double quotes --- script/unicodify2.sed | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 script/unicodify2.sed (limited to 'script/unicodify2.sed') 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 -- cgit v1.2.3