From: Murray Sargent (murrays@Exchange.Microsoft.com)
Date: Fri Nov 14 2003 - 20:03:25 EST
Patrick asks: «Q. How can I input any Unicode character if I know its hexadecimal code?»
You could use an app that supports the Alt+x input method (like Word or WordPad) and then copy the result into an app that doesn't.
For reference, the Alt+x input method works as follows:
A handy hex-to-Unicode entry method works with WordPad 2000/XP, Office 2000/XP edit boxes, RichEdit controls in general, and in Microsoft Word 2002. Basically you type a character's hexadecimal code (in ASCII), making corrections as need be, and then type Alt+x. Presto! The hexadecimal code is replaced by the corresponding Unicode character. The Alt+x is a toggle, that is, type it once to convert the hex code to a character and type it again to convert the character back to a hex code. If the hex code is preceded by one or more hexadecimal digits, you need to "select" the code so that the preceding hexadecimal characters aren't included in the code. The code can range up to the value 0x10FFFF, which is the highest character in the 17 planes of Unicode.
The only problem with this approach is that some programs use Alt+x for something else (like quit) or the keyboard doesn't have direct access to ASCII alphabetics.
It's not patented, so anyone can use it :-)
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Patrick Andries
Sent: Friday, November 14, 2003 4:06 PM
Subject: How can I input any Unicode character if I know its hexadecimal code?
http://www.unicode.org/faq/font_keyboard.html states :
«Q. How can I input any Unicode character if I know its hexadecimal code?
A. Some platforms have methods of hexadecimal entry; others have only decimal entry.
On Windows, there is a decimal input method: hold down the alt key while typing decimal digits on the numeric keypad. The ALT+decimal method requires the code from the encoding of the command prompt. To enter Unicode decimal values, you have to prefix the number with a 0 (zero). E.g. ALT+0163 is the pound sign ("£"), in decimal.
There is a hex-to-Unicode entry method that works with WordPad 2000, Office 2000 edit boxes, RichEdit controls in general, and in Microsoft Word 2002.»
I would like to input arbitrary hexadecimal Unicode values in an application (XMetal) which does not seem to use the RichEdit control. Unfortunately, I don't seem to be able to key in a large decimal value (outside of win 1252) using the ALT+0xxx convention in XMetal (I'm on a US Windows XP). Is this normal ?
Is it possible - I suspect not - to use the Keyboard Layout Creator to specify a similar behaviour to the RichEdit control or the standard ALT+<decimal number>? Something like ALT+X+<hex number> would correspond the Unicode character associated to that hex value. Would be useful, I think.
- o - 0 - o -
Unicode et ISO 10646 en français
This archive was generated by hypermail 2.1.5 : Fri Nov 14 2003 - 20:40:15 EST