[Mono-list] Japanese text question

Stifu stifu at free.fr
Thu Nov 12 02:38:55 EST 2009


Thank you very much, to both of you!
I got it working. :)


Atsushi Eno-3 wrote:
> 
> Hello,
> 
> 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
> System.Text.StringNormalization.)
> 
> Atsushi Eno
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://old.nabble.com/Japanese-text-question-tp26304938p26314615.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list