Korean character encoding (Generation II): Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→‎Control characters: https://tcrf.net/Talk:Pok%C3%A9mon_Gold_and_Silver#Unused_error_messages_in_Japanese)
m (Transporter maps this character to …)
 
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{main|Character encoding (Generation II)}}
==Character map==
==Character map==
All control characters print characters that are two tiles high. (A single character's width is always one tile. A "tile" is an 8x8 pixel square; for comparison, the player occupies a 2x2-tile square.)
All control characters print characters that are two tiles high. (A single character's width is always one tile. A "tile" is an 8×8 pixel square; for comparison, the player occupies a 2×2-tile square.)


Those characters marked with two asterisks (**) are the first byte of two-byte characters (detailed below), which primarily print Korean characters. Those marked with a single asterisk are control characters which are explained below.
Those characters marked with two asterisks (**) are the first byte of two-byte characters (detailed below), which primarily print Korean characters. Those marked with a single asterisk are control characters which are explained below.
Line 6: Line 7:
The character map also contains some tiles that contain bits and pieces of Korean characters.
The character map also contains some tiles that contain bits and pieces of Korean characters.


:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 17: Line 18:
|-
|-
! 2-
! 2-
| Z || ( || ) || : || w || x || y || z || colspan=6 | ''Korean'' || Ä || Ö
| Z || ( || ) || : || w || x || y || z || colspan=6 | ''Korean'' || Ä || Ö
|-
|-
! 3-
! 3-
| Ü || ä || ö || * || * || * || * || * ||   || colspan=4 | ''Korean''  || Z || ( || )
| Ü || ä || ö || * || * || * || * || * ||   || colspan=4 | ''Korean''  || Z || ( || )
|-
|-
! 4-
! 4-
Line 47: Line 48:
|-
|-
! C-
! C-
| Ä
| Ä
| Ö
| Ö
| Ü
| Ü
| ä
| ä
| ö
| ö
| ü
| ü
|   ||   || colspan=8 | ''Korean''
|   ||   || colspan=8 | ''Korean''
|-
|-
Line 88: Line 89:
| 0x47 || Prints <code>포켓몬</code> ([[Pokémon]]).
| 0x47 || Prints <code>포켓몬</code> ([[Pokémon]]).
|-
|-
| 0x48 || Prints <code>……</code>.
| 0x48 || Prints <code>{{j|……}}</code>.
|-
|-
| 0x49 || Prints <code>컴퓨터</code> ([[PC]]).
| 0x49 || Prints <code>컴퓨터</code> ([[PC]]).
Line 142: Line 143:
Many byte pairs will print an empty space, but most are unused. In most dialogue, 0x7F is used to display a space, while in user-input strings, <code>0B FF</code> is inserted when the player uses a space. (This seems to be because the game requires that all user-input strings use pairs of bytes; if they didn't, the "maximum" length could vary significantly.) Similarly, while byte pairs starting with 0x00 and 0x0B have identical outputs, the game only naturally uses 0x0B pairs.
Many byte pairs will print an empty space, but most are unused. In most dialogue, 0x7F is used to display a space, while in user-input strings, <code>0B FF</code> is inserted when the player uses a space. (This seems to be because the game requires that all user-input strings use pairs of bytes; if they didn't, the "maximum" length could vary significantly.) Similarly, while byte pairs starting with 0x00 and 0x0B have identical outputs, the game only naturally uses 0x0B pairs.


For the most part, the Korean characters appear in a consistent order based on their makeup (their initial, medial, and final consonants/vowels). There are some exceptions, however (such as 쓔 and 쓩).
For the most part, the available Korean characters match the 2,350 hangul syllables present in the {{wp|KS X 1001}} standard, as well as the 40 jamo and 5 additional syllables (뢔, 쌰, 쎼, , ) necessary to input them. The 5 additional syllables are placed in what would otherwise be empty slots between the 94-character rows from KS X 1001. The only other changes are that 겸 and 겹 are swapped, 굄 is replaced by 괻, 댜 is removed, 돐 is removed, and 읊 is replaced by 읆.
 
This encoding does not include jamo that are exclusively as final consonants.


===0x00===
===0x00===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 153: Line 156:
|-
|-
! 1-
! 1-
| ㅃ || ㅆ || ㅉ ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
| ㅃ || ㅆ || ㅉ ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 2-
! 2-
Line 162: Line 165:
|-
|-
! 4-
! 4-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 「 || 」 || 『 || 』 || ( || ) || ! || ? || - || ~ || ・・・ || , || . ||  ||  ||  
| 「 || 」 || 『 || 』 || ( || ) || ! || ? || - || ~ || {{j|…}} || , || . ||  ||  ||
|-
|-
! 7-
! 7-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 8-
! 8-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 9-
! 9-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! A-
! A-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! B-
! B-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! C-
! C-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! D-
! D-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! E-
! E-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! F-
! F-
| 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 ||  ||  ||  ||  ||  ||  
| 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 ||  ||  ||  ||  ||  ||
|}
|}


===0x01===
===0x01===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 219: Line 222:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 곧 || 골 || 곪 || 곬 || 곯 || 곰 || 곱 || 곳 || 공 || 곶 || 과 || 곽 || 관 || 괄 || 괆 ||  
| 곧 || 골 || 곪 || 곬 || 곯 || 곰 || 곱 || 곳 || 공 || 곶 || 과 || 곽 || 관 || 괄 || 괆 ||
|-
|-
! 7-
! 7-
Line 240: Line 243:
|-
|-
! C-
! C-
| 깎 || 깐 || 깔 || 깖 || 깜 || 깝 || 깟 || 깠 || 깡 || 깥 || 깨 || 깩 || 깬 || 깰 || 깸 ||  
| 깎 || 깐 || 깔 || 깖 || 깜 || 깝 || 깟 || 깠 || 깡 || 깥 || 깨 || 깩 || 깬 || 깰 || 깸 ||
|-
|-
! D-
! D-
Line 253: Line 256:


===0x02===
===0x02===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 264: Line 267:
|-
|-
! 2-
! 2-
| 뀔 || 뀜 || 뀝 || 뀨 || 끄 || 끅 || 끈 || 끊 || 끌 || 끎 || 끓 || 끔 || 끕 || 끗 || 끙 ||  
| 뀔 || 뀜 || 뀝 || 뀨 || 끄 || 끅 || 끈 || 끊 || 끌 || 끎 || 끓 || 끔 || 끕 || 끗 || 끙 ||
|-
|-
! 3-
! 3-
Line 273: Line 276:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
Line 285: Line 288:
|-
|-
! 9-
! 9-
| 놈 || 놉 || 놋 || 농 || 높 || 놓 || 놔 || 놘 || 놜 || 놨 || 뇌 || 뇐 || 뇔 || 뇜 || 뇝 ||  
| 놈 || 놉 || 놋 || 농 || 높 || 놓 || 놔 || 놘 || 놜 || 놨 || 뇌 || 뇐 || 뇔 || 뇜 || 뇝 ||
|-
|-
! A-
! A-
Line 303: Line 306:
|-
|-
! F-
! F-
| 댑 || 댓 || 댔 || 댕 ||  || 더 || 덕 || 덖 || 던 || 덛 || 덜 || 덞 || 덟 || 덤 || 덥 ||  
| 댑 || 댓 || 댔 || 댕 ||  || 더 || 덕 || 덖 || 던 || 덛 || 덜 || 덞 || 덟 || 덤 || 덥 ||
|}
|}


