From 46a4c567ebe49c0e4e220b976db1b49d7dc67479 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Sun, 8 Oct 2023 18:02:40 -0700 Subject: Purposefully exclude comments and handle smart-quoting directly Asciidoctor's handling of quote marks isn't perfect, but we can preprocess the markup a bit further to take care of it on our end. Also, strip comments out of the "concatenated" document on purpose -- this is to allow for more accurate word-counts. --- script/unicodify.sed | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/unicodify.sed b/script/unicodify.sed index db49aca..a04f199 100644 --- a/script/unicodify.sed +++ b/script/unicodify.sed @@ -1,4 +1,9 @@ s,[[:space:]]--[[:space:]],\&\#8212;,g +s,'`,\&\#8216;,g +s,"`,\&\#8220;,g +s,`',\&\#8217;,g +s,`",\&\#8221;,g s,\ï,\&\#239;,g s,\è,\&\#232;,g s,\é,\&\#233;,g +s,//.*,,g -- cgit v1.2.3