如何键入Unicode字符组合? [英] How do I type Unicode character combinations?

查看:328
本文介绍了如何键入Unicode字符组合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我希望有一个符号作为字符串的一部分。它是一个v,上面有一个¯来表示平均速度。



如何将这个符号放入字符串?

类似于类型重音,然后元音获得'è'类似的内容?



提前致谢,





lukeer

解决方案

你无法以这种方式撰写角色。例如,'è'字符是单个字符,而不是'e'和重音字符的组合。如果平均速度有UNICODE字符,那么您可以使用它。另一方面,如果没有这样的角色,你就是运气不好。


根据 Wikipedia ,可以将任意符号与变音符号组合在一起,在我的例子中, overline 比macron更合适。



至少它在一条消息中起作用box:

 MessageBox.Show(v+ char.ConvertFromUtf32(0x305)); 

因此,我认为问题已经结束。



我的应用程序需要它在Windows窗体DataGridView中工作。在那里,上线略微向右移动(标准字体和大小)。由于我没有动力去玩弄不知道的东西,我只会使用另一个符号。



感谢大家的努力。


Hi experts,

I want to have a symbol as part of a string. It's a "v" with a "¯" above it to represent "average velocity".

How can I get that symbol into the string?
Anything similar to "type accent, then vowel to get 'è'"?

Thanks in advance,


lukeer

解决方案

You cannot compose characters that way. For instance the 'è' character is a single one, not a composition of 'e' and the accent one. If there is a UNICODE character for the average velocity then you might use it. On the other hand if there isn't such a character, you are simply out of luck.


According to Wikipedia, one can combine arbitrary symbols with diacritics and in my case, an overline fits better than a macron.

At least it works in a message box:

MessageBox.Show("v" + char.ConvertFromUtf32(0x305));

Therefore, I consider the question closed.

My application needs it to work in a Windows Forms DataGridView. There, the overline is slightly shifted to the right (standard font and size). Since I have no incentive to twiddle around with don't-know-what-yet, I'll just use another symbol.

Thanks everyone for your effort.


这篇关于如何键入Unicode字符组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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