===0x03===
===0x03===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 327: Line 330:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 디 || 딕 || 딘 || 딛 || 딜 || 딤 || 딥 || 딧 || 딨 || 딩 || 딪 || 따 || 딱 || 딴 || 딸 ||  
| 디 || 딕 || 딘 || 딛 || 딜 || 딤 || 딥 || 딧 || 딨 || 딩 || 딪 || 따 || 딱 || 딴 || 딸 ||
|-
|-
! 7-
! 7-
Line 348: Line 351:
|-
|-
! C-
! C-
| 띱 || 띳 || 띵 || 라 || 락 || 란 || 랄 || 람 || 랍 || 랏 || 랐 || 랑 || 랒 || 랖 || 랗 ||  
| 띱 || 띳 || 띵 || 라 || 락 || 란 || 랄 || 람 || 랍 || 랏 || 랐 || 랑 || 랒 || 랖 || 랗 ||
|-
|-
! D-
! D-
Line 361: Line 364:


===0x04===
===0x04===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 372: Line 375:
|-
|-
! 2-
! 2-
| 뤘 || 뤠 || 뤼 || 뤽 || 륀 || 륄 || 륌 || 륏 || 륑 || 류 || 륙 || 륜 || 률 || 륨 || 륩 ||  
| 뤘 || 뤠 || 뤼 || 뤽 || 륀 || 륄 || 륌 || 륏 || 륑 || 류 || 륙 || 륜 || 률 || 륨 || 륩 ||
|-
|-
! 3-
! 3-
Line 381: Line 384:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
Line 393: Line 396:
|-
|-
! 9-
! 9-
| 모 || 목 || 몫 || 몬 || 몰 || 몲 || 몸 || 몹 || 못 || 몽 || 뫄 || 뫈 || 뫘 || 뫙 || 뫼 ||  
| 모 || 목 || 몫 || 몬 || 몰 || 몲 || 몸 || 몹 || 못 || 몽 || 뫄 || 뫈 || 뫘 || 뫙 || 뫼 ||
|-
|-
! A-
! A-
Line 411: Line 414:
|-
|-
! F-
! F-
| 뱅 || 뱉 || 뱌 || 뱍 || 뱐 || 뱝 || 버 || 벅 || 번 || 벋 || 벌 || 벎 || 범 || 법 || 벗 ||  
| 뱅 || 뱉 || 뱌 || 뱍 || 뱐 || 뱝 || 버 || 벅 || 번 || 벋 || 벌 || 벎 || 범 || 법 || 벗 ||
|}
|}


