Korean language and computers#Hangul in Unicode

{{Short description|Input and use of Korean on computers}}

{{Technical|date=July 2022}}

{{Use American English|date = February 2019}}

{{Use mdy dates|date = February 2019}}

File:Samsung K652V.jpg

The writing system of the Korean language is a syllabic alphabet of character parts ({{lang|ko-Latn|jamo}}) organized into character blocks ({{lang|ko|글자}}; {{lang|ko-Latn|geulja}}) representing syllables. The character parts cannot be written from left to right on the computer, as in many Western languages. Every possible syllable in Korean would have to be rendered as syllable blocks by a font, or each character part would have to be encoded separately. Unicode has both options; the character parts {{lang|ko|ㅎ}} (h) and {{lang|ko|ㅏ}} (a), and the combined syllable {{lang|ko|하}} (ha), are encoded.

{{anchor|Character encodings}}Character encoding

{{See also|ISO/IEC 2022|Extended Unix Code#EUC-KR|KPS 9566|GB 12052|List of modern Hangul characters in ISO/IEC 2022–compliant national character set standards}}

In RFC 1557, a method known as ISO-2022-KR for seven-bit encoding of Korean characters in email was described. Where eight bits are allowed, EUC-KR encoding is preferred. These two encodings combine US-ASCII (ISO 646) with the Korean standard KS X 1001:1992{{cite web |url=http://examples.oreilly.com/cjkvinfo/AppL/ksx1001.pdf |title=KS X 1001:1992}} (previously named KS C 5601:1987). Another character set, KPS 9566 (similar to KS X 1001), is used in North Korea.

The international Unicode standard contains special characters for the Korean language in the Hangul phonetic system. Unicode supports two methods. The method used by Microsoft Windows is to have each of the 11,172 syllable combinations as code and a preformed font character. The other method encodes letters (jamos) and lets the software combine them correctly. The Windows method requires more font memory but allows better shapes, since it is complicated to create stylistically correct combinations (preferable for documents).

Another possibility is stacking a sequence of medial(s) (jungseong) and a sequence of final(s) (jongseong) or a Middle Korean pitch mark (if needed) on top of the sequence of initial(s) (choseong) if the font has medial and final jamo with zero-width spacing inserted to the left of the cursor or caret, thus appearing in the right place below (or to the right of) the initial. If a syllable has a horizontal medial ({{lang|ko|ㅗ}}, {{lang|ko|ㅛ}}, {{lang|ko|ㅜ}}, {{lang|ko|ㅠ}} or {{lang|ko|ㅡ}}), the initial will probably appear further left in a complete syllable than in preformed syllables due to the space that must be reserved for a vertical medial, making aesthetically poor what may be the only way to display Middle Korean hangul text without resorting to images, romanization, replacement of obsolete jamo or non-standard encodings. However, most current fonts do not support this.

The Unicode standard also has attempted to create a unified CJK character set which can represent Chinese (Hanzi) and the Japanese (Kanji) and Korean (Hanja) derivatives of this script through Han unification, which does not discriminate by language or region in rendering Chinese characters if the typographic traditions have not resulted in major differences in what a character looks like. Han unification has been criticized.

Hangul type, Korean typewriters

{{See also|:ko:한글 자판|ko:한글 타자기}}

While the first Korean typewriter (한글 타자기, Hangeul tajagi) is unclear, the first moa-sseugi style (모아쓰기, the form of Hangul where consonants and vowels come together to form a letter; The standard form of Hangul used today) typewriter is thought to be first invented by Korean-American gyopo Lee Won-Ik (이원익) in 1914, where he modified a Smith Premier 10 typewriter's type into Hangul.{{cite web |date=2012-12-07 |title=이원익 타자기 |url=https://www.scienceall.com/%EC%9D%B4%EC%9B%90%EC%9D%B5-%ED%83%80%EC%9E%90%EA%B8%B0/ |website=scienceall.com}}{{cite web |title=정보화 시대 이전, 타자기가 있었다<한글 타자기 전성시대> |url=https://www.hangeul.go.kr/webzine/201908/sub2_3.html |website=Hangul museum}} Alongside Lee Won-ik's, Horace Grant Underwood's 1913 US-patented Hangul type, the Underwood, and another Korean-American Kim Jun-Sung's Hangul type are also brought up when discussing the first Moa-Sugi type.김태호 (2011), 15쪽.

In 1929, the first Dubeolsik typewriter was made by Song Ki-Ju, a student studying abroad in the US, gaining attention from the Donga ilbo, however, it no longer exists; In 1934 he showcased another type, which was a modification of the Underwood portable.https://www.hangeul.go.kr/museumCollection/museumCollectionView.do?curr_menu_cd=0106010100&collection_id=%ED%95%9C%EA%B8%B01&lang=ko&seq=30김태호 (2011), 25쪽. Song's 1934 typewriter is stored in the Hangul museum as the oldest existing Korean typewriter.{{cite web |date=February 27, 2020 |title=[역사특집] 한국교회사에서 건진 근대문화유산들, 등록문화재로 새롭게 지정 |url=https://www.kidok.com/news/articleView.html?idxno=205561 |publisher=Christian newspaper}} The invention led to the development of other typewriters in 1945 by Kim Joon Sung and 1950 by Kong Byung Woo.{{cite web |date=2014-10-08 |title=最古 한글타자기, 한글박물관서 본다 |url=https://www.yna.co.kr/view/AKR20141008123200005 |publisher=Yonhap News Agency}}

In 1949, eye doctor Kong Byung-Woo made the first practical Hangul type able to write both in Moa-Sugi and horizontally.김태호 (2011), 28쪽.

Modern text input

{{See also-text|Windows multilingual support|Input method|List of input methods for Unix|Japanese input method|Chinese input methods}}

File:KB South Korea.svg

File:KB North Korea.svg

File:Typing 있습니다 in Dubeolsik keyboard layout.gif

On a Korean computer keyboard, text is typically entered by pressing a key for the appropriate jamo; the operating system creates each composite character on the fly. Depending on the Input method editor and keyboard layout, double consonants can be entered by holding the shift button. When all jamo making up a syllabic block has been entered, the user may initiate a conversion to hanja (or other special characters) using a keyboard shortcut or interface button; South Korean keyboards have a key for this. Subsequent semi-automated hanja conversion is supported in varying degrees by word processors.

When using a keyboard with another language, most operating systems require the user to type with an original Korean keyboard layout; the most common is Dubeolsik. In other languages, such as Japanese, text can be entered on non-native keyboards with romanization.

Operating systems such as Linux allow engine/hangul/hangul-keyboard='ro, resulting in a romaja keyboard; typing "seonggye" results in {{langx|ko|nocat=yes|성계}}.{{Cite web|url=https://github.com/libhangul/ibus-hangul|title = Libhangul/Ibus-hangul|website = GitHub|date = May 29, 2021}} In this configuration, ㄲ is obtained by "gg" rather than {{key press|shift|G}}. This allows keying "jasanGun" to obtain {{langx|ko|nocat=yes|자산군}}, instead of keying "jasangun" (which would provide {{langx|ko|nocat=yes|자상운}}).

= {{anchor|Pre-division of Korea}}Before Korean division =

Korean text input is related to Korean typewriters ({{lang|ko-Hang|타자기}}) before computers. according to Jang Bong Seon, Horace Grant Underwood made a Korean typewriter during the first decade of the 20th century.{{cite book|title=한글풀어쓰기교본|publisher=한풀문화사(Hanpul)|year=1989|page=84|last=장 |first=봉선}} In 1927, Song Ki Joo invented the first Dubeolsik typewriter in Chicago.

= {{anchor|Division of Korea}}After division =

South Korea originally had a Nebeolsik standard, but Dubeolsik became standard in 1985.{{cite web|url=https://theme.archives.go.kr//next/hangeulPolicy/mechanization.do|title=한글 타자 자판표준화 등 한글 기계화(1969년)|website=theme.archives.go.kr}}

Hanja

Some Korean fonts do not include hanja, and word processors do not allow a user to specify which font to use as a fallback for any hanja in a text; each hanja sequence must be manually formatted for a desired font.

{{anchor|Special situations}}Pitch marks and vertical text

Vertical text is supported poorly (or not at all) by HTML and most word processors. This is not an issue for modern Korean, which is usually written horizontally; until the second half of the 20th century, however, Korean was often written vertically. Fifteenth-century texts written in hangul had pitch marks to the left of syllables which are included in Unicode, although current fonts do not support them.

Programs

Programs designed for Korean language-related use include:

  • Language recognition
  • A North Korean speech recognition program is said to recognize 100,000 words, with a success rate of over 90 percent.{{cite web |url=http://www.tongilnews.com/news/articleView.html?idxno=2455 |script-title=ko:문답으로 보는 북한 정보화의 현주소 |last=김 |first=치관|work=Tongilnews.com |date=2000-12-02 |language=Korean |accessdate=2006-12-03}}
  • Mongnan ({{lang|ko-Hang|목란}}; Korea Computer Center,{{cite web |url=http://www.tongilnews.com/news/articleView.html?idxno=2622 |title=<국회자료집> 북한 S/W 현황과 시연자료 |last=김 |first=효석 |work=Tongilnews.com |date=2000-12-02 |language=Korean |accessdate=2006-12-03}} North Korea){{snd}} Optical character recognition software, with a reported success rate of 99 percent for printed text and 95 percent for handwriting recognition.
  • Input method editors
  • Tan'gun ({{lang|ko-Hang|단군}}; Pyongyang Information Center, North Korea){{snd}} Allows hangul on English versions of Windows.
  • Korean IME (Microsoft){{snd}} Allows hangul on all versions of Windows.{{cite web |url=https://learn.microsoft.com/en-us/globalization/input/korean-ime|title=Korean IME |work=Microsoft|access-date=2025-01-20}}
  • Nalgaeset Hangul Input Method Editor (날개셋 한글 입력기); Kim Yongmook, South Korea){{snd}} A Hangul input method developed for the sebeolsik (3-set style) Windows keyboard layout
  • Nabi ({{lang|ko|나비}}), ami ({{lang|ko|아미}}; South Korea){{snd}}Permits hangul on Linux
  • m17n{{snd}}Permits revised romanization for hangul input on Unix
  • SCIM and IBus{{snd}}Permits Hangul and hanja input on POSIX operating systems (including Linux and BSD)
  • Word processors{{snd}}The following programs include domestic Hangul fonts, non-Hangul fonts and a Hangul-hanja conversion utility.
  • Hangul (Hancom, South Korea)
  • Changdok ({{lang|ko-Hang|창덕}}; PIC, North Korea){{snd}}MS-DOS program developed in April 1990; a Windows version was developed in 1996.{{cite web |url=http://www.tongilnews.com/article.asp?mainflag=Y&menuid=102000&articleid=2511 |script-title=ko:북한의 컴퓨터산업 어디까지 왔나 |author=Yonhap |author-link=Yonhap |work=Tongilnews.com |date=1998-01-07 |language=Korean |accessdate=2006-12-03}} {{Dead link|date=September 2010|bot=H3llBot}} It has a personality-cult feature in which pressing {{Key press|Ctrl|I}} or {{Key press|Ctrl|J}} produces titles praising Kim Il Sung and Kim Jong Il, respectively.{{Cite web |url=http://www.kplibrary.com/nkterm/read.aspx?num=989 |title=북한용어사전: 평양정보센터(PIC) |language=Korean |archive-url=https://web.archive.org/web/20070928060407/http://www.kplibrary.com/nkterm/read.aspx?num=989 |archive-date=2007-09-28 |access-date=2006-12-03}}

Hangul in Unicode

{{See also|List of Hangul jamo}}

File:Hangul jamo characters in Unicode.svg

File:Hangul Compatibility Jamo block in Unicode.svg

Hangul letters are detailed in several parts of Unicode:

= Hangul Syllables block =

Pre-composed Hangul syllables in the Unicode Hangul Syllables block are algorithmically defined with the following formula:

: [(initial) × 588 + (medial) × 28 + (final)] + 44032

  • Initial consonants

{{columns-list|colwidth=8em|{{ordered list|start=0

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

}}}}

  • Medial vowels

{{columns-list|colwidth=8em|{{ordered list|start=0

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

}}}}

  • Final consonants

{{columns-list|colwidth=8em|{{ordered list|start=0

| none

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

}}}}

To find the code point of "한" in Unicode:

  • The value of the initial consonant (ㅎ) is 18.
  • The value of the medial vowel (ㅏ) is 0.
  • The value of the final consonant (ㄴ) is 4.

Substituting these values in the formula above yields [(18 × 588) + (0 × 28) + 4] + 44032 = 54620. The Unicode value of 한 is 54620 in decimal, &#54620; in numeric character reference, and U+D55C in hexadecimal Unicode notation.

= Hangul Compatibility Jamo block =

The Unicode Hangul Compatibility Jamo block has been allocated for compatibility with the KS X 1001 character set. It is usually used to represent hangul without distinguishing initials and finals.

= Hangul Jamo blocks =

The Hangul Jamo, Hangul Jamo Extended-A and Hangul Jamo Extended-B blocks contain initial, medial and final jamo, including obsolete jamo.

= Hanyang Private Use Area code =

Hangul (word processor) shipped with fonts from Hanyang Information and Communication, which map obsolete Hangul characters with Unicode's Private Use Areas. Despite the use of PUAs instead of dedicated code points, Hanyang's mapping was the most popular way to represent obsolete Hangul in South Korea in 2007. With its Hangul 2010, however, Hancom deprecated Hanyang PUA code and began representing obsolete Hangul characters with Unicode Hangul jamo.

See also

References

{{Reflist|2}}