Number of Hangul syllables
Instances For
Starting code point for Hangul syllables
Equations
Instances For
Stopping code point for Hangul syllables
Equations
- Unicode.Hangul.Syllable.last = { toBitVec := { toFin := ⟨44032 + Unicode.Hangul.Syllable.size - 1, Unicode.Hangul.Syllable.last.proof_1⟩ } }
Instances For
Hangul syllable type
- toL : Fin Unicode.Hangul.sizeL
L part of syllable
- toV : Fin Unicode.Hangul.sizeV
V part of syllable
- toT : Fin Unicode.Hangul.sizeT
T part of syllable (0 means none)
Instances For
Equations
- Unicode.Hangul.instReprSyllable = { reprPrec := Unicode.Hangul.reprSyllable✝ }
Equations
- One or more equations did not get rendered due to their size.
LV part of syllable
Equations
- { toL := ⟨l, hl⟩, toV := ⟨v, hv⟩, toT := toT }.toLV = ⟨l * Unicode.Hangul.sizeV + v, ⋯⟩
Instances For
Equations
- s.index = match s.toLV, s.toT with | ⟨lv, hlv⟩, ⟨t, ht⟩ => let_fun this := ⋯; ⟨lv * Unicode.Hangul.sizeT + t, this⟩
Instances For
@[inline]
Get short name for Hangul syllable
Equations
- s.getShortName = Unicode.Hangul.shortNameL[s.toL] ++ Unicode.Hangul.shortNameV[s.toV] ++ Unicode.Hangul.shortNameT[s.toT]
Instances For
Get L part character for syllable
Equations
- s.getLChar = Char.ofNat (Unicode.Hangul.baseL.toNat + ↑s.toL)
Instances For
Get V part character for syllable
Equations
- s.getVChar = Char.ofNat (Unicode.Hangul.baseV.toNat + ↑s.toV)
Instances For
Get LV part character for syllable
Equations
- s.getLVChar = Char.ofNat (Unicode.Hangul.Syllable.base.toNat + Unicode.Hangul.sizeT * ↑s.toLV)
Instances For
Get T part character for syllable
Equations
- s.getTChar? = if (↑s.toT == 0) = true then none else pure (Char.ofNat (Unicode.Hangul.baseT.toNat + ↑s.toT))
Instances For
Get Hangul syllable from code point
Equations
- One or more equations did not get rendered due to their size.
Instances For
Get Hangul syllable from code point
Equations
- One or more equations did not get rendered due to their size.