===0x05===
===0x05===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
|-
|-
! 0-
! 0-
|  || 벙 || 벚 || 베 || 벡 || 벤 || 벧 || 벨 || 벰 || 벱 || 벳 || || || 벼 || 벽 || 변
|  || 벙 || 벚 || 베 || 벡 || 벤 || 벧 || 벨 || 벰 || 벱 || 벳 || || || 벼 || 벽 || 변
|-
|-
! 1-
! 1-
| 별 || 볍 || 볏 || 병 || 볕 || 볐 || 볘 || 볜 || 보 || 복 || 본 || 볼 || 봄 || 봅 || 봇 || 봉
| 별 || 볍 || 볏 || 볐 || 병 || 볕 || 볘 || 볜 || 보 || 복 || 볶 || 본 || 볼 || 봄 || 봅 || 봇
|-
|-
! 2-
! 2-
| || 봐 || 봔 || 봤 || 봬 || 뵀 || 뵈 || 뵉 || 뵌 || 뵐 || 뵘 || 뵙 || 뵤 || 뵨 || 부 || 북
| || 봐 || 봔 || 봤 || 봬 || 뵀 || 뵈 || 뵉 || 뵌 || 뵐 || 뵘 || 뵙 || 뵤 || 뵨 || 부 || 북
|-
|-
! 3-
! 3-
| 분 || 붇 || 불 || 붐 || 붑 || 붓 || 붕 || 붙 || 붚 || 붉 || 붊 || 붜 || 붤 || 붰 || 붸 || 뷔
| 분 || 붇 || 불 || 붉 || 붊 || 붐 || 붑 || 붓 || 붕 || 붙 || 붚 || 붜 || 붤 || 붰 || 붸 || 뷔
|-
|-
! 4-
! 4-
Line 435: Line 438:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 븟 || 비 || 빅 || 빈 || 빌 || 빎 || 빔 || 빕 || 빗 || 빙 || 빚 || 빛 || 빠 || 빡 || 빤 ||  
| 븟 || 비 || 빅 || 빈 || 빌 || 빎 || 빔 || 빕 || 빗 || 빙 || 빚 || 빛 || 빠 || 빡 || 빤 ||
|-
|-
! 7-
! 7-
Line 456: Line 459:
|-
|-
! C-
! C-
| 삽 || 삿 || 샀 || 상 || 샅 || 새 || 색 || 샌 || 샐 || 샘 || 샙 || 샛 || 샜 || 생 || 샤 ||  
| 삽 || 삿 || 샀 || 상 || 샅 || 새 || 색 || 샌 || 샐 || 샘 || 샙 || 샛 || 샜 || 생 || 샤 ||
|-
|-
! D-
! D-
Line 469: Line 472:


