...

ASCII文字

by user

on
Category: Documents
5

views

Report

Comments

Transcript

ASCII文字
᝗ሒฌ⌦䜻䜽䝊䝤ㄵ (12)
ᩝᏊ䛴᡽䛊

ᆀᇡ໩(Localization)
– 䛈䜑ᆀᇡ䛴ゕㄊ䛒᡽䛎䜑䜎䛌䛱䛟䜑
– L10N

ᅗ㝷໩(Internationalization)
– ㏳㈄༟న䚮᪝௛䚮᫤㛣䜈⩻៎䛟䜑
– ゕㄊ⎌ሾ(locale)䛱䜎䜐ᆀᇡ䜘ว䜐᭨䛎
– I18N

ኣゕㄊ໩(Multilingualization)
– M17N
ኣゕㄊ໩䛴⛤ᗐ(1)

⾪♟
– 䝙䜭䝷䝌䛒Ꮛᅹ䛟䜑
– 䝙䜭䝷䝌䜘ว䜐᭨䛎䜑䛙䛮䛒䛭䛓䜑

ථງ
– 䜱䞀䝠䞀䝍䛒ᑊᚺ䛝䛬䛊䜑
– (₆Ꮚንᥦ䜹䞀䝔䛒䛈䜑)

༰ใ
– (䝛䝮䝷䝃䛱䝙䜭䝷䝌䛒䛈䜑)
ኣゕㄊ໩䛴⛤ᗐ(2)
䜻䜽䝊䝤㉫ິ᫤䛱ว䜐᭨䛎
 䜦䝛䝮䜵䞀䜻䝫䝷㉫ິ᫤䛱ᣞᏽ
 䜦䝛䝮䜵䞀䜻䝫䝷ິష୯䛱ว䜐᭨䛎
 々ᩐゕㄊ䜘ྜྷ᫤౐⏕ྊ⬗

ᅒᙟᩝᏊ䛮ᩝᏊ䜷䞀䝍

ᅒᙟᩝᏊ
–A
–ா

ᩝᏊ䜷䞀䝍
– A : 4/1 (0100 0001, 0x41)
• ASCIIᩝᏊ䜷䞀䝍మ⣌䛴ሔྙ
– ா : 3/5 7/14 (0011 0101 0111 1110, 0x357e)
• JIS X 0208 ᝗ሒஹᥦ⏕₆Ꮚ➚ྙ
ᩝᏊ㞗ྙ䛮䜷䞀䝍⣌(1䝔䜨䝌)

ASCII
– ANSI(⡷ᅗぞ᰹༝ఌ)䛱䜎䜑ぞ᰹
– ISO646 BCT(Basic Code Table) ᅗ㝷ᵾ‵
– 94ᩝᏊ

ISO 8859
–
–
–
–
ASCII䛱䝬䞀䝱䝇䝕⣌䛴ᩝᏊ䜘㏛ຊ䛝䛥䜈䛴
8䝗䝇䝌䜘౐䛊䚮᭩୕న䝗䝇䝌䛒䠃䛴㒂ฦ䛱๪ᙔ䛬
ISO 8859-1䡐10
94+96ᩝᏊ
ASCII

7䝗䝇䝌䛭⾪⌟䛝䚮᭩୕న䝗䝇䝌䛵䠂䚯
00 䚸
䠅䠄಴䛴โᚒᩝᏊ㡷ᇡ
01
䚹
02 㸖”㸘㸙㸚㸛’㸝㸞㸟㸠㸡㸢㸣㸤
03 㸥㸦㸧㸨㸩㸪㸫㸬㸭㸮㸯㸰㸱㸲㸳㸴
04 㸵㸶㸷㸸㸹㸺㸻㸼㸽㸾㸿㹀㹁㹂㹃㹄
05 㹅㹆㹇㹈㹉㹊㹋㹌㹍㹎㹏㹐㹑㹒㹓㹔
06 ‘㹖㹗㹘㹙㹚㹛㹜㹝㹞㹟㹠㹡㹢㹣㹤
07 㹥㹦㹧㹨㹩㹪㹫㹬㹭㹮㹯㹰㹱㹲㺸
ISO646 BCT(Basic Code Table)

