In Windows, how do you enter a character outside of the Unicode Basic Multilingual Plane?

[亡魂溺海] 提交于 2019-12-04 21:56:42

问题


I know that Windows has supported supplemental planes since Windows XP.

I have fonts which I know have characters outside the basic multilingual plane (BMP).

For these characters, the Unicode codepoint consists of five hexadecimal digits.

I do not know how to enter these characters in applications.

Windows seems to only support keyboard entry of characters in the BMP. You can either enter a decimal number or some applications allow you to enter a four digit hexadecimal number.

Can someone confirm how entry is managed? I don't care if it directly from the keyboard or application-assisted. (The default Windows "Character Map" application only supports characters in the BMP, so I need suggestions -- preferably to an application supporting at least Unicode Version 5, if not 6.)

In Java, these characters are managed using "surrogate pairs" in UTF-16. I'm concerned that Windows may also have some of the old "Unicode is 16 bit" legacy, causing to have a similar issue. Even getting confirmation that I need to punch in surrogate pair numbers would be an answer.

Thanks!


回答1:


Ok, i clearly do not know what are you talking about.

Anyway, refering to:

The default Windows "Character Map" application only supports characters in the BMP, so I need suggestions -- preferably to an application supporting at least Unicode Version 5, if not 6.

I've found a link to an application that could help.

http://www.babelstone.co.uk/software/babelpad.html

Download it, and select menu Tools -> then Character map.

Hope it could help.

If not sorry for the missunderstanding, just intending to help.




回答2:


At least in MS Word 2007, the Alt+X method works for non-BMP characters, too: enter U+ followed by the Unicode number in hexadecimal, then Alt+X. The characters U+ may be omitted if the preceding character is not a digit or a letter A–F or X. You may need to explicitly select the font of the text (i.e., Word does not necessarily switch to a font that contains the character, as it normally does with BMP characters).

In Word, you can alternatively use the Insert → Symbol command and then, in the insertion window, select a font that contains the character you need.

Using the UnicodeInput program, you can enter a character by pressing Alt++ and then entering the Unicode number. It supports non-BMP too, but with an odd restriction, due to a program bug: it does not work for non-BMP characters if the fourth digit from the right is a letter (e.g., U+1B000).

BabelPad, mentioned in Martin’s answer, is great alternative and lets you select characters both by number and by Unicode name.

There are probably other Unicode editors too that let you work with BMP; check out Alan Wood’s list of Unicode and Multilingual Programs and Utilities.




回答3:


I have now composed a small utility than can be used on a web browser in an application-like manner: Full Unicode Input utility. It’s similar to Character Map in Windows but lets you access all Unicode planes and get the selected characters collected in an area, from which they can be copied as a unit. Somewhat quick and dirty, but functional.




回答4:


I will shamelessly plug a little tool I wrote for entering symbols in Windows as I find any solution usually presented too cumbersome for daily frequent use. My personal use case is typing the Swedish å for example on an international US keyboard without having to switch layouts.

It allows the entering of unicode characters through a popup window not dissimilar to how this works in Apple OS X.

See https://github.com/mjvh80/SymWin for details, it's free and open source, but must (currently) be compiled. If there is sufficient interest I could add a pre-built version.

The tool can be configured per key, e.g. by copy/pasting symbols once from a site such as http://copypastecharacter.com.



来源:https://stackoverflow.com/questions/9755498/in-windows-how-do-you-enter-a-character-outside-of-the-unicode-basic-multilingu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!