===0x06===
===0x06===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 489: Line 492:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
Line 501: Line 504:
|-
|-
! 9-
! 9-
| 쏜 || 쏟 || 쏠 || 쏢 || 쏨 || 쏩 || 쏭 || 쏴 || 쏵 || 쏸 || 쐈 || 쐐 || 쐤 || 쐬 || 쐰 ||  
| 쏜 || 쏟 || 쏠 || 쏢 || 쏨 || 쏩 || 쏭 || 쏴 || 쏵 || 쏸 || 쐈 || 쐐 || 쐤 || 쐬 || 쐰 ||
|-
|-
! A-
! A-
Line 519: Line 522:
|-
|-
! F-
! F-
| 언 || 얹 || 얻 || 얼 || 얽 || 얾 || 엄 || 업 || 없 || 엇 || 었 || 엉 || 엊 || 엌 || 엎 ||  
| 언 || 얹 || 얻 || 얼 || 얽 || 얾 || 엄 || 업 || 없 || 엇 || 었 || 엉 || 엊 || 엌 || 엎 ||
|}
|}


===0x07===
===0x07===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 543: Line 546:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 욹 || 욺 || 움 || 웁 || 웃 || 웅 || 워 || 웍 || 원 || 월 || 웜 || 웝 || 웠 || 웡 || 웨 ||  
| 욹 || 욺 || 움 || 웁 || 웃 || 웅 || 워 || 웍 || 원 || 월 || 웜 || 웝 || 웠 || 웡 || 웨 ||
|-
|-
! 7-
! 7-
Line 564: Line 567:
|-
|-
! C-
! C-
| 쟈 || 쟉 || 쟌 || 쟎 || 쟐 || 쟘 || 쟝 || 쟤 || 쟨 || 쟬 || 저 || 적 || 전 || 절 || 젊 ||  
| 쟈 || 쟉 || 쟌 || 쟎 || 쟐 || 쟘 || 쟝 || 쟤 || 쟨 || 쟬 || 저 || 적 || 전 || 절 || 젊 ||
|-
|-
! D-
! D-
Line 577: Line 580:


===0x08===
===0x08===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 588: Line 591:
|-
|-
! 2-
! 2-
| 즌 || 즐 || 즘 || 즙 || 즛 || 증 || 지 || 직 || 진 || 짇 || 질 || 짊 || 짐 || 집 || 짓 ||  
| 즌 || 즐 || 즘 || 즙 || 즛 || 증 || 지 || 직 || 진 || 짇 || 질 || 짊 || 짐 || 집 || 짓 ||
|-
|-
! 3-
! 3-
Line 597: Line 600:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
Line 609: Line 612:
|-
|-
! 9-
! 9-
| 찐 || 찔 || 찜 || 찝 || 찡 || 찢 || 찧 || 차 || 착 || 찬 || 찮 || 찰 || 참 || 찹 || 찻 ||  
| 찐 || 찔 || 찜 || 찝 || 찡 || 찢 || 찧 || 차 || 착 || 찬 || 찮 || 찰 || 참 || 찹 || 찻 ||
|-
|-
! A-
! A-
Line 627: Line 630:
|-
|-
! F-
! F-
| 췻 || 췽 || 츄 || 츈 || 츌 || 츔 || 츙 || 츠 || 측 || 츤 || 츨 || 츰 || 츱 || 츳 || 층 ||  
| 췻 || 췽 || 츄 || 츈 || 츌 || 츔 || 츙 || 츠 || 측 || 츤 || 츨 || 츰 || 츱 || 츳 || 층 ||
|}
|}


===0x09===
===0x09===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 651: Line 654:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 쿨 || 쿰 || 쿱 || 쿳 || 쿵 || 쿼 || 퀀 || 퀄 || 퀑 || 퀘 || 퀭 || 퀴 || 퀵 || 퀸 || 퀼 ||  
| 쿨 || 쿰 || 쿱 || 쿳 || 쿵 || 쿼 || 퀀 || 퀄 || 퀑 || 퀘 || 퀭 || 퀴 || 퀵 || 퀸 || 퀼 ||
|-
|-
! 7-
! 7-
Line 672: Line 675:
|-
|-
! C-
! C-
| 퇴 || 퇸 || 툇 || 툉 || 툐 || 투 || 툭 || 툰 || 툴 || 툼 || 툽 || 툿 || 퉁 || 퉈 || 퉜 ||  
| 퇴 || 퇸 || 툇 || 툉 || 툐 || 투 || 툭 || 툰 || 툴 || 툼 || 툽 || 툿 || 퉁 || 퉈 || 퉜 ||
|-
|-
! D-
! D-
Line 685: Line 688:


