summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/genpinyinheader.py29
-rw-r--r--src/storage/pinyin_custom2.h2
2 files changed, 31 insertions, 0 deletions
diff --git a/scripts/genpinyinheader.py b/scripts/genpinyinheader.py
new file mode 100644
index 0000000..ec03051
--- /dev/null
+++ b/scripts/genpinyinheader.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# vim:set et sts=4 sw=4:
+#
+# libpinyin - Library to deal with pinyin.
+#
+# Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+
+from genpinyintable import gen_content_table, \
+ gen_pinyin_index, gen_bopomofo_index
+from genspecialtable import gen_divided_table, gen_resplit_table
+
+### main function ###
+if __name__ == "__main__":
+ pass
diff --git a/src/storage/pinyin_custom2.h b/src/storage/pinyin_custom2.h
index 0fb4812..77d12bb 100644
--- a/src/storage/pinyin_custom2.h
+++ b/src/storage/pinyin_custom2.h
@@ -29,6 +29,8 @@ enum PinyinTableFlag{
IS_PINYIN = 1U << 2,
PINYIN_INCOMPLETE = 1U << 3,
CHEWING_INCOMPLETE = 1U << 4,
+ USE_INCOMPLETE = 1U << 5,
+ USE_TONE = 1U << 6
};
/**