⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 japanese_encodings.msg

📁 one of the linux gd libraries
💻 MSG
字号:
Mapping files for Japanese encodings1998 12/25Fuji Xerox Information SystemsMURATA Makoto1.  OverviewThis version of XML::Parser and XML::Encoding does not come with map files forthe charset "Shift_JIS" and the charset "euc-jp".  Unfortunately, each of these charsets has more than one mapping.  None of these mappings areconsidered as authoritative.Therefore, we have come to believe that it is dangerous to provide map filesfor these charsets.  Rather, we introduce several private charsets and mapfiles for these private charsets.  If IANA, Unicode Consoritum, and JISeventually reach a consensus, we will be able to provide map files for"Shift_JIS" and "euc-jp".2. Different mappings from existing charsets to Unicode1) Different mappings in JIS X0221 and UnicodeThe mapping between JIS X0208:1990 and Unicode 1.1 and the mappingbetween JIS X0212:1990 and Unicode 1.1 are published from Unicodeconsortium.  They are available at ftp://ftp.unicode.org/Public/MAPPINGS/EASTASIA/JIS/JIS0208.TXT and ftp://ftp.unicode.org/Public/MAPPINGS/EASTASIA/JIS/JIS0212.TXT, respectively.)  These mapping files have a note as below:#   The kanji mappings are a normative part of ISO/IEC 10646.  The#       non-kanji mappings are provisional, pending definition of#       official mappings by Japanese standards bodies.Unfortunately, the non-kanji mappings in the Japanese standard for ISO 10646/1,namely JIS X 0221:1995, is different from the Unicode Consortium mapping since0x213D of JIS X 0208 is mapped to U+2014 (em dash) rather than U+2015(horizontal bar).  Furthermore, JIS X 0221 clearly says that the mapping isinformational and non-normative.  As a result, some companies (e.g., Microsoft andApple) have introduced slightly different mappings.  Therefore, neither theUnicode consortium mapping nor the JIS X 0221 mapping are considered asauthoritative.2) Shift-JISThis charset is especially problematic, since its definition has been unclearsince its inception.The current registration of the charset "Shift_JIS" is as below:>Name: Shift_JIS  (preferred MIME name)>MIBenum: 17>Source: A Microsoft code that extends csHalfWidthKatakana to include >       kanji by adding a second byte when the value of the first >       byte is in the ranges 81-9F or E0-EF.>Alias: MS_Kanji >Alias: csShiftJISFirst, this does not reference to the mapping "Shift-JIS to Unicode" published by the Unicode consortium (available atftp://ftp.unicode.org/Public/MAPPINGS/EASTASIA/JIS/SHIFTJIS.TXT).Second, "kanji" in this registration can be interepreted in different ways.Does this "kanji" reference to JIS X0208:1978, JIS X0208:1983, or JISX0208:1990(== JIS X0208:1997)?  These three standards are *incompatible* witheach other.  Moreover, we can even argue that "kanji" refers to JIS X0212 orideographic characters in other countries.Third, each company has extended Shift JIS. For example, Microsoft introducedOEM extensions (NEC extensionsand IBM extensions).Forth, Shift JIS uses JIS X0201, which is almost upper-compatible with US-ASCIIbut is not quite.  5C and 7E of JIS X 0201 are different from backslash and tilde, respectively.  However, many programming languages (e.g., Java) ignore this difference and assumes that 5C and 7E of Shift JIS are backslash and tilde.3.  Proposed charsets and mappingsAs a tentative solution, we introduce two private charsets for EUC-JP and fourpriviate charsets for Shift JIS.1) EUC-JPWe have two charsets, namely "x-eucjp-unicode" and "x-eucjp-jisx0221".  Their difference is only one code point.  The mapping for the former is based on the Unicode Consortium mapping, while the latter is based on the JIS X0221 mapping.2) Shift JISWe have four charsets, namely x-sjis-unicode, x-sjis-jisx0221, x-sjis-jdk117, and x-sjis-cp932.The mapping for the charset x-sjis-unicode is the one published by the Unicodeconsortium.  The mapping for x-sjis-jisx0221 is almost equivalent tox-sjis-unicode, but 0x213D of JIS X 0208 is mapped to U+2014 (em dash) ratherthan U+2015.  The charset x-sjis-jdk117 is again almost equivalent tox-sjis-unicode, but 0x5C and 0x7E of JIS X0201 are mapped to backslash andtilde.The charset x-sjis-cp932 is used by Microsoft Windows, and its mapping ispublished from the Unicode Consortium (available at:ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.txt).  Thecoded character set for this charset includes NEC-extensions andIBM-extensions.  0x5C and 0x7E of JIS X0201 are mapped to backslash and tilde;0x213D is mapped to U+2015; and 0x2140, 0x2141, 0x2142, and 0x215E of JIS X0208 are mapped to compatibility characters.Makoto Fuji Xerox Information Systems Tel: +81-44-812-7230   Fax: +81-44-812-7231E-mail: murata@apsdc.ksp.fujixerox.co.jp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -