diff options
author | Peng Wu <alexepico@gmail.com> | 2016-05-13 14:50:55 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-05-13 14:50:55 +0800 |
commit | ed191f413f2739982fc737022713cb5226f721de (patch) | |
tree | b79f3c6b08280520fb5e6ff818996755080f3e18 /src/storage/phonetic_key_matrix.h | |
parent | 5b487bd6d66f9a8f43260a9bec978ea8cf692995 (diff) | |
download | libpinyin-ed191f413f2739982fc737022713cb5226f721de.tar.gz libpinyin-ed191f413f2739982fc737022713cb5226f721de.tar.xz libpinyin-ed191f413f2739982fc737022713cb5226f721de.zip |
write fuzzy_syllable_step function
Diffstat (limited to 'src/storage/phonetic_key_matrix.h')
-rw-r--r-- | src/storage/phonetic_key_matrix.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h index 99aeb11..8d6b49a 100644 --- a/src/storage/phonetic_key_matrix.h +++ b/src/storage/phonetic_key_matrix.h @@ -134,10 +134,24 @@ public: }; +/** + * fill_phonetic_key_matrix_from_chewing_keys: + * Convert ChewingKeyVector and ChewingKeyRestVector + * to PhoneticKeyMatrix. + */ bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix, ChewingKeyVector keys, ChewingKeyRestVector key_rests); +/** + * fuzzy_syllable_step: + * For "an" <=> "ang", fill the fuzzy pinyins into the matrix. + * Supported nearly in all pinyin parsers. + * At most 3 * 2 entries will be added. + */ +bool fuzzy_syllable_step(pinyin_option_t options, + PhoneticKeyMatrix * matrix); + bool dump_phonetic_key_matrix(PhoneticKeyMatrix * matrix); }; |