[Mono-list] Japanese text question

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Wed Nov 11 20:52:15 EST 2009


Stifu wrote:
> Hello,
> I'd like to know if there is a simple way to connect the ten ten (゛) and
> maru (°) characters with the preceding character, ie: just how it's supposed
> to look.
> For example, this text:
> ト゛ー...
> Should look like that after conversion:
> ドー...
> I naturally looked into the string and CultureInfo methods, but found
> nothing.
> If no magic solution shows up, I guess I'll have to do everything myself,
> like: if (character == '゛')  switch(previous_character)...
> Can anyone help? (Mr. Atsushi, perhaps?)

Heh yes ;)
Use string normalization: "\u30C8\u3099".Normalize() == '\u30C9'

(You might want to use another normalization overload with

Atsushi Eno

More information about the Mono-list mailing list