Copyright | (c) Colin Woodbury 2015 2016 |
---|---|
License | GPL3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
A single symbol of Kanji. Japanese Kanji were borrowed from China over several waves during the last 1,500 years. Japan names 2,136 of these as their standard set, with rarer characters being the domain of academia and esoteric writers.
Japanese has several Japan-only Kanji, including:
- 畑 (a type of rice field)
- 峠 (a narrow mountain pass)
- 働 (to do physical labour)
Instances
Eq Kanji Source # | |
Ord Kanji Source # | |
Show Kanji Source # | |
Generic Kanji Source # | |
Hashable Kanji Source # | |
Defined in Data.Kanji.Types | |
ToJSON Kanji Source # | |
Defined in Data.Kanji.Types | |
FromJSON Kanji Source # | |
NFData Kanji Source # | |
Defined in Data.Kanji.Types | |
type Rep Kanji Source # | |
Defined in Data.Kanji.Types |
A Level or Kyuu (級) of Japanese Kanji ranking. There are 12 of these, from 10 to 1, including intermediate levels between 3 and 2, and 2 and 1.
Japanese students will typically have Level-5 ability by the time they finish elementary school. Level-5 accounts for 1,006 characters.
By the end of middle school, they would have covered up to Level-3 (1607 Kanji) in their Japanese class curriculum.
While Level-2 (2,136 Kanji) is considered "standard adult" ability, many adults could not pass the Level-2, or even the Level-Pre2 (1940 Kanji) exam without considerable study.
Level data for Kanji above Level-2 is currently not provided by this library.
Instances
isHiragana :: Char -> Bool Source #
あ to ん.
isKatakana :: Char -> Bool Source #
ア to ン.
General categories for characters, at least as is useful for thinking about Japanese.
Japanese "full-width" numbers and letters will be counted as Numeral
and RomanLetter
respectively, alongside their usual ASCII forms.
Instances
Eq CharCat Source # | |
Ord CharCat Source # | |
Show CharCat Source # | |
Generic CharCat Source # | |
Hashable CharCat Source # | |
Defined in Data.Kanji.Types | |
ToJSON CharCat Source # | |
Defined in Data.Kanji.Types | |
ToJSONKey CharCat Source # | |
Defined in Data.Kanji.Types | |
FromJSON CharCat Source # | |
NFData CharCat Source # | |
Defined in Data.Kanji.Types | |
type Rep CharCat Source # | |
Defined in Data.Kanji.Types type Rep CharCat = D1 ('MetaData "CharCat" "Data.Kanji.Types" "kanji-3.5.0-DrkWfhYwP2UD58B6NGcwJ9" 'False) ((C1 ('MetaCons "Hanzi" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Hiragana" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Katakana" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Numeral" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RomanLetter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Punctuation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (U1 :: Type -> Type)))) |