æ¥æ¬äººããæ®éã«ä½¿ã Unicode æååã㯠NFC ã¨ã NFD ã¨ãã®æ£è¦åå½¢å¼ã«ãªã£ã¦ããããã調ã¹ã¦ã¿ããã¨ã«ããã
ã¨ãã£ã¦ããä½ããæ®éã«ä½¿ã Unicode æååããã決ããªãã¨è©±ãå§ã¾ããªããããã§ã¯ã
ã¬ã¬ã·ã¼ãªæåã³ã¼ãã§è¡¨ãããããã¹ãæååãï¼æ¨æºã®æ¹æ³ã§ï¼Unicode ã«å¤æãã¦å¾ããã Unicode æåå
ã対象ã«ãããã¤ã¾ãã
ç¹å®ã®æåã³ã¼ãããã®ï¼æ¨æºçãªï¼å¤æã®çµæã® Unicode æååã¯å¿ ãç¹å®ã® Unicode æ£è¦åå½¢å¼ãæºããã
ã調ã¹ããã¨ã«ãããä¾ãã° Latin-1 ã«ã¤ãã¦èããã¨ã以ä¸ã®ããã«ãªãã
- Latin-1 ã®æååã Unicode ã«ï¼æ¨æºçã«ï¼å¤æããå ´åãU+0000ãU+00FF ã®ç¯å²ã«ããæåããç¾ããªãã
- ãã®ç¯å²ã®æåãããªã Unicode æååã¯å¿ ã NFC ã§ããã
- ãããããã®ãããªæååã¯å¿ ããã NFD ã§ã¯ãªããä¾ãã°ããàãï¼U+00E0 ä¸æåï¼ã¨ããæåå㯠NFD ã§è¡¨ãã¨ã0061 0300ãã¨ãªãã
- åæ§ã«ãã²ãï¼U+00B2ï¼ã¯ã2ãï¼U+0032ï¼ã®äºæç°ä½åã§ããã®ã§ãLatin-1 ã®æååã¯å¿ ããã NFKC ã NFKD ã§ã¯ãªãã
調æ»çµæ
å¤æå æåã³ã¼ã | NFC? | NFD? | NFKC? | NFKD? |
---|---|---|---|---|
ASCII | Yes | Yes | Yes | Yes |
Latin-1ï¼ISO-8859-1ï¼ | Yes | No | No | No |
Windows-1252 | Yes | No | No | No |
MacRoman | Yes | No | No | No |
JIS X 0201 | Yes | Yes | No | No |
JIS X 0208 | No | No | No | No |
CP932ï¼Windows_31Jï¼ | No | No | No | No |
MacJapanese | No | No | No | No |
- å¤æå ã®ç¬¦å·åå½¢å¼ï¼CESï¼ä¾ãã° JIS X 0208 ã EUC-JP ãªã®ã Shift_JIS ãªã®ããçï¼ã¯ç¡é¢ä¿ã¨ãªãã®ã§ãæåéåï¼CCSï¼ã«ã¤ãã¦ç¤ºããã
- Unicode ã¸ã®ãããã³ã°ã¯ãJIS X 0208 ã«ã¤ãã¦ã¯ JIS X 0221 ã®è¦å®*1ããã®ä»ã¯ Unicode Consortium ã«ãããã¼ã¿ã«å¾ã£ãã
NFC ã§ãªãæå
ãããè¦ãã¨ããæ®éã®æ¥æ¬èªã® Unicode æååã㯠NFC ã«å¿ ããããªããªããããã¯æ¬¡ã®æåãåå¨ããããã§ããã
- U+212B ãÅã ANGSTROM SIGN
- 212B (NFC)â 00C5 ï¼ã¤ã¾ãåä¸æ£æºå解ããã¤ï¼
- JIS X 0208 ã® 2 åº 82 ç¹ã®æåãããã«å¯¾å¿ãããCP932ãMacJapanese ããããå¼ãç¶ãï¼0x81F0ï¼ã
- CJK äºææ¼¢å
ã¤ã¾ããJIS X 0208 㨠MacJapanese ã«é¢ãã¦ã¯ãä¸æåã ãã NFC ã§ãªãã
NFD ã§ãªãæå
ããã§ã®èª¿æ»ç¯å²ã ã¨ã以ä¸ã®æåãå«ã¾ããã
- U+212B ãÅã ANGSTROM SIGN
- 212B (NFD)â 0041 030A
- CJK äºææ¼¢å
- ä¾ï¼ FA19ã神ã (NFD)â 795E
- U+2260 ã≠ã NOT EQUAL TO
- 2260 (NFD)â 003D 0338
- ã¢ã¯ã»ã³ãä»ã®ã©ãã³æåã»ããªã«æå
- ä¾ï¼ 00E0ãàã (NFD)â 0061 0300
- ä¾ï¼ 0439ãйã (NFD)â 0438 0306
- æ¿ç¹ã»åæ¿ç¹ä»ã®ã²ãããªã»ã«ã¿ã«ã
- ä¾ï¼ 304Cããã (NFD)â 304B 3099
- ä¾ï¼ 30DDããã (NFD)â 30DB 309A
- ã¡ãªã¿ã«ãMacJapanese ã«ã¯ãゔãï¼0x8868ï¼ããヸãï¼0x886Bï¼ãããã
*1:JIS X 0208 ã ãã§èãã¦å ¨ã¦ No ãªã®ã§ã1 ãã¤ãæåéåã¨æ··ç¨ããå ´åãåæ§ã§ããã