1 /*
2  * $Id: demcom.h,v 2.21.2.1 2000/08/04 05:37:12 kaneda Exp $
3  */
4 
5 /*
6 WNN6 CLIENT LIBRARY--SOFTWARE LICENSE TERMS AND CONDITIONS
7 
8 
9 Wnn6 Client Library :
10 (C) Copyright OMRON Corporation.       1995,1998,2000 all rights reserved.
11 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved.
12 
13 Wnn Software :
14 (C) Copyright Kyoto University Research Institute for Mathematical Sciences
15      1987, 1988, 1989, 1990, 1991, 1992, 1993
16 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993
17 (C) Copyright ASCTEC, Inc.  1987, 1988, 1989, 1990, 1991, 1992, 1993
18 
19 Preamble
20 
21 These Wnn6 Client Library--Software License Terms and Conditions
22  (the "License Agreement") shall state the conditions under which you are
23  permitted to copy, distribute or modify the software which can be used
24  to create Wnn6 Client Library (the "Wnn6 Client Library").  The License
25  Agreement can be freely copied and distributed verbatim, however, you
26  shall NOT add, delete or change anything on the License Agreement.
27 
28 OMRON Corporation and OMRON Software Co., Ltd. (collectively referred to
29  as "OMRON") jointly developed the Wnn6 Software (development code name
30  is FI-Wnn), based on the Wnn Software.  Starting from November, 1st, 1998,
31  OMRON publishes the source code of the Wnn6 Client Library, and OMRON
32  permits anyone to copy, distribute or change the Wnn6 Client Library under
33  the License Agreement.
34 
35 Wnn6 Client Library is based on the original version of Wnn developed by
36  Kyoto University Research Institute for Mathematical Sciences (KURIMS),
37  OMRON Corporation and ASTEC Inc.
38 
39 Article 1.  Definition.
40 
41 "Source Code" means the embodiment of the computer code, readable and
42  understandable by a programmer of ordinary skills.  It includes related
43  source code level system documentation, comments and procedural code.
44 
45 "Object File" means a file, in substantially binary form, which is directly
46  executable by a computer after linking applicable files.
47 
48 "Library" means a file, composed of several Object Files, which is directly
49  executable by a computer after linking applicable files.
50 
51 "Software" means a set of Source Code including information on its use.
52 
53 "Wnn6 Client Library" the computer program, originally supplied by OMRON,
54  which can be used to create Wnn6 Client Library.
55 
56 "Executable Module" means a file, created after linking Object Files or
57  Library, which is directly executable by a computer.
58 
59 "User" means anyone who uses the Wnn6 Client Library under the License
60  Agreement.
61 
62 Article 2.  Copyright
63 
64 2.1  OMRON Corporation and OMRON Software Co., Ltd. jointly own the Wnn6
65  Client Library, including, without limitation, its copyright.
66 
67 2.2  Following words followed by the above copyright notices appear
68  in all supporting documentation of software based on Wnn6 Client Library:
69 
70   This software is based on the original version of Wnn6 Client Library
71   developed by OMRON Corporation and OMRON Software Co., Ltd. and also based on
72   the original version of Wnn developed by Kyoto University Research Institute
73   for Mathematical Sciences (KURIMS), OMRON Corporation and ASTEC Inc.
74 
75 Article 3.  Grant
76 
77 3.1  A User is permitted to make and distribute verbatim copies of
78  the Wnn6 Client Library, including verbatim of copies of the License
79  Agreement, under the License Agreement.
80 
81 3.2  A User is permitted to modify the Wnn6 Client Library to create
82  Software ("Modified Software") under the License Agreement.  A User
83  is also permitted to make or distribute copies of Modified Software,
84  including verbatim copies of the License Agreement with the following
85  information.  Upon modifying the Wnn6 Client Library, a User MUST insert
86  comments--stating the name of the User, the reason for the modifications,
87  the date of the modifications, additional terms and conditions on the
88  part of the modifications if there is any, and potential risks of using
89  the Modified Software if they are known--right after the end of the
90  License Agreement (or the last comment, if comments are inserted already).
91 
92 3.3  A User is permitted to create Library or Executable Modules by
93  modifying the Wnn6 Client Library in whole or in part under the License
94  Agreement.  A User is also permitted to make or distribute copies of
95  Library or Executable Modules with verbatim copies of the License
96  Agreement under the License Agreement.  Upon modifying the Wnn6 Client
97  Library for creating Library or Executable Modules, except for porting
98  a computer, a User MUST add a text file to a package of the Wnn6 Client
99  Library, providing information on the name of the User, the reason for
100  the modifications, the date of the modifications, additional terms and
101  conditions on the part of the modifications if there is any, and potential
102  risks associated with using the modified Wnn6 Client Library, Library or
103  Executable Modules if they are known.
104 
105 3.4  A User is permitted to incorporate the Wnn6 Client Library in whole
106  or in part into another Software, although its license terms and
107  conditions may be different from the License Agreement, if such
108  incorporation or use associated with the incorporation does NOT violate
109  the License Agreement.
110 
111 Article 4. Warranty
112 
113 THE WNN6 CLIENT LIBRARY IS PROVIDED BY OMRON ON AN "AS IS" BAISIS.
114   OMRON EXPRESSLY DISLCIAMS ANY AND ALL WRRANTIES, EXPRESS OR IMPLIED,
115  INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY AND FITNESS
116  FOR A PARTICULAR PURPOSE, IN CONNECTION WITH THE WNN6 CLIENT LIBRARY
117  OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT LIBRARY.  IN NO EVENT
118  SHALL OMRON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE
119  OR CONSEQUENTIAL DAMAGES OF ANY KIND WHATSOEVER IN CONNECTION WITH THE
120  WNN6 CLIENT LIBRARY OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT
121 LIBRARY.
122 
123 ***************************************************************************
124 Wnn6 Client Library :
125 (C) Copyright OMRON Corporation.       1995,1998,2000 all rights reserved.
126 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved.
127 
128 Wnn Software :
129 (C) Copyright Kyoto University Research Institute for Mathematical Sciences
130      1987, 1988, 1989, 1990, 1991, 1992, 1993
131 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993
132 (C) Copyright ASCTEC, Inc.  1987, 1988, 1989, 1990, 1991, 1992, 1993
133 ***************************************************************************
134 
135 Comments on Modifications:
136 */
137 
138 /*	Version 4.0
139  */
140 /*
141 	demcom.h
142 	entry functions	definitions
143 */
144 #ifndef _DEMCOM_H_
145 #define _DEMCOM_H_
146 
147 #define JLIB_VERSION    0x4F00	/* For FI-Wnn */
148 
149 /*
150  *	Demon Commands
151  */
152 #define	JS_VERSION	0x00
153 #define	JS_OPEN		0x01
154 /*	#define	JS_OPEN_IN	0x02	*/
155 #define	JS_CLOSE	0x03
156 #define	JS_CONNECT	0x05
157 #define	JS_DISCONNECT	0x06
158 #define	JS_ENV_EXIST	0x07
159 #define	JS_ENV_STICKY	0x08
160 #define	JS_ENV_UN_STICKY	0x09
161 
162 
163 #define	JS_KANREN	0x11
164 #define	JS_KANTAN_SHO	0x12
165 #define	JS_KANZEN_SHO	0x13
166 #define	JS_KANTAN_DAI	0x14
167 #define	JS_KANZEN_DAI	0x15
168 #define	JS_HINDO_SET	0x18
169 
170 
171 #define	JS_DIC_ADD	0x21
172 #define	JS_DIC_DELETE	0x22
173 #define	JS_DIC_USE	0x23
174 #define	JS_DIC_LIST	0x24
175 #define	JS_DIC_INFO	0x25
176 
177 #define	JS_FUZOKUGO_SET	0x29
178 #define	JS_FUZOKUGO_GET	0x30
179 
180 
181 #define	JS_WORD_ADD	0x31
182 #define	JS_WORD_DELETE	0x32
183 #define	JS_WORD_SEARCH	0x33
184 #define	JS_WORD_SEARCH_BY_ENV	0x34
185 #define	JS_WORD_INFO	0x35
186 #define JS_WORD_COMMENT_SET 0x36
187 
188 #define	JS_PARAM_SET	0x41
189 #define	JS_PARAM_GET	0x42
190 
191 #define	JS_MKDIR	0x51
192 #define	JS_ACCESS	0x52
193 #define	JS_WHO		0x53
194 #define	JS_ENV_LIST	0x55
195 #define	JS_FILE_LIST_ALL	0x56
196 #define	JS_DIC_LIST_ALL	0x57
197 
198 #define	JS_FILE_READ	0x61
199 #define	JS_FILE_WRITE	0x62
200 #define	JS_FILE_SEND	0x63
201 #define	JS_FILE_RECEIVE	0x64
202 
203 #define	JS_HINDO_FILE_CREATE	0x65
204 #define	JS_DIC_FILE_CREATE	0x66
205 #define JS_FILE_REMOVE	0x67
206 
207 #define	JS_FILE_LIST	0x68
208 #define	JS_FILE_INFO	0x69
209 #define	JS_FILE_LOADED	0x6A
210 #define	JS_FILE_LOADED_LOCAL	0x6B
211 #define	JS_FILE_DISCARD	0x6C
212 #define JS_FILE_COMMENT_SET 0x6D
213 #define JS_FILE_PASSWORD_SET 0x6E /* 89/9/8 */
214 
215 #define	JS_FILE_STAT	0x6F
216 #define JS_KILL		0x70
217 
218 #define	JS_HINDO_FILE_CREATE_CLIENT	0x71
219 #define	JS_HINSI_LIST			0x72
220 #define JS_HINSI_NAME	0x73
221 #define JS_HINSI_NUMBER	0x74
222 #define JS_HINSI_DICTS  0x75
223 #define JS_HINSI_TABLE_SET 0x76
224 
225 /*
226  * Hideyuki Kishiba (Jul. 8, 1994)
227  * Start packets are added from 4.F00(FI-Wnn).
228  * All packets have 0xF00000 as offset.
229  */
230 #define JS_VERSION_OFFSET_OF_FIWNN	0xF00000
231 
232 
233 /* Access Control packets */
234 #define JS_ACCESS_ADD_HOST		(JS_VERSION_OFFSET_OF_FIWNN|0x11)
235 #define JS_ACCESS_ADD_USER		(JS_VERSION_OFFSET_OF_FIWNN|0x12)
236 #define JS_ACCESS_REMOVE_HOST		(JS_VERSION_OFFSET_OF_FIWNN|0x13)
237 #define JS_ACCESS_REMOVE_USER		(JS_VERSION_OFFSET_OF_FIWNN|0x14)
238 #define JS_ACCESS_ENABLE		(JS_VERSION_OFFSET_OF_FIWNN|0x15)
239 #define JS_ACCESS_DISABLE		(JS_VERSION_OFFSET_OF_FIWNN|0x16)
240 #define JS_ACCESS_GET_INFO		(JS_VERSION_OFFSET_OF_FIWNN|0x17)
241 
242 /* Temprary registration for Katakana and BunsetsuGiri packet */
243 #define JS_TEMPORARY_DIC_ADD		(JS_VERSION_OFFSET_OF_FIWNN|0x21)
244 #define JS_TEMPORARY_DIC_DELETE		(JS_VERSION_OFFSET_OF_FIWNN|0x22)
245 #define JS_AUTOLEARNING_WORD_ADD	(JS_VERSION_OFFSET_OF_FIWNN|0x23)
246 #define JS_SET_AUTOLEARNING_DIC		(JS_VERSION_OFFSET_OF_FIWNN|0x24)
247 #define JS_GET_AUTOLEARNING_DIC		(JS_VERSION_OFFSET_OF_FIWNN|0x25)
248 #define JS_IS_LOADED_TEMPORARY_DIC	(JS_VERSION_OFFSET_OF_FIWNN|0x26)
249 #define JS_TEMPORARY_WORD_ADD		(JS_VERSION_OFFSET_OF_FIWNN|0x27)
250 
251 /* For Wnn5 */
252 #define JS_SET_HENKAN_ENV		(JS_VERSION_OFFSET_OF_FIWNN|0x31)
253 #define JS_GET_HENKAN_ENV		(JS_VERSION_OFFSET_OF_FIWNN|0x32)
254 #define JS_SET_HENKAN_HINSI		(JS_VERSION_OFFSET_OF_FIWNN|0x33)
255 #define JS_GET_HENKAN_HINSI		(JS_VERSION_OFFSET_OF_FIWNN|0x34)
256 #define JS_HENKAN_WITH_DATA		(JS_VERSION_OFFSET_OF_FIWNN|0x35)
257 
258 
259 
260 /* For FI-Wnn */
261 #define JS_FI_DIC_ADD                   (JS_VERSION_OFFSET_OF_FIWNN|0x61)
262 #define JS_FI_HINDO_FILE_CREATE         (JS_VERSION_OFFSET_OF_FIWNN|0x62)
263 #define JS_FI_HINDO_FILE_CREATE_CLIENT  (JS_VERSION_OFFSET_OF_FIWNN|0x63)
264 #define JS_DIC_FILE_CREATE_CLIENT   	(JS_VERSION_OFFSET_OF_FIWNN|0x64)
265 #define JS_FI_KANREN		   	(JS_VERSION_OFFSET_OF_FIWNN|0x65)
266 #define JS_SET_FI_PRIORITY		(JS_VERSION_OFFSET_OF_FIWNN|0x66)
267 #define JS_OPTIMIZE_FI			(JS_VERSION_OFFSET_OF_FIWNN|0x67)
268 
269 /* For FI-Wnn ikeiji */
270 #define JS_HENKAN_IKEIJI                (JS_VERSION_OFFSET_OF_FIWNN|0x6f)
271 
272 /* For wnnoffline */
273 #define JS_LOCK				(JS_VERSION_OFFSET_OF_FIWNN|0x71)
274 #define JS_UNLOCK			(JS_VERSION_OFFSET_OF_FIWNN|0x72)
275 
276 /* For dictutil */
277 #define JS_FI_DIC_LIST			(JS_VERSION_OFFSET_OF_FIWNN|0x81)
278 #define JS_FI_DIC_LIST_ALL		(JS_VERSION_OFFSET_OF_FIWNN|0x82)
279 #define JS_FUZOKUGO_LIST		(JS_VERSION_OFFSET_OF_FIWNN|0x83)
280 
281 
282 #endif /* _DEMCOM_H_ */
283