ASCII 䛮␏䛰䜑 12 ᩝᏊ
%@㹑BCE`ab㹳
%@㺺BCE`ab㺸
䢓 %@㹑BCE`ab㹳
୕࠿ ASCII
୯ኳ࠿ JIS X0201䝱䞀䝢Ꮚ
ୖ䛒 BSI 4730
ISO 8859-1
10
11
12
13
14
15
䜦䜨䜽䝭䝷䝍䚮䜦䜨䝯䝭䝷䝍䚮䜨䝃䝮䜦䚮䜮䝭䝷䝄䚮䜽䜪䜫䞀䝋䝷䚮䜽䝞䜨䝷䚮
䝋䝷䝢䞀䜳䚮䝍䜨䝈䚮䝒䝯䜪䜫䞀䚮䝡䝯䝌䜰䝯䚮䝙䜧䝷䝭䝷䝍䚮䝙䜫䝱䞀䚮䝙䝭䝷䜽
ISO 8859-2
10
11
12
13
14
15
䜦䝯䝔䝏䜦䚮䜽䝱䝔䜱䜦䚮䜽䝱䝝䝏䜦䚮䝅䜫䜷䚮䝍䜨䝈䚮䝓䝷䜰䝮䜦䚮䝡䞀䝭䝷䝍䚮
䝯䞀䝢䝏䜦
JIS X0201∞௫ྞ

Shift JIS䛭䛵1䝔䜨䝌䜷䞀䝍䛴ᚃ༖䛱๪䜐ᙔ䛬
䛬ฺ⏕
a
aࠊࠔࠕࠉࣣ࣬࢒࢔࢖࢚࢘ࣔࣖࣘࢴ
a࣭࢓࢕࢙࢛ࢗ࢜࢞ࢠࢢࢤࢦࢨࢪࢬࢮ
aࢰࢲࢵࢷࢹࢻࢼࢽࢾࢿࣀࣃࣆࣉ࣏࣌
a࣐࣑࣒࣓ࣕࣗࣙࣚࣛࣜࣝࣞ࣠ࣤࢌࢍ
ኣ䝔䜨䝌䜷䞀䝍

94+96ᩝᏊ䛭⾪⌟䛭䛓䛰䛊ᩝᏊ㞗ྙ䛵ኣ䝔
䜨䝌䛭⾪⌟䛟䜑
– ᪝ᮇㄊ
– 㡉ᅗㄊ
– ୯ᅗㄊ䟺⠾మᏊ䚮⦶మᏊ䟻

༇Ⅴ䜷䞀䝍䟺᪝ᮇㄊ䟻
– ༇䟺䠄᰾䚮䠃䟿䠋䠆䟻×Ⅴ䟺䠄᰾䚮䠃䟿䠋䠆䟻 䠏 䠊䠊䠅䠈
– 䜷䞀䝍䛴㛜ጙ䛵 0x2121 䟺₆Ꮚ䛴✭Ⓣ䟻
᪝ᮇㄊ (JIS X 0208-1983)
16
17
18
19
20
21
22
23
01 02 03 …
ᩐᏊ䛵༇Ⅴ䜷䞀䝍
᪝ᮇㄊ䛮䛊䛩䛬䜈…

ᩝᏊ㞗ྙ䛱䛵䛊䛕䛪䜈⛸㢦䛒䛈䜑
– JIS X 0208-1978
– JIS X 0208-1983
– Ꮚమ䛴ን᭞䚮オྒ䛴㏛ຊ
– JIS X 0208-1990 䟺⌟ᅹ䛴᭩᩺䟻
– JIS X 0212-1990 䟺⿭ຐ₆Ꮚ䟻
ASCII䛮᪝ᮇㄊ䛴Ίᅹ᪁ᘟ
䛣䛴䜄䜄䛦䛮䚮ྜྷ䛞䜷䞀䝍✭㛣䜘භ᭯䛟䜑䛴䛭
々ᩐ䛴ᩝᏊ䜿䝇䝌䜘༇ื䛝䛬᡽䛌䛙䛮䛒䛭䛓䛰
䛊
 ༇ื䛝䛬᡽䛌䛥䜇䛴ᣉᘿ

–
–
–
–
ISO-2022-JP
EUC-Japan
Shift JIS
UNICODE...
ISO-2022-JP
䜨䝷䝃䞀䝑䝇䝌䛭䛴䝥䝇䜿䞀䜼ஹᥦ䛭⏕䛊䜑
 RFC1468
 䚸10᭮10᪝䚹䛵䚮

1 0 ESC $ B 7 n ESC ( B 1 0 ESC $ B F | ESC
(B

ESC $ B (0x1B, 0x24, 0x42)
– JIS X 0208 䛾䛴ว䜐᭨䛎

ESC ( B (0x1B, 0x28, 0x42)
– ASCII 䛾䛴ว䜐᭨䛎
EUC-Japan

EUC : Extended UNIX Code
– ኣ䛕䛴 UNIX 䜻䜽䝊䝤䛭⏕䛊䜏䜒䛬䛊䜑䟺䛊䛥?䟻
ኣ䝔䜨䝌䜷䞀䝍䛴ᩝᏊ䜿䝇䝌䛱䛪䛊䛬䛵䚮᭩୕
న䝗䝇䝌䜘1䛱䛝䛬᡽䛌
 䚸10᭮10᪝䚹䛵䚮

– 31 30 B7 EE 31 30 c6 FE
– 1 0 7 n 1 0 F |
䜦䝷䝄䞀䝭䜨䝷䛵ᐁ㝷䛱䛵᭩୕న䝗䝇䝌䛒1
Shift JIS
䝕䝁䜷䝷䛭ᗀ䛕⏕䛊䜏䜒䛬䛊䜑≁Ṟ䛰ᣉᘿ᪁
ᘟ
 1䝔䜨䝌䜯䝃䜯䝎䜘᭩୕న䝗䝇䝌䛒1䛴㒂ฦ䛱ᏽ
⩇䛝䚮㝵㛣䛱₆Ꮚ䜘㒼⨠
 ₆Ꮚ䛴2䝔䜨䝌┘䛦䛗䜘ぜ䛬₆Ꮚ䛴ୌ㒂䛑䛯
䛌䛑䜘ึ᩷䛟䜑䛙䛮䛒䛭䛓䛰䛊
 䚸10᭮10᪝䚹䛵䚮

30 31 8E 8C 30 31 F1 93
⮤ິึื...

⮤ິึื䛭༇ื䛭䛓䛰䛊ᩝᏊ
– 㩆 (E9B7 in Shift JIS)
– ⸇ (E9B7 in EUC Japan)
ཤ⩻ᩝ⊡

䝢䝯䝅䝮䝷䜰䝯⎌ሾ䛴ᐁ⌟
䝛䝰䝷䝊䜧䜽䝟䞀䝯/䝌䝇䝕䝷
4300ළ
ISBN4-88735-020-1
http://m-media.kudpc.kyotou.ac.jp/~yasuoka/CJK.html
 http://www.unicode.org

Fly UP