Insert hair space (u200a) btwn pairs of single/double quotes
As part of the macro cleanups, we should insert hair space (u200a) btwn pairs of single/double quotes. Note that order of operations matters; this assumes that straight quotes and apostrophes have been replaced with their directional counterparts.
- left single quote+left double quote (u2018+u201c)
- left double quote+left single quote (u201c+u2018)
- right single quote+right double quote (u2019+u201d)
- right double quote+right single quote (u201d+u2019)
This currently partially works. See the following example inputs and outputs: the characters in Word on the left and the final Typescript output on the right.
-
"'quote'"
-><p style="font-family: Helvetica">“ ‘quote’ ”</p>
- works properly; hs between both pairs of quotes
-
'"quote"'
-><p style="font-family: Helvetica">‘“quote” ’</p>
- hs between the 2nd quotes but not the 1st
-
'”quote"‘
-> `‘“quote” ’
- hs between the 2nd quotes but not the 1st
-
‘"quote"’
-><p style="font-family: Helvetica">‘“quote” ’</p>
- hs between the 2nd quotes but not the 1st
-
""quote""
-><p style="font-family: Helvetica">“ “quote””</p>
- hs between the 1st quotes but not the 2nd