翻译重音字符 [英] Translate accented characters

查看:110
本文介绍了翻译重音字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

框架中是否有任何内容可以帮助将字符串中带重音符号的b / b字符转换为标准字符串?


例如。 "Gráda" toGrada

Is there anything in the framework which will help translate accented
characters in strings to their standard counterparts?

eg. "Gráda" to "Grada"

推荐答案

" JezB" < JE *********** @ blueyonder.co.uk>在消息中写道

新闻:uQ ************** @ TK2MSFTNGP14.phx.gbl ...
"JezB" <je***********@blueyonder.co.uk> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
是框架中有什么东西可以帮助将字符串中的重音字符翻译成标准对应物吗?

例如。 "Gráda"到Grada
Is there anything in the framework which will help translate accented
characters in strings to their standard counterparts?

eg. "Gráda" to "Grada"




有趣的是,我最近一直在寻找完全相同的东西,并且

无法找到任何原生的东西框架,所以我最终写了

我自己的映射函数。对于拉丁语言来说很容易(例如法语,

西班牙语,意大利语,葡萄牙语等),相当简单的德语(例如任何元音

与变音符号被未修改的替换元音+''e''),斯堪的纳维亚语言有点混乱

,希腊语和西里尔语更糟糕,而且带有变音符号的东欧语言几乎不可能获得



你需要做的商业目的是什么,AAMOI?



Interestingly enough, I was looking for exactly the same thing recently, and
was unable to find anything native to the Framework, so I ended up writing
my own mapping function. Easy enough for the Latin languages (e.g. French,
Spanish, Italian, Portuguese etc), fairly simply for German (e.g. any vowel
with an umlaut is replaced by the unmodified vowel + ''e''), a little messier
for the Scandinavian languages, even worse for Greek and Cyrillic, and
almost impossible for the Eastern European languages with diacritics.

What is the business purpose behind your need to do this, AAMOI?


我正在传递艺术家/专辑通过亚马逊的网站

服务存储在mp3文件中的名称,以查找专辑详细信息。由于我对世界/凯尔特音乐感兴趣,因此许多艺术家的名字都加上了

字符,但是亚马逊的serach

标准似乎是基于标准化的非重音字符串。一个真正的痛苦

编辑我所有的id3标签!


" Mark Rae" <毫安** @ mark-N-O-S-P-A-M-rae.co.uk>在消息中写道

news:Od ************** @ TK2MSFTNGP12.phx.gbl ...
I''m passing artist/album names stored within mp3 files through Amazon''s web
service, to look up album details. Many of the artist names have accented
characters, since I am interested in world/celtic music, but Amazon''s serach
criteria seems to be based on normalized unaccented strings. A real pain to
edit all my id3 tags !

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
" JezB" < JE *********** @ blueyonder.co.uk>在消息中写道
新闻:uQ ************** @ TK2MSFTNGP14.phx.gbl ...
"JezB" <je***********@blueyonder.co.uk> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
是否有任何内容这个框架有助于将字符串中的重音字符翻译成标准对应物吗?

例如。 "Gráda"到Grada
Is there anything in the framework which will help translate accented
characters in strings to their standard counterparts?

eg. "Gráda" to "Grada"



有趣的是,我最近一直在寻找完全相同的东西,
并且无法找到框架中的任何原生内容,所以我最终<编写我自己的映射函数。对于拉丁语言来说很容易(例如
法语,西班牙语,意大利语,葡萄牙语等),对于德语来说相当简单(例如
任何带有变音符号的元音都被未修改的元音+''e''取代)对于斯堪的纳维亚语言来说更糟糕,对于希腊语和西里尔语来说更糟糕,对于带有变音符号的东欧语言来说几乎是不可能的。

什么是你需要这样做的商业目的,AAMOI?



Interestingly enough, I was looking for exactly the same thing recently,
and was unable to find anything native to the Framework, so I ended up
writing my own mapping function. Easy enough for the Latin languages (e.g.
French, Spanish, Italian, Portuguese etc), fairly simply for German (e.g.
any vowel with an umlaut is replaced by the unmodified vowel + ''e''), a
little messier for the Scandinavian languages, even worse for Greek and
Cyrillic, and almost impossible for the Eastern European languages with
diacritics.

What is the business purpose behind your need to do this, AAMOI?



你好,


这里没有这样的东西框架,你可以做的是使用

String.Replace,它会慢一些但毕竟只有5个人声。


干杯,


-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

佛罗里达州交通局


" JezB" < JE *********** @ blueyonder.co.uk>在消息中写道

新闻:uQ ************** @ TK2MSFTNGP14.phx.gbl ...
Hi,

There is nothing like this in the framework, what you can do is use
String.Replace , it will be slower but there are only 5 vocals after all :)

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"JezB" <je***********@blueyonder.co.uk> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
是否有任何内容这个框架有助于将字符串中的重音字符翻译成标准对应物吗?

例如。 "Gráda"到Grada
Is there anything in the framework which will help translate accented
characters in strings to their standard counterparts?

eg. "Gráda" to "Grada"



这篇关于翻译重音字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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