seonbi-0.5.0: SmartyPants for Korean language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Seonbi.Unihan.KHangul

Synopsis

Documentation

data CharacterSet Source #

Represents character set standards for Korean writing system.

Constructors

KS_X_1001

KS X 1001 (정보 교환용 부호계).

KS_X_1002

KS X 1002 (정보 교환용 부호 확장 세트).

NonStandard

Represents that a Hanja character is not included in any Korean character set standards.

type HanjaReadings = Map Char HanjaReadingCitation Source #

All readings of a Hanja character.

type KHangulData = Map Char HanjaReadings Source #

Maps all Hanja characters to their possible readings.

data Purpose Source #

Represents purposes of Hanja characters.

Constructors

Education

Basic Hanja for educational use (漢文敎育用基礎漢字), a subset of Hanja defined in 1972 by a South Korean standard for educational use.

PersonalName

Hanja for personal names (人名用漢字).

Instances

Instances details
Show Purpose Source # 
Instance details

Defined in Text.Seonbi.Unihan.KHangul

Eq Purpose Source # 
Instance details

Defined in Text.Seonbi.Unihan.KHangul

Methods

(==) :: Purpose -> Purpose -> Bool #

(/=) :: Purpose -> Purpose -> Bool #

Ord Purpose Source # 
Instance details

Defined in Text.Seonbi.Unihan.KHangul

kHangulData :: KHangulData Source #

Data that map Hanja characters to their corresponding kHangul entries (i.e., Hanja readings and citations).

>>> import Data.Map.Strict as M
>>> let Just entries = M.lookup '天' kHangulData
>>> entries
fromList [('천',HanjaReadingCitation KS_X_1001 (fromList [Education]))]