From 3fb08cfc9707cf241cb3d782733bf1116a5a474b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 18 May 2016 14:56:15 +0800 Subject: write resplit_step function --- src/storage/phonetic_key_matrix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/storage/phonetic_key_matrix.h') diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h index f5054bd..9e1e1d6 100644 --- a/src/storage/phonetic_key_matrix.h +++ b/src/storage/phonetic_key_matrix.h @@ -143,6 +143,14 @@ bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix, ChewingKeyVector keys, ChewingKeyRestVector key_rests); +/** + * resplit_step: + * For "fa'nan" => "fan'an", add "fan'an" to the matrix for matched "fa'nan". + * Currently only support this feature in Hanyu Pinyin. + */ +bool resplit_step(pinyin_option_t options, + PhoneticKeyMatrix * matrix); + /** * inner_split_step: * For "xian" => "xi'an", add "xi'an" to the matrix for matched "xian". -- cgit