如何改变音调符号字符非音调符号的人 [英] How to change diacritic characters to non-diacritic ones

查看:136
本文介绍了如何改变音调符号字符非音调符号的人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了答案如何删除计算器上的读音符号的字符,但是请你告诉我,如果有可能改变音调符号字符非音调符号的呢?

I've found a answer how to remove diacritic characters on stackoverflow, but could you please tell me if it is possible to change diacritic characters to non-diacritic ones?

呵呵..我想.NET(或其他的话是不可能的)

Oh.. and I think about .NET (or other if not possible)

推荐答案

从复制的我自己的答案另一个问题

而不是创建自己的表,你可以改为将文本转换为正常化形式D,其中的人物被重新psented作为一个基本字符加上附加符号$ P $(例如,a将被一取代其次是组合重音符)。然后,您可以剥夺一切是不是一个ASCII字母。

Instead of creating your own table, you could instead convert the text to normalization form D, where the characters are represented as a base character plus the diacritics (for instance, "á" will be replaced by "a" followed by a combining acute accent). You can then strip everything which is not an ASCII letter.

该表仍然存在,但现在从统一code标准的人。

The tables still exist, but are now the ones from the Unicode standard.

您也可以尝试NFKD而不是NFD,捕捉更多的情况。

You could also try NFKD instead of NFD, to catch even more cases.

参考文献:

  • http://unicode.org/reports/tr15/
  • http://www.siao2.com/2005/02/19/376617.aspx
  • http://www.siao2.com/2007/05/14/2629747.aspx

这篇关于如何改变音调符号字符非音调符号的人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