diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2023-10-08 18:02:40 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2023-10-08 18:02:40 -0700 |
| commit | 46a4c567ebe49c0e4e220b976db1b49d7dc67479 (patch) | |
| tree | b6085e71bb62652007bce6c04f593afb0d2430bd /script | |
| parent | 5a3f45f7f8041674d473ea1043bf007aaa130a5b (diff) | |
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.
Diffstat (limited to 'script')
| -rw-r--r-- | script/unicodify.sed | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