===0x0A===
===0x0A===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 696: Line 699:
|-
|-
! 2-
! 2-
| 폅 || 폈 || 평 || 폐 || 폘 || 폡 || 폣 || 포 || 폭 || 폰 || 폴 || 폼 || 폽 || 폿 || 퐁 ||  
| 폅 || 폈 || 평 || 폐 || 폘 || 폡 || 폣 || 포 || 폭 || 폰 || 폴 || 폼 || 폽 || 폿 || 퐁 ||
|-
|-
! 3-
! 3-
Line 705: Line 708:
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
Line 717: Line 720:
|-
|-
! 9-
! 9-
| 헴 || 헵 || 헷 || 헹 || 혀 || 혁 || 현 || 혈 || 혐 || 협 || 혓 || 혔 || 형 || 혜 || 혠 ||  
| 헴 || 헵 || 헷 || 헹 || 혀 || 혁 || 현 || 혈 || 혐 || 협 || 혓 || 혔 || 형 || 혜 || 혠 ||
|-
|-
! A-
! A-
Line 735: Line 738:
|-
|-
! F-
! F-
| 흩 || 희 || 흰 || 흴 || 흼 || 흽 || 힁 || 히 || 힉 || 힌 || 힐 || 힘 || 힙 || 힛 || 힝 ||  
| 흩 || 희 || 흰 || 흴 || 흼 || 흽 || 힁 || 히 || 힉 || 힌 || 힐 || 힘 || 힙 || 힛 || 힝 ||
|}
|}


===0x0B===
===0x0B===
:{| style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
{| class="wikitable" style="text-align: center; border-collapse: collapse" cellpadding="2px" width="375px"
|-
|-
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
! || -0 || -1 || -2 || -3 || -4 || -5 || -6 || -7 || -8 || -9 || -A || -B || -C || -D || -E || -F
Line 747: Line 750:
|-
|-
! 1-
! 1-
| ㅃ || ㅆ || ㅉ ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
| ㅃ || ㅆ || ㅉ ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 2-
! 2-
Line 756: Line 759:
|-
|-
! 4-
! 4-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 5-
! 5-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 6-
! 6-
| 「 || 」 || 『 || 』 || ( || ) || ! || ? || - || ~ || ・・・ || , || . ||  ||  ||  
| 「 || 」 || 『 || 』 || ( || ) || ! || ? || - || ~ || {{j|…}} || , || . ||  ||  ||
|-
|-
! 7-
! 7-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 8-
! 8-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! 9-
! 9-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! A-
! A-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! B-
! B-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! C-
! C-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! D-
! D-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! E-
! E-
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  
|  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||  ||
|-
|-
! F-
! F-
| 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 ||  ||  ||  ||  ||  ||
| 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 ||  ||  ||  ||  ||  ||
|}
|}
{{data structure}}<br>
{{Project Games notice|data structure}}

Latest revision as of 19:53, 8 January 2024

Main article: Character encoding (Generation II)

Character map

