Unicode
Unicode is an industry standard allowing computers to consistently represent and manipulate text expressed in any of the world's writing systems. Developed in tandem with the Universal Character Set standard and published in book form as The Unicode Standard, Unicode consists of a repertoire of about 100,000 characters, a set of code charts for visual reference, an encoding methodology and set of standard character encodings, an enumeration of character properties such as upper and lower case, a set of reference data computer files, and rules for normalization, decomposition, collation and rendering.[1]
The Unicode Consortium, the non-profit organization that coordinates Unicode's development, has the ambitious goal of eventually replacing existing character encoding schemes with Unicode and its standard Unicode Transformation Format (UTF) schemes, as many of the existing schemes are limited in size and scope and are incompatible with multilingual environments. Unicode's success at unifying character sets has led to its widespread and predominant use in the internationalization and localization of computer software. The standard has been implemented in many recent technologies, including XML, the Java programming language and modern operating systems.
Origin and development
Unicode has the explicit aim of transcending the limitations of traditional character encodings, such as those defined by the ISO 8859 standard which find wide usage in various countries of the world but remain largely incompatible with each other. Many traditional character encodings share a common problem in that they allow bilingual computer processing (usually using Roman characters and the local language) but not multilingual computer processing (computer processing of arbitrary languages mixed with each other).
Unicode, in intent, encodes the underlying characters — graphemes and grapheme-like units — rather than the variant glyphs (renderings) for such characters. In the case of Chinese characters, this sometimes leads to controversies over distinguishing the underlying character from its variant glyphs (see Han unification).
In text processing, Unicode takes the role of providing a unique code point — a number, not a glyph — for each character. In other words, Unicode represents a character in an abstract way and leaves the visual rendering (size, shape, font or style) to other software, such as a web browser or word processor. This simple aim becomes complicated, however, by concessions made by Unicode's designers in the hope of encouraging a more rapid adoption of Unicode.
The first 256 code points were made identical to the content of ISO 8859-1 so as to make it trivial to convert existing western text. A lot of essentially identical characters were encoded multiple times at different code points to preserve distinctions used by legacy encodings and therefore allow conversion from those encodings to Unicode (and back) without losing any information. For example, the "fullwidth forms" section of code points encompasses a full Latin alphabet that is separate from the main Latin alphabet section. In Chinese, Japanese and Korean (CJK) fonts, these characters are rendered at the same width as CJK ideographs rather than at half the width. For other examples, see Duplicate characters in Unicode.
Also, while Unicode allows for combining characters it also contains precomposed versions of most letter/diacritic combinations in normal use. These make conversion to and from legacy encodings simpler and allow applications to use Unicode as an internal text format without having to implement combining characters. For example é can be represented in Unicode as U+0065 (Latin small letter e) followed by U+0301 (combining acute) but it can also be represented as the precomposed character U+00E9 (Latin small letter e with acute).
The Unicode standard also includes a number of related items, such as character properties, text normalisation forms and bidirectional display order (for the correct display of text containing both right-to-left scripts, such as Arabic or Hebrew, and left-to-right scripts).
Scripts covered
Unicode covers almost all scripts (writing systems) in current use today, including:
|
Unicode has added further scripts and will cover even more, including historic scripts less commonly used as well as extinct ones for academic purposes:
|
|
Unicode roadmap
Although more than 30 writing systems (alphabets, syllabaries, and others) are included in Unicode, there remain many more still awaiting encoding. Further additions of characters to the already-encoded scripts, as well as symbols, in particular for mathematics and music (in the form of notes and rhythmic symbols), also occur. Michael Everson, Rick McGowan, and Ken Whistler maintain the list of such scripts and their tentative code block assignments on the Unicode Consortium Web site, at Unicode Roadmap. For some scripts on the Roadmap, encoding proposals have been made and are working their way through the approval process. For others, no proposal can be made until the scholarly communities involved can agree on the character repertoire and other details.
Among the scripts awaiting encoding are the relatively familiar (or at any rate, famous) Egyptian Hieroglyphics, Babylonian and other cuneiforms, Phoenician, and Mayan, together with lesser-known scripts of Asia, Europe, Africa, and the Americas. Many of them are not understood, such as the Rongorongo of Easter Island, Linear A of Crete, and Meroitic of the Upper Nile.
Invented scripts, most of which do not qualify for inclusion in Unicode due to lack of real-world usage, are listed in the ConScript Unicode Registry, along with unofficial but widely-used Private Use Area code assignments. Similarly, many medieval letter variants and ligatures not in Unicode are encoded in the Medieval Unicode Font Initiative.
Mapping and encodings
Standard
The Unicode Consortium, based in California, develops the Unicode standard. Any company or individual willing to pay the membership dues may join this organization. Members include virtually all of the main computer software and hardware companies with any interest in text-processing standards, such as Adobe Systems, Apple, HP, IBM, Microsoft, Xerox and many others.
The Consortium first published The Unicode Standard (ISBN 0-321-18578-1) in 1991, and continues to develop standards based on that original work. Unicode is developed in conjunction with the International Organization for Standardization and shares the character repertoire with ISO/IEC 10646: the Universal Character Set. Unicode and ISO/IEC 10646 function equivalently as character encodings, but The Unicode Standard contains much more information for implementers, covering — in depth — topics such as bitwise encoding, collation and rendering. The Unicode Standard enumerates a multitude of character properties, including those needed for supporting bidirectional text. The two standards do use slightly different terminology.
When writing about a Unicode character, it is normal to write "U+" followed by a hexadecimal number indicating the character's code point. For code points in the BMP, four digits are used; for code points outside the BMP, five or six digits are used, as required. Older versions of the standard used similar notations, but with slightly different rules. For example, Unicode 3.0 used "U-" followed by eight digits, and allowed "U+" to be used only with exactly four digits in order to indicate a code unit, not a code point.
Unicode revision history
Template:CT-16 width="0*" | October 1991 | Template:CT-15 width="0*" | Unicode 1.0 | ISBN 0-201-56788-1. |
Template:CT-16 | June 1992 | Template:CT-15 | Unicode 1.0.1 | ISBN 0-201-60845-6. |
Template:CT-16 | June 1993 | Template:CT-15 | Unicode 1.1 | Previous 2 Publications, and, Unicode Technical Report #4:The Unicode Standard, Version 1.1 by Mark Davis. |
Template:CT-16 | July 1996 | Template:CT-15 | Unicode 2.0 | ISBN 0-201-48345-9. |
Template:CT-16 | May 1998 | Template:CT-15 | Unicode 2.1 | |
Template:CT-16 | May 1998 | Template:CT-15 | Unicode 2.1.2 | Previous 3 Publications, and, Unicode Technical Report #8, The Unicode Standard, Version 2.1 by Lisa Moore. |
Template:CT-16 | September 1999 | Template:CT-15|Unicode 3.0 | Covered 16-bit UCS Basic Multilingual Plane (BMP) from ISO 10646-1:2000. ISBN 0-201-61633-5. |
Template:CT-16 | March 2001 | Template:CT-15 | Unicode 3.1 | Added Supplementary Planes from ISO 10646-2, providing supplementary characters |
Template:CT-16 | March 2002 | Template:CT-15 | Unicode 3.2 | |
Template:CT-16 | April 2003 | Template:CT-15 | Unicode 4.0 | ISBN 0-321-18578-1. |
Template:CT-16 | March 2004 | Template:CT-15 | Unicode 4.0.1 | |
Template:CT-16 | March 2005 | Template:CT-15 | Unicode 4.1 | |
Template:CT-16 | July 2006 | Template:CT-15 | Unicode 5.0 | Template:CT-12|(The character database, aka. UCD, published on July 18, the book, The Unicode Standard, Version 5.0 was released on November 9 2006; ISBN 0321480910.) |
Storage, transfer, and processing
So far, Unicode has appeared simply as a means to assign a unique number to each character used in the written languages of the world. The storage of these numbers in text processing comprises another topic; problems result from the fact that much software written in the Western world deals with 8-bit or lower character encodings only, with Unicode support added only slowly in recent years. Similarly, in representing the scripts of Asia, the ASCII based double-byte character encodings cannot even in principle encode more than 32,768 characters, and in practice the architectures chosen impose lower limits. Such limits do not suffice for the needs of scholars of the Chinese language alone.
The internal logic of much 8-bit legacy software typically permits only 8 bits for each character, making it impossible to use more than 256 code points without special processing. Sixteen-bit software can support only some tens of thousands of characters. Unicode, on the other hand, has already defined more than 100,000 encoded characters. Systems designers have therefore suggested several mechanisms for implementing Unicode; which one implementers choose depends on available storage space, source code compatibility, and interoperability with other systems.
Unicode defines two mapping methods:
- the UTF (Unicode Transformation Format) encodings
- the UCS (Universal Character Set) encodings
The encodings include:
- UTF-7 — a relatively unpopular 7-bit encoding, often considered obsolete (not part of The Unicode Standard but rather an RFC)
- UTF-8 — an 8-bit, variable-width encoding, which maximizes compatibility with ASCII.
- UTF-EBCDIC — an 8-bit variable-width encoding, which maximizes compatibility with EBCDIC. (not part of The Unicode Standard)
- UCS-2 — a 16-bit, fixed-width encoding that only supports the BMP, considered obsolete. (not part of The Unicode Standard)
- UTF-16 — a 16-bit, variable-width encoding
- UTF-32 — a 32-bit, fixed-width encoding
- UCS-4 — functionally equivalent to UTF-32, but not part of The Unicode Standard.
The numbers in the names of the encodings indicate the number of bits in one code value (for UTF encodings) or the number of bytes per code value (for UCS) encodings. UTF-8 and UTF-16 are probably the most commonly used encodings.
UTF-8 uses one to four bytes per code point and, being compact for Latin scripts and ASCII-compatible, provides the de facto standard encoding for interchange of Unicode text. It is also used by most recent Linux distributions as a direct replacement for legacy encodings in general text handling.
UCS-2 is an obsolete, 16-bit fixed-width encoding covering the Basic Multilingual Plane only. For characters in the Basic Multilingual Plane (16 bit range), UCS-2 and UTF-16 are identical. Therefore they can be considered as different implementation levels of the same encoding. The UCS-2 and UTF-16 encodings specify the Unicode Byte Order Mark (BOM) for use at the beginnings of text files, which may be used for byte ordering detection (or byte endianness detection). Some software developers have adopted it for other encodings, including UTF-8, which does not need an indication of byte order. In this case it attempts to mark the file as containing Unicode text. The BOM, code point U+FEFF has the important property of unambiguity on byte reorder, regardless of the Unicode encoding used; U+FFFE (the result of byte-swapping U+FEFF) does not equate to a legal character, and U+FEFF in other places, other than the beginning of text, conveys the zero-width no-break space (a character with no appearance and no effect other than preventing the formation of ligatures). Also, the units FE
and FF
never appear in UTF-8. The same character converted to UTF-8 becomes the byte sequence EF BB BF
.
UTF-16 is similar to UCS-2 but can include one or two 16-bit words in order to cover the supplementary characters (introduced from Unicode 3.1 onwards). UTF-16 is used by many APIs, often for upward compatibility with APIs that were developed when Unicode was UCS-2 based, or for compatibility with other APIs that use UTF-16. UTF-16 is the standard format for the Windows API (though surrogate support is not enabled by default) and for the Java (J2SE 1.5 or higher) and .NET bytecode environments.
In UTF-32 and UCS-4, one 32-bit code value serves as a fairly direct representation of any character's code point (although the endianness, which varies across different platforms, affects how the code value actually manifests as an octet sequence). In the other cases, each code point may be represented by a variable number of code values. UTF-32 is widely used as internal representation of text in programs (as opposed to stored or transmitted text), since every Unix operating system which uses the gcc compilers to generate software uses it as the standard "wide character" encoding. Recent versions of the python programming language (beginning with 2.2) may also be configured to use UTF-32 as the representation for unicode strings, effectively disseminating such encoding in high-level coded software.
Punycode, another encoding form, enables the encoding of Unicode strings into the limited character set supported by the ASCII-based Domain Name System. The encoding is used as part of IDNA, which is a system enabling the use of Internationalized Domain Names in all languages that are supported by Unicode.
GB18030 is another encoding form for Unicode, from the Standardization Administration of China. It is the official character set of the People's Republic of China (PRC).
Ready-made versus composite characters
Unicode includes a mechanism for modifying character shape and so greatly extending the supported glyph repertoire. This covers the use of combining diacritical marks. They get inserted after the main character (one can stack several combining diacritics over the same character). However, for reasons of compatibility, Unicode also includes a large quantity of pre-composed characters. So in many cases, users have many ways of encoding the same character. To deal with this, Unicode provides the mechanism of canonical equivalence.
An example of this arises with Hangul, the Korean alphabet. Unicode provides the mechanism for composing Hangul syllables with their individual subcomponents, known as Hangul Jamo. However, it also provides all 11,172 combinations of precomposed Hangul syllables.
The CJK ideographs currently have codes only for their precomposed form. Still, most of those ideographs evidently comprise simpler elements (radicals), so in principle Unicode could have decomposed them just as it has happened with Hangul. This would have greatly reduced the number of required code points, while allowing the display of virtually every conceivable ideograph (which might do away with some of the problems caused by the Han unification). A similar idea covers some input methods, such as Cangjie and Wubi. However, attempts to do this for character encoding have stumbled over the fact that ideographs do not actually decompose as simply or as regularly as it seems they should.
A set of radicals was provided in Unicode 3.0 (CJK radicals between U+2E80 and U+2EFF, KangXi radicals in U+2F00 to U+2FDF, and ideographic description characters from U+2FF0 to U+2FFB), but the Unicode standard (ch. 11.1 of Unicode 4.1) warns against using ideographic description sequences as an alternate representation for previously encoded characters:
- This process is different from a formal encoding of an ideograph. There is no canonical description of unencoded ideographs; there is no semantic assigned to described ideographs; there is no equivalence defined for described ideographs. Conceptually, ideograph descriptions are more akin to the English phrase, “an ‘e’ with an acute accent on it,” than to the character sequence <U+006E, U+0301>.
Ligatures
Many scripts, including Arabic and Devanagari, have special orthographic rules which require that certain combinations of letterforms be combined into special ligature forms. The rules governing ligature formation can be quite complex, requiring special script-shaping technologies such as OpenType (by Adobe and Microsoft), Graphite (by SIL International), or AAT (by Apple). Instructions are also embedded in fonts to tell the operating system how to properly output different character sequences. A simple solution to the placement of combining marks or diacritics is assigning the marks a width of zero and placing the glyph itself to the left or right of the left sidebearing (depending on the direction of the script they are intended to be used with). A mark handled this way will appear over whatever character precedes it, but will not adjust its position relative to the width or height of the base glyph; it may be visually awkward and it may overlap some glyphs. Real stacking is impossible, but can be approximated in limited cases (for example, Thai top-combining vowels and tone marks can just be at different heights to start with). Generally this approach is only effective in monospaced fonts but can also be used as a fallback rendering method when more complex methods fail.
As of 2004, most software still cannot reliably handle many features not supported by older font formats, so combining characters generally will not work correctly. For example, ḗ (precomposed e with macron and acute above) and ḗ (e followed by the combining macron above and combining acute above) should be rendered identically, both appearing as an e with a macron and acute accent, but in practice, their appearance can vary greatly across software applications. Similarly, underdots, as needed in the romanization of Indic, will often be placed incorrectly. As a workaround, Unicode characters that map to precomposed glyphs can be used for many such characters. The need for such alternatives inherits from the limitations of fonts and rendering technology, not weaknesses of Unicode itself.
Unicode in use
Operating systems
Unicode has become the dominant scheme for internal processing and sometimes storage (though a lot of text is still stored in legacy encodings) of text. Early adopters tended to use UCS-2 and later moved to UTF-16 (as this was the least disruptive way to add support for non-bmp characters). The best known such system is Windows NT (and its descendants, Windows 2000 and Windows XP), which uses Unicode as the sole internal character encoding. The Java and .NET bytecode environments, Mac OS X, and KDE also use it for internal representation.
UTF-8 (originally developed for Plan 9) has become the main storage encoding on most Unix-like operating systems (though others are also used by some libraries) because it is a relatively easy replacement for traditional extended ASCII character sets.
MIME defines two different mechanisms for encoding non-ASCII characters in e-mail, depending on whether the characters are in e-mail headers such as the "Subject:" or in the text body of the message. In both cases, the original character set is identified as well as a transfer encoding. For e-mail transmission of Unicode the UTF-8 character set and the Base64 transfer encoding are recommended. The details of the two different mechanisms are specified in the MIME standards and are generally hidden from users of e-mail software.
The adoption of Unicode in e-mail has been very slow. Some East-Asian text is still encoded in a local encoding such as Shift-JIS, and some devices, such as cell phones, still cannot handle Unicode data correctly. Support has been improving however.
Web
Web browsers have been supporting several UTFs, especially UTF-8, for many years now. Display problems result primarily from font related issues. In particular Internet Explorer does not render many code points unless it is explicitly told to use a font that contains them.
All W3C recommendations are using Unicode as their document character set, the encoding being variable, ever since HTML 4.0. It replaces the 8-bit ASCII superset ISO-8859-1, which had been the standard character set and encoding before.
Although syntax rules may affect the order in which characters are allowed to appear, both HTML 4 and XML (including XHTML) documents, by definition, comprise characters from most of the Unicode code points, with the exception of:
- most of the C0 and C1 control codes
- the permanently-unassigned code points D800–DFFF
- any code point ending in FFFE or FFFF
These characters manifest either directly as bytes according to document's encoding, if the encoding supports them, or users may write them as numeric character references based on the character's Unicode code point.
For example, the references Δ
, Й
, ק
, م
, ๗
, あ
, 叶
, 葉
, and 냻
(or the same numeric values expressed in hexadecimal, with &#x
as the prefix) display on browsers as Δ, Й, ק, م, ๗, あ, 叶, 葉, and 냻. If the proper fonts exist, these symbols look like the Greek capital letter "Delta", Cyrillic capital letter "Short I", Arabic letter "Meem", Hebrew letter "Qof", Thai numeral 7, Japanese Hiragana "A", simplified Chinese "Leaf", traditional Chinese "Leaf", and Korean Hangul syllable "Nyaelh", respectively.
In HTTP requests, URLs must be percent-encoded, usually using the UTF-8 encoding to represent Unicode.
Fonts
Free and retail fonts based on Unicode are commonly available, since TrueType and OpenType support most, but not all of Unicode since they can only hold up to 65536 glyphs. These font formats map most Unicode code points to glyphs.
Thousands of fonts exist on the market, but fewer than a dozen fonts — sometimes described as "pan-Unicode" fonts — attempt to support the majority of Unicode's character repertoire. Instead, Unicode-based fonts typically focus on supporting only basic ASCII and particular scripts or sets of characters or symbols. Several reasons justify this approach: applications and documents rarely need to render characters from more than one or two writing systems; fonts tend to demand resources in computing environments; and operating systems and applications show increasing intelligence in regard to obtaining glyph information from separate font files as needed, i.e. font substitution. Furthermore, designing a consistent set of rendering instructions for tens of thousands of glyphs constitutes a monumental task; such a venture passes the point of diminishing returns for most typefaces.
Standardized subsets
Several subsets of Unicode are standardized: Microsoft Windows since Windows NT 4.0 supports WGL-4 with 652 characters, which is considered to support all contemporary European languages using the Latin, Greek or Cyrillic script. Other standardized subsets of Unicode include the Multilingual European Subsets:[2] MES-1 (Latin scripts only, 335 characters), MES-2 (Latin, Greek and Cyrillic 1062 characters)[3] and MES-3A & MES-3B (two larger subsets, not shown here). Note that MES-2 includes every character in MES-1, which in turn includes all of WGL-4.
WGL-4, MES-1 and MES-2 | ||
Row | Cells | Range(s) |
---|---|---|
00 | 20–7E | Basic Latin (00–7F) |
A0–FF | Latin-1 Supplement (80–FF) | |
01 | 00–13, 14–15, 16–2B, 2C–2D, 2E–4D, 4E–4F, 50–7E, 7F | Latin Extended-A (00–7F) |
8F, 92, B7, DE-EF, FA–FF | Latin Extended-B (80–FF …) | |
02 | 18–1B, 1E–1F | Latin Extended-B (… 00–4F) |
59, 7C, 92 | IPA Extensions (50–AF) | |
BB–BD, C6, C7, C9, D6, D8–DB, DC, DD, DF, EE | Spacing Modifier Letters (B0–FF) | |
03 | 74–75, 7A, 7E, 84–8A, 8C, 8E–A1, A3–CE, D7, DA–E1 | Greek (70–FF) |
04 | 00, 01–0C, 0D, 0E–4F, 50, 51–5C, 5D, 5E–5F, 90–91, 92–C4, C7–C8, CB–CC, D0–EB, EE–F5, F8–F9 | Cyrillic (00–FF) |
1E | 02–03, 0A–0B, 1E–1F, 40–41, 56–57, 60–61, 6A–6B, 80–85, 9B, F2–F3 | Latin Extended Additional (00–FF) |
1F | 00–15, 18–1D, 20–45, 48–4D, 50–57, 59, 5B, 5D, 5F–7D, 80–B4, B6–C4, C6–D3, D6–DB, DD–EF, F2–F4, F6–FE | Greek Extended (00–FF) |
20 | 13–14, 15, 17, 18–19, 1A–1B, 1C–1D, 1E, 20–22, 26, 30, 32–33, 39–3A, 3C, 3E | General Punctuation (00–6F) |
44, 4A, 7F, 82 | Superscripts and Subscripts (70–9F) | |
A3–A4, A7, AC, AF | Currency Symbols (A0–CF) | |
21 | 05, 13, 16, 22, 26, 2E | Letterlike Symbols (00–4F) |
5B–5E | Number Forms (50–8F) | |
90–93, 94–95, A8 | Arrows (90–FF) | |
22 | 00, 02, 03, 06, 08-09, 0F, 11–12, 15, 19–1A, 1E–1F, 27-28, 29, 2A, 2B, 48, 59, 60–61, 64–65, 82–83, 95, 97 | Mathematical Operators (00–FF) |
23 | 02, 0A, 20–21, 29–2A | Miscellaneous Technical (00–FF) |
25 | 00, 02, 0C, 10, 14, 18, 1C, 24, 2C, 34, 3C, 50–6C | Box Drawing (00–7F) |
80, 84, 88, 8C, 90–93 | Block Elements (80–9F) | |
A0–A1, AA–AC, B2, BA, BC, C4, CA–CB, CF, D8–D9, E6 | Geometric Shapes (A0–FF) | |
26 | 3A–3C, 40, 42, 60, 63, 65–66, 6A, 6B | Miscellaneous Symbols (00–FF) |
F0 | (01–02) | Private Use Area (00–FF …) |
FB | 01–02 | Alphabetic Presentation Forms (00–4F) |
FF | FD | Specials |
Rendering software which cannot process a Unicode character appropriately most often display it as only an open rectangle, or the Unicode “replacement character” (U+FFFD, �), to indicate the position of the unrecognized character. Some systems have made attempts to provide more information about such characters. The Apple LastResort font will display a substitute glyph indicating the Unicode range of the character and the SIL Unicode fallback font will display a box showing the hexadecimal scalar value of the character.
Multilingual text-rendering engines
- Uniscribe — Windows
- Apple Type Services for Unicode Imaging — new engine for Macintosh
- WorldScript — old engine for Macintosh
- Pango — Open Source, used by GTK+ (and hence GNOME)
- ICU Layout Engine — Open Source
- Graphite — (Open Source renderer from SIL)
- Scribe — Open Source renderer from Trolltech
Input methods
Because keyboard layouts cannot have simple key combinations for all characters, several operating systems provide alternative input methods that allow access to the entire repertoire.
In Microsoft Windows (since Windows 2000), the "Character Map" program (Start/Programs/Accessories/System Tools/Character Map) provides browsing and rich-text editing controls for all Table I characters up to U+FFFF, by selection from a drop-down table, assuming that a Unicode font is selected. Word processing programs such as Microsoft Word have a similar control embedded (Insert/Symbol). Less conveniently, where the code point of the desired character is known, it is possible to create Unicode characters by pressing Alt + PLUS + #
, where # represents the hexadecimal code point up to FFFF; for example, Alt + PLUS + F + 1
will produce the Unicode character ñ. This also works in many other Windows applications, but not in applications that use the standard Windows edit control, and do not make any special provisions to allow this type of input. See Alt codes. To add Unicode characters to chart titles in Microsoft Excel first type the title text into a worksheet cell, where the (Insert/Symbol) control can be used. The resulting text can be cut and pasted into chart titles.
Apple Macintosh users have a similar feature with an input method called 'Unicode Hex Input', in Mac OS X and in Mac OS 8.5 and later: hold down the Option key, and type the four-hex-digit Unicode code point. Inputting code points above U+FFFF is done by entering surrogate pairs; the software will convert each pair into a single character automatically. Mac OS X (version 10.2 and newer) also has a 'Character Palette', which allows users to visually select any Unicode character from a table organized numerically, by Unicode block, or by a selected font's available characters. The 'Unicode Hex Input' method must be activated in the International System Preferences in Mac OS X or the 'Keyboard' Control Panel in Mac OS 8.5 and later. Once activated, 'Unicode Hex Input' must also be selected in the Keyboard menu (designated by the flag icon) before a Unicode code point can be entered.
GNOME provides a 'Character Map' utility (Applications/Accessories/Character Map) which displays characters ordered by Unicode block or by writing system, and allows searching by character name or extended description. Where the character's code point is known, it can be entered in accordance with ISO 14755: hold down Ctrl and Shift and enter the hexadecimal Unicode value, preceded by the letter U if using GNOME 2.15 or later. The input code is an UTF-32 value. For example, type Ctrl+Shift+100050
to type a character in Unicode private plane 16.
At the X Input Method or GTK+ Input Module level, the input method editor SCIM provides a “raw code” input method to allow the user to enter the 4-digit hexadecimal Unicode value.
The Linux console allows Unicode characters to be entered by holding down Alt and typing the decimal code on the numeric keypad. (In order for this to work, the console should be placed in Unicode mode with unicode_start(1)
and a suitable font selected with setfont(8)
.) The AltGr key allows the hexadecimal code to be entered instead, using NumLock-Enter as A-F (clockwise). ISO 14755 compliant input (Ctrl+Shift+hexadecimal code on normal keys) is also available in the unicode
keymap.
The Opera web browser in version 7.5 on Windows and over allows users to enter any Unicode character directly into a text field by typing its hexadecimal code and pressing Alt + x
.
To input a Unicode character in a text box in Mozilla Firefox on Linux, type the hexadecimal character code while holding down the control and shift keys.
In the Vim text editor, Unicode characters can be entered by pressing CTRL-V and then entering a key combination. For example, an em-dash can typically be entered by typing CTRL-V, then "u2014". For more information, type ":help i_CTRL-V_digit
" in Vim. (Note that the entered text will be Unicode only if the current encoding is set to UTF-8 or another Unicode encoding; type ":help encoding
" in Vim for details.) Many Unicode characters can also be entered using digraphs; a table of such characters and their corresponding digraphs can be obtained using the ":digraphs
" command (again provided the current encoding is set to Unicode).
WordPad and Word 2002/2003 for Windows additionally allow for entering Unicode characters by typing the hexadecimal code point, for example 014B for ŋ, and then pressing Alt + x
to substitute the string to the left by its Unicode character. Usefully, the reverse also applies: if a user positions a cursor to the right of a non-ASCII character and presses Alt + x
, then the Microsoft software will substitute the character with the hexadecimal Unicode code point. (Note that the key combination may vary: in French version of Windows it is Alt + c
).
Several visual keyboards are available that make entering Unicode characters and symbols very easy.
- Quick Key (Open Source)
- Lightweight Unicode Map/Picker (In-browser character map; operating-system independent. Open Source)
- PopChar Demo Version
- Unicode Character Pickers Web based. Particularly useful for working with scripts you don't know.
- UniView
Issues
East Asia
Philosophical and completeness criticisms
Some parties in Japan opposed Unicode and ISO/IEC 10646-1 in general, claiming technical limitations. People working on the Unicode standard regard such claims simply as misunderstandings of the Unicode standard and of the process by which it has evolved. The most common mistake, according to this view, involves confusion between abstract characters and their highly-variable visual forms (glyphs). The next most common source of confusion is attributing to Unicode decisions made by earlier national standards organizations, which Unicode was not in a position to undo.
For example, it was claimed that contrary to its policy, the Unicode Standard has also included characters which have merely stylistic differences, such as ligatures and some accented letters. In fact, including such forms that appear in legacy character encodings is a requirement of the Source Separation rule. Examples from ISO 8859-1 include æàáâãäå.
Some have decried Unicode as a plot against Asian cultures perpetrated by Westerners with no understanding of the characters as used in Chinese, Korean, and Japanese,[4] despite the presence of a majority of experts from all three regions in the Ideographic Rapporteur Group (IRG). The IRG advises the Consortium and ISO on additions to the repertoire and on Han unification, the identification of forms in the three languages which one can treat as stylistic variations of the same historical character. Han unification has become one of the most controversial aspects of Unicode.
Unicode is criticized for failing to allow for older and alternate forms of kanji which, critics argue, complicates the processing of ancient Japanese and uncommon Japanese names, although it follows the recommendations of Japanese language scholars and of the Japanese government and contains all of the same characters as previous widely used encoding standards.[5] However, the same criticisms could be leveled against the existing standards for East Asian character encoding that Unicode is seeking to replace. There have been several attempts to create an alternative encodings that preserve the minor, stylistic differences between Chinese, Japanese, and Korean characters in opposition to Unicode's policy of Han unification. Among them are TRON (although it is not widely adopted in Japan, there are some users who need to handle historical Japanese text and favor it), and UTF-2000.
It is true that many older forms were not included in early versions of the Unicode standard, but Unicode 4.0 contains more than 70,000 Han characters -- far more than any dictionary or any other standard -- and work continues on adding characters from the early literature of China, Korea, and Japan. Some argue, however, that this is not satisfactory, pointing out as an example the need to create new characters, representing words in various Chinese dialects, more of which may be invented in the future.
An alternative way, pursued by people like Chu Bong-Foo, uses an encoding which provides information on the components of Han characters. For example, a 1991 Chinese computing system by Chu already provides 60,000 Han characters support, and takes up only 80KB memory space for the generation of glyphs from raw Cangjie codes. Their argument against Unicode is that the Unicode approach to Han characters is the same as assigning every English word a separate code.[citation needed]
Despite these problems, the official encoding of China, GB-18030, supports the full range of characters in Unicode.
Mapping to legacy character sets
One-to-one mappings must be provided between characters in existing legacy character sets and characters in Unicode to facilitate conversion to Unicode and allow interoperability with legacy software. Lack of consistency in various mappings between earlier Japanese encodings such as Shift-JIS or EUC-JP and Unicode led to round-trip format conversion mismatches, particularly the mapping of the character JIS X 201 '~' (1-33, WAVE DASH), heavily used in legacy database data, to either '~' U+FF5E FULLWIDTH TILDE (in Microsoft Windows) or '〜' U+301C WAVE DASH (other vendors). AFII contribution about WAVE DASH Unicode vendor-specific character table for Japanese
Some Japanese computer programmers objected to Unicode because it requires them to separate the use of '\' U+005C REVERSE SOLIDUS (backslash) and '¥' U+00A5 YEN SIGN, which was mapped to 0x5C in JIS X 0201, and there is a lot of legacy code with this usage.[6] (This encoding also replaces tilde '~' 0x7E with overline '¯', now 0xAF.) The separation of these characters exists in ISO 8859-1, from long before Unicode.
Indic scripts
Thai
Thai language support has been criticized for its illogical ordering of Thai characters. The vowels เ, แ, โ, ใ, ไ that are written to the left of the preceding consonant are in visual order instead of logical order, unlike the Unicode representations of other Indic scripts. This complication is due to Unicode inheriting the Thai Industrial Standard 620, which worked in the same way. This ordering problem complicates the Unicode collation process slightly, requiring table lookups to reorder Thai characters for collation.[5]
Indic scripts of India
Indic scripts of India itself such as Hindi, Tamil and Telugu are each allocated only 128 slots of the Unicode space, matching the ISCII standard. The correct rendering of Unicode Indic text requires transforming the stored logical order characters into visual order and the forming of ligatures out of components. Some local scholars argued in favor of assignments of Unicode codepoints to these ligatures, going against the practice for other writing systems, though Unicode contains some Arabic and other ligatures for back compatibility purposes only. [7] [8] [9] Encoding of any new ligatures in Unicode will not happen, in part because the set of ligatures is font-dependent, and Unicode is an encoding independent of font variations. The same kind of issue arose for Tibetan script (the Chinese National Standard organization failed to achieve a similar change). These problems are rightly the domain of rendering engines (Pango, Apple ATSUI, Microsoft Uniscribe, and others) and fonts. Font developers have to learn to create the needed OpenType font tables to handle reordering and complex ligatures.
BMP canard
Some opponents of Unicode continue to claim that it cannot handle more than 65,535 characters, even though this limitation was removed in Unicode 2.0. Using either the surrogate mechanism (of UTF-16) or the equivalent variable-length UTF-8 encoding provides for 17 blocks of 65,536 codes each, of which very few are designated as not available for encoding characters. The most generous estimate of possible need suggests an upper bound of a quarter-million characters for all known languages and writing systems, while Unicode now has well over a million code points.
Trivia
![]() | This article contains a list of miscellaneous information. (June 2007) |
- In 1997 Michael Everson made a proposal to encode the characters of the artificial Klingon language in Plane 1 of ISO/IEC 10646-2.[1] The Unicode Consortium rejected this proposal in 2001 as "inappropriate for encoding" — not because of any technical inadequacy, but because users of Klingon normally read, write and exchange data in Latin transliteration. Now that some enthusiasts are blogging in tlhIngan pIqaD (Klingon alphabet) using newly available fonts and keyboard layouts, the possibility of reapplying to ISO has been raised.
- Proposals suggested the inclusion of the elvish scripts Tengwar and Cirth from J. R. R. Tolkien's fictional Middle-earth setting in Plane 1 in 1993.[2][3] The Consortium withdrew the draft to incorporate changes suggested by Tolkienists, and as of 2005 it remains under consideration.
- Both Klingon and the Tolkien scripts have assignments in the ConScript Unicode Registry.
- In 2005, the 100,000th character to be entered into the pipeline for standardisation was the MALAYALAM PRASLESHAM. It was encoded based on the contribution by Rachana Akshara Vedi.
- The April Fools' Day RFC of 2005 specified two "parody" UTF encodings, UTF-9 and UTF-18.
See also
- Comparison of Unicode encodings
- Free software Unicode typefaces
- Mapping of Unicode characters
- Unicode typefaces
- Universal Character Set
- Alt codes
- List of Unicode characters
- List of XML and HTML character entity references
Notes
- ^ http://www.unicode.org/standard/principles.html#What_Characters
- ^ CWA 13873:2000 - Multilingual European Subsets in ISO/IEC 10646-1 CEN Workshop Agreement 13873
- ^ Multilingual European Character Set 2 (MES-2) Rationale, Markus Kuhn, 1998
- ^ A Brief History of Character Codes, Steven J. Searle, originally written 1999, last updated 2004
- ^ a b The secret life of Unicode: A peek at Unicode's soft underbelly, Suzanne Topping, 1 May 2001
- ^ ISO 646-* Problem, Section 4.4.3.5 of Introduction to I18n, Tomohiro KUBOTA, 2001
- ^ http://www.unicode.org/charts/PDF/UFB50.pdf
- ^ http://www.unicode.org/charts/PDF/UFE70.pdf
- ^ http://www.unicode.org/charts/PDF/UFB00.pdf
References
- The Unicode Standard, Version 5.0, Fifth Edition, The Unicode Consortium, Addison-Wesley Professional, 27 October 2006. ISBN 0-321-48091-0
- The Unicode Standard, Version 4.0, The Unicode Consortium, Addison-Wesley Professional, 27 August 2003. ISBN 0-321-18578-1
- The Complete Manual of Typography, James Felici, Adobe Press; 1st edition, 2002. ISBN 0-321-12730-7
- Unicode: A Primer, Tony Graham, M&T books, 2000. ISBN 0-7645-4625-2.
- Unicode Demystified: A Practical Programmer's Guide to the Encoding Standard, Richard Gillam, Addison-Wesley Professional; 1st edition, 2002. ISBN 0-201-70052-2
- Unicode Explained, Jukka K. Korpela, O'Reilly; 1st edition, 2006. ISBN 0-596-10121-X
External links
- The Unicode Consortium
- 5.0.0
- new characters
- scripts
- characters and scripts under investigation
- Code Charts (PDF files)
- decodeunicode.org Unicode-Wiki with all 98,884 graphical Unicode characters as GIF images in three sizes. Including full text search. English/German.
- UniView
- Unicode Character Search (search for characters by their unicode names)
- The Letter Database Uses forms to present groups in list or grid format by hexadecimal.
- Unicode Code Converter
- Unicode character pickers
- Unicode Analysator Entered text is displayed in real time as a list of Unicode, UTF-8, and character description (requires JavaScript). German.
- Insert characters instantly with Quick Key Character Grid.
- A suite of programs for finding out what is in a Unicode file
- Programs for converting between Unicode and various ASCII representations
- Keyboard Help - Learn how to create accent marks and diacritics on a computer
- Table of Unicode characters from 1 to 65535
- UTF-8, UTF-16, UTF-32 Code Charts and a character map (requires JavaScript)
- Example text files using Unicode
- Unicode special character map resembles the Windows version. Click a symbol to obtain either the named or numeric code for HTML.
- ConScript Unicode Registry a project to standardize part of the Private Use Area for use with artificial scripts and artificial languages. An explanation of how to propose character names in Unicode is available here.
- What is Unicode?
- Tim Bray's Characters vs Bytes explains how the different encodings work.
- Alan Wood's Unicode Resources Contains lists of word processors with Unicode capability; fonts and characters are grouped by type; characters are presented in lists, not grids.
- Multi-lingual web pages and Unicode
- Seeing the entirety of Unicode printed out as a single large poster gives a good feel for the size of the code.
- The secret life of Unicode: A peek at Unicode's soft underbelly, Suzanne Topping, 1 May 2001. Describes problems requiring resolution. Includes links to Unicode resources.
- A harshly critical article about Unicode, and a response to it (n.b.: This article is dated 2001, and much has changed regarding Unicode since that time)
- International Components for Unicode (ICU) An open source set of libraries that provide robust and full-featured Unicode services for your applications on a wide variety of platforms.
- utf8proc - A free library for Unicode normalization, case-folding and stripping/mapping of certain characters.
- The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) by Joel Spolsky of JoelonSoftware.com (this is from 2003 and now outdated, but still a reasonable starting point).
- Supplementary Characters in the Java Platform from Sun Microsystems
- JSR 204 Unicode 3.1 supplementary character support Java Specification Request
- Freedesktop.Org's Project UTF-8's purpose is to document and promote proper Unicode support in free and Open Source software.