Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
[no name] 24-Jul-14 8:34am    
Have you seen this? http://www.fileformat.info/tip/microsoft/enter_unicode.htm
lukeer 24-Jul-14 9:14am    
Now that you mention it, yes, I've seen it. But it addresses the input of single characters. I need to combine macron and 'v'.
Any idea for that?
Richard MacCutchan 24-Jul-14 9:21am    
Take a look at the Windows Character map to see if such a symbol exists. I'm not sure abou t the v but the è is there.

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.
 
Share this answer
 
v2
Comments
lukeer 25-Jul-14 4:08am    
In light of recent research, I have to disagree.
[impose=you-know-who] Please see my answer [/impose]
CPallini 25-Jul-14 4:25am    
:-)
I stand corrected.
However, if I got the Wikipedia page, the corrensponding single UNICODE character must exist.
lukeer 25-Jul-14 4:43am    
For some characters, like 'é', there are two possibilities. The single character you mention _and_ a composition of 'e' and '´'.
If I want a somewhat more exotic combination, I'm left with _only_ the second possibility.
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900