I wouldn't trust anything automatic, this is what I'd do:
1. Replace every left-single with "¬" (or any otherwise unused character)
2. For every "¬", find the matching right-single (not apostrophe), and replace it with "|" (or other)
3. Replace every remaining right-single (apostrophes) with "÷" (or other)
4. Replace every left-double with left-single, and right-double with right-single.
5. Replace every "¬" with left-double, and "|" with right-double.
6. Replace every "÷" with something different from right-single, but which displays the same (for instance, "& #8217;", without space and quotes).
|