1 /*
2  * $Id: jh.h,v 2.2.2.1 2000/08/04 05:37:14 kaneda Exp $
3  */
4 /*
5 WNN6 CLIENT LIBRARY--SOFTWARE LICENSE TERMS AND CONDITIONS
6 
7 
8 Wnn6 Client Library :
9 (C) Copyright OMRON Corporation.       1995,1998,2000 all rights reserved.
10 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved.
11 
12 Wnn Software :
13 (C) Copyright Kyoto University Research Institute for Mathematical Sciences
14      1987, 1988, 1989, 1990, 1991, 1992, 1993
15 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993
16 (C) Copyright ASCTEC, Inc.  1987, 1988, 1989, 1990, 1991, 1992, 1993
17 
18 Preamble
19 
20 These Wnn6 Client Library--Software License Terms and Conditions
21  (the "License Agreement") shall state the conditions under which you are
22  permitted to copy, distribute or modify the software which can be used
23  to create Wnn6 Client Library (the "Wnn6 Client Library").  The License
24  Agreement can be freely copied and distributed verbatim, however, you
25  shall NOT add, delete or change anything on the License Agreement.
26 
27 OMRON Corporation and OMRON Software Co., Ltd. (collectively referred to
28  as "OMRON") jointly developed the Wnn6 Software (development code name
29  is FI-Wnn), based on the Wnn Software.  Starting from November, 1st, 1998,
30  OMRON publishes the source code of the Wnn6 Client Library, and OMRON
31  permits anyone to copy, distribute or change the Wnn6 Client Library under
32  the License Agreement.
33 
34 Wnn6 Client Library is based on the original version of Wnn developed by
35  Kyoto University Research Institute for Mathematical Sciences (KURIMS),
36  OMRON Corporation and ASTEC Inc.
37 
38 Article 1.  Definition.
39 
40 "Source Code" means the embodiment of the computer code, readable and
41  understandable by a programmer of ordinary skills.  It includes related
42  source code level system documentation, comments and procedural code.
43 
44 "Object File" means a file, in substantially binary form, which is directly
45  executable by a computer after linking applicable files.
46 
47 "Library" means a file, composed of several Object Files, which is directly
48  executable by a computer after linking applicable files.
49 
50 "Software" means a set of Source Code including information on its use.
51 
52 "Wnn6 Client Library" the computer program, originally supplied by OMRON,
53  which can be used to create Wnn6 Client Library.
54 
55 "Executable Module" means a file, created after linking Object Files or
56  Library, which is directly executable by a computer.
57 
58 "User" means anyone who uses the Wnn6 Client Library under the License
59  Agreement.
60 
61 Article 2.  Copyright
62 
63 2.1  OMRON Corporation and OMRON Software Co., Ltd. jointly own the Wnn6
64  Client Library, including, without limitation, its copyright.
65 
66 2.2  Following words followed by the above copyright notices appear
67  in all supporting documentation of software based on Wnn6 Client Library:
68 
69   This software is based on the original version of Wnn6 Client Library
70   developed by OMRON Corporation and OMRON Software Co., Ltd. and also based on
71   the original version of Wnn developed by Kyoto University Research Institute
72   for Mathematical Sciences (KURIMS), OMRON Corporation and ASTEC Inc.
73 
74 Article 3.  Grant
75 
76 3.1  A User is permitted to make and distribute verbatim copies of
77  the Wnn6 Client Library, including verbatim of copies of the License
78  Agreement, under the License Agreement.
79 
80 3.2  A User is permitted to modify the Wnn6 Client Library to create
81  Software ("Modified Software") under the License Agreement.  A User
82  is also permitted to make or distribute copies of Modified Software,
83  including verbatim copies of the License Agreement with the following
84  information.  Upon modifying the Wnn6 Client Library, a User MUST insert
85  comments--stating the name of the User, the reason for the modifications,
86  the date of the modifications, additional terms and conditions on the
87  part of the modifications if there is any, and potential risks of using
88  the Modified Software if they are known--right after the end of the
89  License Agreement (or the last comment, if comments are inserted already).
90 
91 3.3  A User is permitted to create Library or Executable Modules by
92  modifying the Wnn6 Client Library in whole or in part under the License
93  Agreement.  A User is also permitted to make or distribute copies of
94  Library or Executable Modules with verbatim copies of the License
95  Agreement under the License Agreement.  Upon modifying the Wnn6 Client
96  Library for creating Library or Executable Modules, except for porting
97  a computer, a User MUST add a text file to a package of the Wnn6 Client
98  Library, providing information on the name of the User, the reason for
99  the modifications, the date of the modifications, additional terms and
100  conditions on the part of the modifications if there is any, and potential
101  risks associated with using the modified Wnn6 Client Library, Library or
102  Executable Modules if they are known.
103 
104 3.4  A User is permitted to incorporate the Wnn6 Client Library in whole
105  or in part into another Software, although its license terms and
106  conditions may be different from the License Agreement, if such
107  incorporation or use associated with the incorporation does NOT violate
108  the License Agreement.
109 
110 Article 4. Warranty
111 
112 THE WNN6 CLIENT LIBRARY IS PROVIDED BY OMRON ON AN "AS IS" BAISIS.
113   OMRON EXPRESSLY DISLCIAMS ANY AND ALL WRRANTIES, EXPRESS OR IMPLIED,
114  INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY AND FITNESS
115  FOR A PARTICULAR PURPOSE, IN CONNECTION WITH THE WNN6 CLIENT LIBRARY
116  OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT LIBRARY.  IN NO EVENT
117  SHALL OMRON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE
118  OR CONSEQUENTIAL DAMAGES OF ANY KIND WHATSOEVER IN CONNECTION WITH THE
119  WNN6 CLIENT LIBRARY OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT
120 LIBRARY.
121 
122 ***************************************************************************
123 Wnn6 Client Library :
124 (C) Copyright OMRON Corporation.       1995,1998,2000 all rights reserved.
125 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved.
126 
127 Wnn Software :
128 (C) Copyright Kyoto University Research Institute for Mathematical Sciences
129      1987, 1988, 1989, 1990, 1991, 1992, 1993
130 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993
131 (C) Copyright ASCTEC, Inc.  1987, 1988, 1989, 1990, 1991, 1992, 1993
132 ***************************************************************************
133 
134 Comments on Modifications:
135 */
136 /*	Version 4.0
137  */
138 /*
139   header file for jisho structure program.
140 */
141 #ifndef _JH_H_
142 #define _JH_H_
143 
144 /* The following defin and structure definition
145  * are concerned with ASCII (UJIS) files.
146  */
147 
148 #define COMMENT "\\comment"
149 #define TOTAL "\\total"
150 #define ASC_GIJI "\\giji"
151 #define HINSI "\\hinsi"
152 #ifdef CHINESE
153 #define CHINSI "\\cixing"
154 #define PINYIN "\\Pinyin"
155 #define ZHUYIN "\\Zhuyin"
156 #define BIXING "\\BiXing"
157 #endif
158 #define DIC_NO "\\dic_no"
159 
160 #define REV_NORMAL 2
161 #define REVERSE 1
162 #define NORMAL  0
163 
164 #ifndef	JS
165 struct je {
166   w_char *yomi;
167   w_char *kan;			/* Historically kanji is used so use kan. */
168   w_char *comm;
169   UCHAR *kanji;
170   unsigned int hinsi;
171 #ifdef	CONVERT_with_SiSheng
172   unsigned int ss;
173 #endif
174   unsigned int hindo;
175   int serial;			/* Only used for rev_dic */
176 };
177 
178 extern struct je **jeary;
179 #endif	/* JS */
180 
181 extern w_char file_comment[];
182 extern w_char hinsi_list[];
183 
184 /*
185  * Used in atod and others parameters.
186  */
187 
188 #define HEAP_PER_LINE 10	/* avelage of kanji + comment bytes */
189 #define YOMI_PER_LINE 3		/* avelage of yomi length(in w_char)*/
190 #define LINE_SIZE 1024
191 #define BADLMAX 3
192 #define YOMI_KINDS (1 << 16)   /* Yomi characters Maximal */
193 #define MAX_ENTRIES 70000	/* default of max-entries for atod */
194 #define DEF_ENTRIES 10000
195 
196 #define HEAPINC 1000
197 
198 #endif /* _JH_H_ */
199