View Single Post
Old 08-17-2011, 03:34 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
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).
Jellby is offline   Reply With Quote