Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jun 16, 2016
1 parent 34f6e00 commit 25944fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions scripts2/Makefile.data
Expand Up @@ -7,6 +7,7 @@ pinyins.txt:

update-header: pinyins.txt
python3 generateheader.py templates/pinyin_parser_table.h.in > ../src/storage/pinyin_parser_table.h
python3 generateheader.py templates/special_table.h.in > ../src/storage/special_table.h
python3 generateheader.py templates/double_pinyin_table.h.in > ../src/storage/double_pinyin_table.h
python3 generateheader.py templates/zhuyin_table.h.in > ../src/storage/zhuyin_table.h
python3 generateheader.py templates/chewing_enum.h.in > ../src/storage/chewing_enum.h
Expand Down
8 changes: 0 additions & 8 deletions scripts2/templates/pinyin_parser_table.h.in
Expand Up @@ -31,14 +31,6 @@ const content_table_item_t content_table[] = {
@CONTENT_TABLE@
};

const divided_table_item_t divided_table[] = {
@DIVIDED_TABLE@
};

const resplit_table_item_t resplit_table[] = {
@RESPLIT_TABLE@
};

const gint chewing_key_table[CHEWING_NUMBER_OF_INITIALS *
CHEWING_NUMBER_OF_MIDDLES *
CHEWING_NUMBER_OF_FINALS] = {
Expand Down
16 changes: 16 additions & 0 deletions scripts2/templates/special_table.h.in
@@ -0,0 +1,16 @@
#ifndef SPECIAL_TABLE_H
#define SPECIAL_TABLE_H

namespace pinyin{

const divided_table_item_t divided_table[] = {
@DIVIDED_TABLE@
};

const resplit_table_item_t resplit_table[] = {
@RESPLIT_TABLE@
};

};

#endif

0 comments on commit 25944fc

Please sign in to comment.