# Remove spaces on either end of an em-dash or ellipsis. s,[[:space:]]--[[:space:]],\&\#8212;,g s,[[:space:]]\.\.\.[[:space:]],\&\#8230;,g # Explicitly handle curly double quotes before curly single quotes. s,"`,\&\#8220;,g s,`",\&\#8221;,g s,'`,\&\#8216;,g s,`',\&\#8217;,g # Diacritics. s,\ç,\&\#231;,g s,\è,\&\#232;,g s,\é,\&\#233;,g s,\ï,\&\#239;,g # Remove Asciidoc comments now, for the sake of getting more accurate # wordcounts. s,//.*,,g