From 4fbe19e5eaeb4d1bdb509daafeedbf923438b1b7 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 9 Nov 2011 10:33:22 +0800 Subject: fixes pinyin parser table compile --- scripts/pinyin_parser_table.h.in | 4 ++++ scripts/pinyintable.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/pinyin_parser_table.h.in b/scripts/pinyin_parser_table.h.in index efd27cd..ae8093d 100644 --- a/scripts/pinyin_parser_table.h.in +++ b/scripts/pinyin_parser_table.h.in @@ -4,6 +4,8 @@ #ifndef PINYIN_PARSER_TABLE_H #define PINYIN_PARSER_TABLE_H +namespace pinyin{ + const pinyin_index_item_t pinyin_index[] = { @PINYIN_INDEX@ }; @@ -24,4 +26,6 @@ const resplit_table_item_t resplit_table[] = { @RESPLIT_TABLE@ }; +}; + #endif diff --git a/scripts/pinyintable.py b/scripts/pinyintable.py index 603159e..a825fea 100644 --- a/scripts/pinyintable.py +++ b/scripts/pinyintable.py @@ -117,7 +117,7 @@ def get_shengmu_chewing(shengmu): initial = chewing_key else: initial = 'PINYIN_{0}'.format(shengmu.upper()) - return initial, "CHEWING_ZREO_MIDDLE", "CHEWING_ZERO_FINAL" + return initial, "CHEWING_ZERO_MIDDLE", "CHEWING_ZERO_FINAL" def gen_shengmu(): #generate all shengmu -- cgit