[−]Module gokien::syntax
This module contains some Enums of Vietnamese characters and defines rules to interact with.
Use VNI syntax for encoding Vietnamese (also called National Language) character.
Rationale for not using TELEX:
- Unique between monophthongs' and diphthongs' naming.
- Numbers are not used in any Vietnamese words, so using them to encode will not cause any conflicts.
Structs
| VnSyllable | Each Vietnamese monosyllabic word can be decomposed at most into 4 parts, which are: |
Enums
| Consonant | List all consonants (phụ âm) in Vietnamese. |
| LexicalChar | This includes English lexical character plus extended Vietnamese character. |
| LexicalKind | |
| Vowel | Lists all vowels (nguyên âm) in Vietnamese. |
Constants
| LEXICAL_TOTAL | A number represents total variants of LexicalChar enum. |
| VN_LEXICAL_KIND_MAP | |
| VN_NON_TONED_CHARS | This map table use to calculate non-toned offset in
|
| VN_ROOT_CHARS | This map table use to calculate non-marked and non-toned offset
in |
Traits
| VowelKindExt | This trait implements a few method to check if object is an elemental vowel, a diphthong or a triphthong. |
Functions
| get_without_tone_idx |