Internal code

Internal code

The term internal code is a word-for-word translation of the Chinese term neima (內碼, 内码; pinyin: nèimă; jyutping: noi6 maa5). The term is primarily used by Chinese people.

Originally referring to the encoding used “internally” by a Chinese system, it refers to the encoding of a character in some character set, or to the character encoding being used. It is not an encoding in itself, and the actual encoding being referred to has to be determined by context.

On any computer system, the internal code is the native encoding being used. For example, in a Big5-based system (e.g., Microsoft Windows 3.1 localized for traditional Chinese), the internal code is Big5; similarly, in a GB-based system (e.g., DOS running CCDOS), the internal code would be GB2312. On many modern operating systems (such as all modern Microsoft Windows systems), the internal code is a form of Unicode.

Within a particular encoding, the internal code of a certain character simply means the value of the code point used to represent that character. For example, in the Big5 encoding, the character "一" (Chinese, lit. one) has the internal code of A440 (hexadecimal); in the GB encoding, the same character has the internal code of D2BB.

The "neima method"

For more examples when the internal code is Unicode, see Unicode.

The internal code can be used as an input method for inputting Han characters. This input method is usually called 內碼 in Chinese and is usually provided for Big5 and GB internal codes; in English, it may be variously called “neima”, “internal code”, “raw code”, or other similar names.

For example, in a Big5-based system, one can input the character 一 by typing “A440” using the “internal code” input method. On the other hand, in a GB-based system, to input the character one would itype “D2BB”.

NeiMa expects the user to input the desired character by providing its value within the user-chosen character set.

For example, to input the Chinese character "不" (Pinyin "bù" - English "not") one can start the Neima editor, switch to Unicode character encoding mode and then type "bù"'s hexadecimal value within Unicode's table, which is 4E0D. NeiMa is a very awkward way of typing in characters, as a user would need to know the code points of all needed characters.

More generally speaking, NeiMa in Unicode mode accepts any code point within the Unicode table, so users are not limited to inputting Chinese characters, but also any other character that can be found within the Unicode table. For example, Latin Capital Letter A, A, may be inputted with NeiMa using A's Unicode code point, which is 0041.

On a Unicode-based system, one might be able to input a character by typing its Unicode number in hexadecimal. Such an input method might also be called “neima”, or it might be called “Unicode”.

On a JIS-based system (Japanese), there might be a kuten input method that allows characters to be input using a form of the internal code called the "kuten form"; this kind of input method is called quwei on GB-based systems (Chinese). Although the kuten (quwei) form is related to the internal code, such input methods are not usually referred as “internal code” input methods.

The use of an “internal code” input method to input characters would not be normally very practical. However, it is useful for inputting special symbols that may otherwise be impossible to input using other input methods. However, the user would need to have a table of characters with their internal codes.

See also


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Internal Revenue Code — n. A federal statute in Title 26 of the U.S. Code setting forth laws on federal taxes, including income tax, estate tax, gift tax, excise tax, etc. abbrv. IRC The Essential Law Dictionary. Sphinx Publishing, An imprint of Sourcebooks, Inc. Amy… …   Law dictionary

  • Internal Revenue Code section 212 — Internal Revenue Code § 212 provides a deduction, for U.S. federal income tax purposes, for expenses incurred in investment activities. Taxpayers are allowed to deduct “all in the ordinary and necessary expenses paid or incurred during the… …   Wikipedia

  • code — [kəʊd ǁ koʊd] noun 1. [countable] LAW a complete set of written rules or laws: • Each state in the US has a different criminal and civil code. ˈbuilding code [countable] LAW a set of rules that states what features a new building, bridge etc… …   Financial and business terms

  • Code reuse — Code reuse, also called software reuse, is the use of existing software, or software knowledge, to build new software.[1] Contents 1 Overview 2 Types of reuse 3 Examples …   Wikipedia

  • Internal Revenue Code Section 132(a) — provides eight types of fringe benefits that are excluded from gross income. These include fringe benefits which qualify as a (1) no additional cost service, (2) qualified employee discount, (3) working condition fringe, (4) de minimis fringe,… …   Wikipedia

  • Internal Revenue Code section 861 — Internal Revenue Code 861, usc|26|861, titled Income from sources within the United States is a provision of the Internal Revenue Code which lists The following items of gross income shall be treated as income from sources within the United… …   Wikipedia

  • Internal Revenue Service — IRS Staatliche Ebene Bundesbehörde der Vereinigten Staaten Stellung der Behörde Steuerbehörde …   Deutsch Wikipedia

  • Internal Revenue Service — n. The federal agency that administers federal tax laws, assesses and collects taxes, audits taxpayers, and handles appeals by taxpayers who dispute their tax liability. abbrv. IRS The Essential Law Dictionary. Sphinx Publishing, An imprint of… …   Law dictionary

  • Internal Security Department — (Abbreviation: ISD; Chinese: 新加坡内部安全局) is an agency of the Government of Singapore under the hierarchy of the Ministry of Home Affairs, a ministry of interior. It was formerly part of the Ministry of the Interior and Defence until it was split on …   Wikipedia

  • Code Age Commanders: Tsugu Mono Tsuga Reru Mono — Developer(s) Square Enix Publisher(s) Square Enix Director(s) …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”