Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CharacterSet
- type HanjaReadings = Map Char HanjaReadingCitation
- data HanjaReadingCitation = HanjaReadingCitation CharacterSet (Set Purpose)
- type KHangulData = Map Char HanjaReadings
- data Purpose
- kHangulData :: KHangulData
- kHangulData' :: Either String KHangulData
Documentation
data CharacterSet Source #
Represents character set standards for Korean writing system.
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. |
Instances
Show CharacterSet Source # | |
Defined in Text.Seonbi.Unihan.KHangul showsPrec :: Int -> CharacterSet -> ShowS # show :: CharacterSet -> String # showList :: [CharacterSet] -> ShowS # | |
Eq CharacterSet Source # | |
Defined in Text.Seonbi.Unihan.KHangul (==) :: CharacterSet -> CharacterSet -> Bool # (/=) :: CharacterSet -> CharacterSet -> Bool # | |
Ord CharacterSet Source # | |
Defined in Text.Seonbi.Unihan.KHangul compare :: CharacterSet -> CharacterSet -> Ordering # (<) :: CharacterSet -> CharacterSet -> Bool # (<=) :: CharacterSet -> CharacterSet -> Bool # (>) :: CharacterSet -> CharacterSet -> Bool # (>=) :: CharacterSet -> CharacterSet -> Bool # max :: CharacterSet -> CharacterSet -> CharacterSet # min :: CharacterSet -> CharacterSet -> CharacterSet # |
type HanjaReadings = Map Char HanjaReadingCitation Source #
All readings of a Hanja character.
data HanjaReadingCitation Source #
Represents what standard a reading of character belongs to and a purpose of the reading.
Instances
type KHangulData = Map Char HanjaReadings Source #
Maps all Hanja characters to their possible readings.
Represents purposes of Hanja characters.
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 (人名用漢字). |
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]))]