1 /*
2  */
3 
4 /*
5 WNN7 CLIENT LIBRARY--SOFTWARE LICENSE TERMS AND CONDITIONS
6 
7 
8 Wnn7 Client Library :
9 (C) Copyright OMRON Corporation.       1995,1998,2000,2001 all rights reserved.
10 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000,2001 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 Wnn7 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 Wnn7 Client Library (the "Wnn7 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 Wnn7 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 Wnn7 Client Library, and OMRON
31  permits anyone to copy, distribute or change the Wnn7 Client Library under
32  the License Agreement.
33 
34 Wnn7 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 "Wnn7 Client Library" the computer program, originally supplied by OMRON,
53  which can be used to create Wnn7 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 Wnn7 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 Wnn7
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 Wnn7 Client Library:
68 
69   This software is based on the original version of Wnn7 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 Wnn7 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 Wnn7 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 Wnn7 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 Wnn7 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 Wnn7 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 Wnn7 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 Wnn7 Client Library, Library or
102  Executable Modules if they are known.
103 
104 3.4  A User is permitted to incorporate the Wnn7 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 WNN7 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 WNN7 CLIENT LIBRARY
116  OR THE USE OR OTHER DEALING IN THE WNN7 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  WNN7 CLIENT LIBRARY OR THE USE OR OTHER DEALING IN THE WNN7 CLIENT
120 LIBRARY.
121 
122 ***************************************************************************
123 Wnn7 Client Library :
124 (C) Copyright OMRON Corporation.       1995,1998,2000,2001 all rights reserved.
125 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000,2001 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 
137 /*	Version 4.0
138  */
139 /*
140 	demcom.h
141 	entry functions	definitions
142 */
143 #ifndef _DEMCOM_H_
144 #define _DEMCOM_H_
145 
146 /* For Wnn6
147 #define JLIB_VERSION    0x4F00
148 */
149 
150 /* For Wnn7 */
151 #define JLIB_VERSION    0x4F01
152 
153 /*
154  *	Demon Commands
155  */
156 #define	JS_VERSION	0x00
157 #define	JS_OPEN		0x01
158 /*	#define	JS_OPEN_IN	0x02	*/
159 #define	JS_CLOSE	0x03
160 #define	JS_CONNECT	0x05
161 #define	JS_DISCONNECT	0x06
162 #define	JS_ENV_EXIST	0x07
163 #define	JS_ENV_STICKY	0x08
164 #define	JS_ENV_UN_STICKY	0x09
165 
166 
167 #define	JS_KANREN	0x11
168 #define	JS_KANTAN_SHO	0x12
169 #define	JS_KANZEN_SHO	0x13
170 #define	JS_KANTAN_DAI	0x14
171 #define	JS_KANZEN_DAI	0x15
172 #define	JS_HINDO_SET	0x18
173 
174 
175 #define	JS_DIC_ADD	0x21
176 #define	JS_DIC_DELETE	0x22
177 #define	JS_DIC_USE	0x23
178 #define	JS_DIC_LIST	0x24
179 #define	JS_DIC_INFO	0x25
180 
181 #define	JS_FUZOKUGO_SET	0x29
182 #define	JS_FUZOKUGO_GET	0x30
183 
184 
185 #define	JS_WORD_ADD	0x31
186 #define	JS_WORD_DELETE	0x32
187 #define	JS_WORD_SEARCH	0x33
188 #define	JS_WORD_SEARCH_BY_ENV	0x34
189 #define	JS_WORD_INFO	0x35
190 #define JS_WORD_COMMENT_SET 0x36
191 
192 #define	JS_PARAM_SET	0x41
193 #define	JS_PARAM_GET	0x42
194 
195 #define	JS_MKDIR	0x51
196 #define	JS_ACCESS	0x52
197 #define	JS_WHO		0x53
198 #define	JS_ENV_LIST	0x55
199 #define	JS_FILE_LIST_ALL	0x56
200 #define	JS_DIC_LIST_ALL	0x57
201 
202 #define	JS_FILE_READ	0x61
203 #define	JS_FILE_WRITE	0x62
204 #define	JS_FILE_SEND	0x63
205 #define	JS_FILE_RECEIVE	0x64
206 
207 #define	JS_HINDO_FILE_CREATE	0x65
208 #define	JS_DIC_FILE_CREATE	0x66
209 #define JS_FILE_REMOVE	0x67
210 
211 #define	JS_FILE_LIST	0x68
212 #define	JS_FILE_INFO	0x69
213 #define	JS_FILE_LOADED	0x6A
214 #define	JS_FILE_LOADED_LOCAL	0x6B
215 #define	JS_FILE_DISCARD	0x6C
216 #define JS_FILE_COMMENT_SET 0x6D
217 #define JS_FILE_PASSWORD_SET 0x6E /* 89/9/8 */
218 
219 #define	JS_FILE_STAT	0x6F
220 #define JS_KILL		0x70
221 
222 #define	JS_HINDO_FILE_CREATE_CLIENT	0x71
223 #define	JS_HINSI_LIST			0x72
224 #define JS_HINSI_NAME	0x73
225 #define JS_HINSI_NUMBER	0x74
226 #define JS_HINSI_DICTS  0x75
227 #define JS_HINSI_TABLE_SET 0x76
228 
229 /*
230  * (Jul. 8, 1994)
231  * Start packets are added from 4.F00(FI-Wnn).
232  * All packets have 0xF00000 as offset.
233  */
234 #define JS_VERSION_OFFSET_OF_FIWNN	0xF00000
235 
236 
237 /* Access Control packets */
238 #define JS_ACCESS_ADD_HOST		(JS_VERSION_OFFSET_OF_FIWNN|0x11)
239 #define JS_ACCESS_ADD_USER		(JS_VERSION_OFFSET_OF_FIWNN|0x12)
240 #define JS_ACCESS_REMOVE_HOST		(JS_VERSION_OFFSET_OF_FIWNN|0x13)
241 #define JS_ACCESS_REMOVE_USER		(JS_VERSION_OFFSET_OF_FIWNN|0x14)
242 #define JS_ACCESS_ENABLE		(JS_VERSION_OFFSET_OF_FIWNN|0x15)
243 #define JS_ACCESS_DISABLE		(JS_VERSION_OFFSET_OF_FIWNN|0x16)
244 #define JS_ACCESS_GET_INFO		(JS_VERSION_OFFSET_OF_FIWNN|0x17)
245 
246 /* Temprary registration for Katakana and BunsetsuGiri packet */
247 #define JS_TEMPORARY_DIC_ADD		(JS_VERSION_OFFSET_OF_FIWNN|0x21)
248 #define JS_TEMPORARY_DIC_DELETE		(JS_VERSION_OFFSET_OF_FIWNN|0x22)
249 #define JS_AUTOLEARNING_WORD_ADD	(JS_VERSION_OFFSET_OF_FIWNN|0x23)
250 #define JS_SET_AUTOLEARNING_DIC		(JS_VERSION_OFFSET_OF_FIWNN|0x24)
251 #define JS_GET_AUTOLEARNING_DIC		(JS_VERSION_OFFSET_OF_FIWNN|0x25)
252 #define JS_IS_LOADED_TEMPORARY_DIC	(JS_VERSION_OFFSET_OF_FIWNN|0x26)
253 #define JS_TEMPORARY_WORD_ADD		(JS_VERSION_OFFSET_OF_FIWNN|0x27)
254 
255 /* For Wnn5 */
256 #define JS_SET_HENKAN_ENV		(JS_VERSION_OFFSET_OF_FIWNN|0x31)
257 #define JS_GET_HENKAN_ENV		(JS_VERSION_OFFSET_OF_FIWNN|0x32)
258 #define JS_SET_HENKAN_HINSI		(JS_VERSION_OFFSET_OF_FIWNN|0x33)
259 #define JS_GET_HENKAN_HINSI		(JS_VERSION_OFFSET_OF_FIWNN|0x34)
260 #define JS_HENKAN_WITH_DATA		(JS_VERSION_OFFSET_OF_FIWNN|0x35)
261 
262 /* For FI-Wnn */
263 #define JS_FI_DIC_ADD                   (JS_VERSION_OFFSET_OF_FIWNN|0x61)
264 #define JS_FI_HINDO_FILE_CREATE         (JS_VERSION_OFFSET_OF_FIWNN|0x62)
265 #define JS_FI_HINDO_FILE_CREATE_CLIENT  (JS_VERSION_OFFSET_OF_FIWNN|0x63)
266 #define JS_DIC_FILE_CREATE_CLIENT   	(JS_VERSION_OFFSET_OF_FIWNN|0x64)
267 #define JS_FI_KANREN		   	(JS_VERSION_OFFSET_OF_FIWNN|0x65)
268 #define JS_SET_FI_PRIORITY		(JS_VERSION_OFFSET_OF_FIWNN|0x66)
269 #define JS_OPTIMIZE_FI			(JS_VERSION_OFFSET_OF_FIWNN|0x67)
270 
271 /* For FI-Wnn ikeiji */
272 #define JS_HENKAN_IKEIJI                (JS_VERSION_OFFSET_OF_FIWNN|0x6f)
273 
274 /* For wnnoffline */
275 #define JS_LOCK				(JS_VERSION_OFFSET_OF_FIWNN|0x71)
276 #define JS_UNLOCK			(JS_VERSION_OFFSET_OF_FIWNN|0x72)
277 
278 /* For dictutil */
279 #define JS_FI_DIC_LIST			(JS_VERSION_OFFSET_OF_FIWNN|0x81)
280 #define JS_FI_DIC_LIST_ALL		(JS_VERSION_OFFSET_OF_FIWNN|0x82)
281 #define JS_FUZOKUGO_LIST		(JS_VERSION_OFFSET_OF_FIWNN|0x83)
282 
283 
284 /* For Wnn7 */
285 #define JS_VERSION_OFFSET_OF_WNN7	0xF01000
286 
287 /* for ����ͽ¬ 2000.6 */
288 #define JS_YOSOKU_INIT                 (JS_VERSION_OFFSET_OF_WNN7|0x01)
289 #define JS_YOSOKU_FREE                 (JS_VERSION_OFFSET_OF_WNN7|0x02)
290 #define JS_YOSOKU_YOSOKU               (JS_VERSION_OFFSET_OF_WNN7|0x03)
291 #define JS_YOSOKU_TOROKU               (JS_VERSION_OFFSET_OF_WNN7|0x04)
292 #define JS_YOSOKU_SELECTED_CAND        (JS_VERSION_OFFSET_OF_WNN7|0x05)
293 #define JS_YOSOKU_DELETE_CAND          (JS_VERSION_OFFSET_OF_WNN7|0x06)
294 #define JS_YOSOKU_CANCEL_LATEST_TOROKU (JS_VERSION_OFFSET_OF_WNN7|0x07)
295 #define JS_YOSOKU_RESET_PRE_YOSOKU     (JS_VERSION_OFFSET_OF_WNN7|0x08)
296 #define JS_YOSOKU_IKKATSU_TOROKU       (JS_VERSION_OFFSET_OF_WNN7|0x09)
297 #define JS_YOSOKU_SAVE_DATALIST        (JS_VERSION_OFFSET_OF_WNN7|0x0A)
298 #define JS_YOSOKU_INIT_TIME_KEYDATA    (JS_VERSION_OFFSET_OF_WNN7|0x0B)
299 #define JS_YOSOKU_INIT_INPUTINFO       (JS_VERSION_OFFSET_OF_WNN7|0x0C)
300 #define JS_YOSOKU_SET_USER_INPUTINFO   (JS_VERSION_OFFSET_OF_WNN7|0x0D)
301 #define JS_YOSOKU_SET_TIMEINFO         (JS_VERSION_OFFSET_OF_WNN7|0x0E)
302 #define JS_YOSOKU_STATUS               (JS_VERSION_OFFSET_OF_WNN7|0x0F)
303 #define JS_YOSOKU_SET_PARAM            (JS_VERSION_OFFSET_OF_WNN7|0x10)
304 #define JS_YOSOKU_IKKATSU_TOROKU_INIT  (JS_VERSION_OFFSET_OF_WNN7|0x11)
305 #define JS_YOSOKU_IKKATSU_TOROKU_END   (JS_VERSION_OFFSET_OF_WNN7|0x12)
306 
307 /* FOR RENSOU HENKAN */
308 /*   NTWnn ���ή��  */
309 #define JS_HENKAN_ASSOC					(JS_VERSION_OFFSET_OF_WNN7|0x13)
310 
311 #endif /* _DEMCOM_H_ */
312