如何正确大写的希腊词语的.NET?希腊、词语、如何正确、NET

由网友(无感.)分享简介:我们有它运行在世界各地不同客户的ASP.NET应用程序。在这个应用中,我们有字典为每一种语言。在字典中,我们必须以小写的话,有时我们$ C $下印刷的原因大写吧。We have ASP.NET application which runs different clients around the world. In...

我们有它运行在世界各地不同客户的ASP.NET应用程序。在这个应用中,我们有字典为每一种语言。在字典中,我们必须以小写的话,有时我们$ C $下印刷的原因大写吧。

We have ASP.NET application which runs different clients around the world. In this application we have dictionary for each language. In dictionary we have words in lowercase and sometimes we uppercase it in code for typographic reasons.

var greek= new CultureInfo("el-GR");
string grrr = "Πόλη";
string GRRR = grrr.ToUpper(greek); // "ΠΌΛΗ"

现在的问题是:

The problem is:

...如果您使用的是大写字母   那么他们必须出现像这样:F.E.   ΠΟΛΗ并没有像ΠΌΛΗ,相同的所有   用大写字母换句话说

...if you're using capital letters then they must appear like this: f.e. ΠΟΛΗ and not like ΠΌΛΗ, same for all other words written in capital letters

那么,这可能一般为大写的希腊字正确的.NET?或者我应该写我自己的自定义算法希腊大写?

So is it possible generically to uppercase Greek words correctly in .NET? Or should I wrote my own custom algorithm for Greek uppercase?

他们是如何解决这个问题在希腊?

How do they solve this problem in Greece?

推荐答案

我怀疑你将不得不编写自己的方法,如果 EL-GR 没有按'吨做你想做的。不要以为你需要去创建一个自定义的CultureInfo ,如果这是你所需要的。这是很好的,因为那看起来很繁琐。

I suspect that you're going to have to write your own method, if el-GR doesn't do what you want. Don't think you need to go to the full length of creating a custom CultureInfo, if this is all you need. Which is good, because that looks quite fiddly.

我不建议你做的是阅读这迈克尔·卡普兰的博客文章和其他任何相关的,你可以通过他找到 - 他一直在和写作国际化和语言的问题,好多年和他的评论是呼吁在Windows任何此类问题的第一点

What I do suggest you do is read this Michael Kaplan blog post and anything else relevant you can find by him - he's been working on and writing about i18n and language issues for years and years and his commentary is my first point of call for any such issues on Windows.

阅读全文

相关推荐

最新文章