0
|
1 /*
|
|
2 * $Id: jh.h,v 1.5 2005/04/10 15:26:37 aonoto Exp $
|
|
3 */
|
|
4
|
|
5 /*
|
|
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 * This file is part of FreeWnn.
|
|
8 *
|
|
9 * Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
10 * 1987, 1988, 1989, 1990, 1991, 1992
|
|
11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
13 * Copyright FreeWnn Project 1999, 2000
|
|
14 *
|
|
15 * Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
16 *
|
|
17 * This library is free software; you can redistribute it and/or
|
|
18 * modify it under the terms of the GNU Lesser General Public
|
|
19 * License as published by the Free Software Foundation; either
|
|
20 * version 2 of the License, or (at your option) any later version.
|
|
21 *
|
|
22 * This library is distributed in the hope that it will be useful,
|
|
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
25 * Lesser General Public License for more details.
|
|
26 *
|
|
27 * You should have received a copy of the GNU Lesser General Public
|
|
28 * License along with this library; if not, write to the
|
|
29 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
30 * Boston, MA 02111-1307, USA.
|
|
31 */
|
|
32
|
|
33 #ifndef WNN_JH_H
|
|
34 #define WNN_JH_H
|
|
35
|
|
36 /*
|
|
37 * header file for jisho structure program.
|
|
38 */
|
|
39
|
|
40 /* The following defin and structure definition
|
|
41 * are concerned with ASCII (UJIS) files.
|
|
42 */
|
|
43
|
|
44 #define COMMENT "\\comment"
|
|
45 #define TOTAL "\\total"
|
|
46 #define ASC_GIJI "\\giji"
|
|
47 #define HINSI "\\hinsi"
|
|
48 #ifdef CHINESE
|
|
49 #define CHINSI "\\cixing"
|
|
50 #define PINYIN "\\Pinyin"
|
|
51 #define ZHUYIN "\\Zhuyin"
|
|
52 #define BIXING "\\BiXing"
|
|
53 #endif
|
|
54 #define DIC_NO "\\dic_no"
|
|
55
|
|
56 #define REV_NORMAL 2
|
|
57 #define REVERSE 1
|
|
58 #define NORMAL 0
|
|
59
|
|
60 #ifndef JS
|
|
61 struct je
|
|
62 {
|
|
63 w_char *yomi;
|
|
64 w_char *kan; /* Historically kanji is used so use kan. */
|
|
65 w_char *comm;
|
|
66 UCHAR *kanji;
|
|
67 unsigned int hinsi;
|
|
68 #ifdef CONVERT_with_SiSheng
|
|
69 unsigned int ss;
|
|
70 #endif
|
|
71 unsigned int hindo;
|
|
72 int serial; /* Only used for rev_dic */
|
|
73 };
|
|
74
|
|
75 extern struct je **jeary;
|
|
76 #endif /* JS */
|
|
77
|
|
78 extern w_char file_comment[];
|
|
79 extern w_char hinsi_list[];
|
|
80
|
|
81 /*
|
|
82 * Used in atod and others parameters.
|
|
83 */
|
|
84
|
|
85 #define HEAP_PER_LINE 10 /* avelage of kanji + comment bytes */
|
|
86 #define YOMI_PER_LINE 3 /* avelage of yomi length(in w_char) */
|
|
87 #define LINE_SIZE 1024
|
|
88 #define BADLMAX 3
|
|
89 #define YOMI_KINDS (1 << 16) /* Yomi characters Maximal */
|
|
90 #define MAX_ENTRIES 70000 /* default of max-entries for atod */
|
|
91 #define DEF_ENTRIES 10000
|
|
92
|
|
93 #define HEAPINC 1000
|
|
94
|
|
95
|
|
96 #endif /* WNN_JH_H */
|