Charles Dye
Super Moderator
- May
- 5,334
- 161
Staff member
Here's a new approach to the old problem of reading and writing text which may contain 'dangerous' characters. This plugin reads text and remaps any problem characters to equivalents in the Unicode "Halfwidth and Fullwidth Forms" block ( http://unicode.org/charts/PDF/UFF00.pdf ). These characters have no significance to TCC and may be handled like any other text.
When you write the text back out with //UnicodeOutput=No, TCC's Unicode-to-ASCII translation will automatically restore these remapped characters to their original values. For //UnicodeOutput=Yes, I provide a function which replaces fullwidth punctuation with ASCII equivalents before writing it.
http://www.unm.edu/~cdye/plugins/safechars.html
When you write the text back out with //UnicodeOutput=No, TCC's Unicode-to-ASCII translation will automatically restore these remapped characters to their original values. For //UnicodeOutput=Yes, I provide a function which replaces fullwidth punctuation with ASCII equivalents before writing it.
http://www.unm.edu/~cdye/plugins/safechars.html