From 2980b45009e45b12fe233d945fea1be3275de26d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 9 Nov 2011 09:21:05 +0800 Subject: add gen pinyin header --- scripts/genpinyinheader.py | 29 +++++++++++++++++++++++++++++ src/storage/pinyin_custom2.h | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 scripts/genpinyinheader.py 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 +# +# 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 }; /** -- cgit