amundo / transliterate-jquery

A general-purpose jQuery transliteration plugin (eventually...)
14 stars 2 forks source link

Character tables should be encoded with Unicode escapes #5

Open amundo opened 14 years ago

amundo commented 14 years ago

Some sites (like jsbin) are pretty fragile when it comes to Unicode. for that reason it's better to represent the target-writing-system characters with Unicode escapes instead of actual characters.

The actual characters may be left as comments.

Thus, don't write:

['TSV', 'Ꮸ'],

Instead write:

['TSV', '\u13E8'], // Ꮸ CHEROKEE LETTER TSV (U+13E8)

That way, even if the comment gets corrupted, at least the representation in the rule wn't be corrupted.