From bcebd6b9e4ffb3c62e0b7dacf3abe4fb872c6243 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 9 Nov 2011 15:19:16 +0800 Subject: update Makefile.data and genspecialtable.py --- scripts/genspecialtable.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/genspecialtable.py') diff --git a/scripts/genspecialtable.py b/scripts/genspecialtable.py index 4393274..d109b57 100644 --- a/scripts/genspecialtable.py +++ b/scripts/genspecialtable.py @@ -56,6 +56,10 @@ def gen_divided_table(): in divided_list: (pinyin_key, first_key, second_key) = map \ (get_chewing_string, (pinyin_key, first_key, second_key)) + + if orig_freq >= new_freq: + assert orig_freq > 0, "Expected orig_freq > 0 here." + entry = '{{{0}, {1}, {2}, {3}, {4}}}'.format \ (pinyin_key, orig_freq, first_key, second_key, new_freq) entries.append(entry) -- cgit