如何显示上划线在.NET信吗?NET

2023-09-05 00:37:47 作者:杀死书生

我正在考虑创建自定义数字格式化,将返回重新在老亚美尼亚presents整数字符串数字的。印度的数字(0,1..9),以欧洲到来之前,亚美尼亚人利用国家字母计算研究。这是很像罗马一个接它的意识形态。有不为0。信件是再presenting单位(1,2,3..9),几十个(10,20..90),千(100,200..900)等。至于因为在亚美尼亚字母那时是36(有限)信你可以指望的 1 为 9999 。然后,他们延长了加入上划线字母。

I am thinking about creating custom Number Formatter that will return string that represents integer in Old Armenian Numerals. Before arrival of Indian numerals (0,1..9) to Europe, Armenians were counting in by using national alphabet. It was much like to Roman one by its ideology. There were not Zero. Letters are representing units(1,2,3..9), tens (10,20..90), thousands (100,200..900) and so on. As because in Armenian alphabet at that time was 36 (limited) letters you can count from 1 to 9999. Then they extended by adding overlined letters.

我怎么能检索包含划线的字母串?

How can I retrieve string that contains overlined letters?

推荐答案

有一个的 COMBINING划线(U + 0305)这是一个组合变音记号,所以单是看不到的。你把它要与划线每个号码后。

There is a COMBINING OVERLINE' (U+0305) It is a combining diacritical mark, so alone is invisible. You put it AFTER each number you want with the overline.

在C#中:Ա\ u0305例如,应该是10000

In C#: "Ա\u0305" for example, should be 10000.

作为一个小纸条,发现有机器人的结合上划线和亚美尼亚的数字将是复杂的字体。可悲的是组合变音不是100%的支持无处不在,似乎字体替换不能很好地工作,当您尝试使用这些(或者你不能有两个字体替换在同一时间,一个用于结合,和一个用于亚美尼亚号......)......因此,关键Gravell做了评论作品,亚美尼亚数量可以证明,亚美尼亚号+的配合上划线?复杂!

As a small note, finding a font that has bot the Combining Overline and the Armenian numbers will be complex. Sadly combining diacritical aren't 100% supported everywhere, and it seems that font substitution doesn't work very well when you try to use them (or perhaps you can't have two font substitutions at the same time, one for the Combining, and one for the Armenian number...)... So the trick Gravell did on the comment works, the Armenian number can be shown, the Armenian number + the Combining Overline? Complex!

例如Chrome浏览器甚至不能够显示相结合的评分亚美尼亚数词。 Firefox和IE浏览器10(但即使他们动作太大,以正确的组合标志)

For example Chrome isn't even able to show the Combining Mark over the Armenian Numerals. Firefox and IE 10 are (but even them move too much to the right the Combining Mark)

1̅Ա̅2̅3̅