diff options
author | Peng Wu <alexepico@gmail.com> | 2016-05-17 17:25:49 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-05-17 17:25:49 +0800 |
commit | 166f65c916579eec9ed3004879a71146ecad6443 (patch) | |
tree | b68cc3339ae7ecfef7f16f42eef77c90838cc68d /src/storage/phonetic_key_matrix.h | |
parent | 84e1ba97704b4e4cf0185af105c768ae3a693206 (diff) | |
download | libpinyin-166f65c916579eec9ed3004879a71146ecad6443.tar.gz libpinyin-166f65c916579eec9ed3004879a71146ecad6443.tar.xz libpinyin-166f65c916579eec9ed3004879a71146ecad6443.zip |
write inner_split_step function
Diffstat (limited to 'src/storage/phonetic_key_matrix.h')
-rw-r--r-- | src/storage/phonetic_key_matrix.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h index 8d6b49a..f5054bd 100644 --- a/src/storage/phonetic_key_matrix.h +++ b/src/storage/phonetic_key_matrix.h @@ -144,6 +144,15 @@ bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix, ChewingKeyRestVector key_rests); /** + * inner_split_step: + * For "xian" => "xi'an", add "xi'an" to the matrix for matched "xian". + * Currently only support this feature in Hanyu Pinyin. + */ +bool inner_split_step(pinyin_option_t options, + PhoneticKeyMatrix * matrix); + + +/** * fuzzy_syllable_step: * For "an" <=> "ang", fill the fuzzy pinyins into the matrix. * Supported nearly in all pinyin parsers. |