All control characters print characters that are two tiles high. (A single character's width is always one tile. A "tile" is an 8×8 pixel square; for comparison, the player occupies a 2×2-tile square.)

Those characters marked with two asterisks (**) are the first byte of two-byte characters (detailed below), which primarily print Korean characters. Those marked with a single asterisk are control characters which are explained below.

The character map also contains some tiles that contain bits and pieces of Korean characters.

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- ** ** ** ** ** ** ** ** ** ** ** ** F G H I
1- J K L M N O P Q R S T U V * *
2- Z ( ) : w x y z Korean Ä Ö
3- Ü ä ö * * * * *   Korean Z ( )
4- :   Korean * * * * * * * * * *
5- * * * * * * * * * * * * * * * *
6- Character 0x62 ii.png D E F G H I V S L M :
7- PO Ké text box borders  
8- A B C D E F G H I J K L M N O P
9- Q R S T U V W X Y Z ( ) : ; [ ]
A- a b c d e f g h i j k l m n o p
B- q r s t u v w x y z Korean
C- Ä Ö Ü ä ö ü     Korean
D- 'd 'l 'm 'r 's 't 'v       Korean
E- ' PK MN -     ? ! . & é  
F- × . / , 0 1 2 3 4 5 6 7 8 9

Control characters

Character Function
0x1E A "half" line break (moves the print position to the place one tile below the start of the current line).
0x1F Prints ᆨtzx (mojibake for こうげき attack; appears to be a leftover from the English version code).
0x33 Prints POKé.
0x34 Nothing
0x35 Nothing
0x36 Nothing
0x37 Nothing
0x46 Prints PKMN.
0x47 Prints 포켓몬 (Pokémon).
0x48 Prints …….
0x49 Prints 컴퓨터 (PC).
0x4A Prints 기술머신 (TM).
0x4B Prints 로켓단 (Team Rocket).
0x4C ? (May break)
0x4D Prints 레드 (Red).
0x4E Prints 그린 (Blue).
0x4F Prints the opposing Trainer's name (including their Trainer class). (Outside of battle, this may not terminate properly.)
0x50 String terminator.
0x51 Prints the player's name.
0x52 Prints the rival's name.
0x53 Prints the inactive Pokémon's name.
0x54 Active Pokémon's name?
0x55 Prints 트레이너 (Trainer).
0x56 Prompts the player to press a button, after which the top line of the text window is replaced by the bottom, the bottom line is cleared, and the print position moves to the start of the bottom line.
0x57 Shifts text in the dialogue box up a line (so the top line is “lost”) without a prompt or a pause.
0x58 Prints PK.
0x59 Same as 0x5A?
0x5A Dialogue line break (moves the print position to the expected start of the second line in a standard dialogue box).
0x5B Prints 어머니 (Mom).
0x5C Prompts the player to press a button, after which the text window is cleared to make way for the following text.
0x5D Prompts the player to press a button, after which the top line of the text window is replaced by the bottom, the bottom line is cleared, and the print position moves to the start of the bottom line.
0x5E Marks the end of dialogue, with no visual prompt to the player.
0x5F Marks the end of dialogue, with a visual prompt to the player.

Two-byte characters

If the game tries to read a character and the byte read matches any of the following values (as seen in the section headers), then the game must also read the next byte in order to determine what character to print. The tables in each section describe which character is printed depending on the value of the second byte.

Many byte pairs will print an empty space, but most are unused. In most dialogue, 0x7F is used to display a space, while in user-input strings, 0B FF is inserted when the player uses a space. (This seems to be because the game requires that all user-input strings use pairs of bytes; if they didn't, the "maximum" length could vary significantly.) Similarly, while byte pairs starting with 0x00 and 0x0B have identical outputs, the game only naturally uses 0x0B pairs.

For the most part, the available Korean characters match the 2,350 hangul syllables present in the KS X 1001 standard, as well as the 40 jamo and 5 additional syllables (뢔, 쌰, 쎼, 쓔, 쬬) necessary to input them. The 5 additional syllables are placed in what would otherwise be empty slots between the 94-character rows from KS X 1001. The only other changes are that 겸 and 겹 are swapped, 굄 is replaced by 괻, 댜 is removed, 돐 is removed, and 읊 is replaced by 읆.

This encoding does not include jamo that are exclusively as final consonants.

0x00

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3- _ -
4-
5-
6- ( ) ! ? - ~ , .
7-
8-
9-
A-
B-
C-
D-
E-
F- 0 1 2 3 4 5 6 7 8 9

0x01

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9- 굿
A- 귿
B-
C-
D-
E-
F- 꼿

0x02

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1- 뀀
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x03

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x04

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4- 릿
5-
6-
7-
8-
9-
A-
B-
C- 믿
D-
E-
F-

0x05

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x06

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x07

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x08

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x09

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6- 퀀
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x0A

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3-
4-
5-
6-
7-
8-
9-
A-
B-
C-
D-
E-
F-

0x0B

-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0-
1-
2-
3- _ -
4-
5-
6- ( ) ! ? - ~ , .
7-
8-
9-
A-
B-
C-
D-
E-
F- 0 1 2 3 4 5 6 7 8 9


Data structure in the Pokémon games
Generation I Pokémon speciesPokémonPoké MartCharacter encodingSave
Generation II Pokémon speciesPokémonTrainerCharacter encoding (Korean) • Save
Generation III Pokémon species (Pokémon evolutionPokédexType chart)
Pokémon (substructures) • MoveContestContest moveItem
Trainer TowerBattle FrontierCharacter encodingSave
Generation IV Pokémon species (Pokémon evolutionLearnsets)
PokémonSaveCharacter encoding
Generation V-present Character encoding
TCG GB and GB2 Character encoding


Project Games logo.png This data structure article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games.