1 /*
2  *  libpinyin
3  *  Library to deal with pinyin.
4  *
5  *  Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
6  *
7  *  This program is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #ifndef PINYIN_INTERNAL_H
23 #define PINYIN_INTERNAL_H
24 
25 #include <stdio.h>
26 #include "novel_types.h"
27 #include "memory_chunk.h"
28 #include "pinyin_custom2.h"
29 #include "chewing_key.h"
30 #include "pinyin_parser2.h"
31 #include "zhuyin_parser2.h"
32 #include "phonetic_key_matrix.h"
33 #include "pinyin_phrase3.h"
34 #include "chewing_large_table2.h"
35 #include "phrase_large_table3.h"
36 #include "facade_chewing_table2.h"
37 #include "facade_phrase_table3.h"
38 #include "phrase_index.h"
39 #include "phrase_index_logger.h"
40 #include "ngram.h"
41 #include "lookup.h"
42 #include "phonetic_lookup.h"
43 #include "phrase_lookup.h"
44 #include "tag_utility.h"
45 #include "table_info.h"
46 
47 
48 /* training module */
49 #include "flexible_ngram.h"
50 
51 
52 /* define filenames */
53 #define SYSTEM_TABLE_INFO "table.conf"
54 #define USER_TABLE_INFO "user.conf"
55 #define SYSTEM_BIGRAM "bigram.db"
56 #define USER_BIGRAM "user_bigram.db"
57 #define DELETED_BIGRAM "deleted_bigram.db"
58 #define SYSTEM_PINYIN_INDEX "pinyin_index.bin"
59 #define USER_PINYIN_INDEX "user_pinyin_index.bin"
60 #define SYSTEM_PHRASE_INDEX "phrase_index.bin"
61 #define USER_PHRASE_INDEX "user_phrase_index.bin"
62 #define ADDON_SYSTEM_PINYIN_INDEX "addon_pinyin_index.bin"
63 #define ADDON_SYSTEM_PHRASE_INDEX "addon_phrase_index.bin"
64 
65 
66 using namespace pinyin;
67 
68 
69 /* the following fixes build on Debian GNU/kFreeBSD */
70 #include <errno.h>
71 #ifndef ENODATA
72 #define ENODATA ENOENT
73 #endif
74 
75 
76 #endif
77