summaryrefslogtreecommitdiffstats
path: root/src/storage/phonetic_key_matrix.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-18 14:56:15 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-18 14:56:15 +0800
commit3fb08cfc9707cf241cb3d782733bf1116a5a474b (patch)
tree892c500c9768314c46734693970e3fd09988c70f /src/storage/phonetic_key_matrix.h
parent166f65c916579eec9ed3004879a71146ecad6443 (diff)
downloadlibpinyin-3fb08cfc9707cf241cb3d782733bf1116a5a474b.tar.gz
libpinyin-3fb08cfc9707cf241cb3d782733bf1116a5a474b.tar.xz
libpinyin-3fb08cfc9707cf241cb3d782733bf1116a5a474b.zip
write resplit_step function
Diffstat (limited to 'src/storage/phonetic_key_matrix.h')
-rw-r--r--src/storage/phonetic_key_matrix.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -144,6 +144,14 @@ bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix,
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".
* Currently only support this feature in Hanyu Pinyin.