1 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * sample.c (char db_dir): Deleted.
4 (main): Use ${chise_db_dir}/db/ for the location of data-source.
6 * Makefile.in (prefix): Use @prefix@.
7 (exec_prefix): Use @exec_prefix@.
8 (libdir): Use @libdir@.
9 (libexecdir): New variable.
10 (DB_INSTALLDIR): Deleted.
11 (DB_DIR): New variable.
12 (chise.lo): Specify DB_DIR.
13 (install): Don't call install.db.
14 (install.db): Deleted.
16 * chise.h, chise.c (chise_db_dir): New variable.
17 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
18 as the type of location.
20 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * chise.h (chise_feature_setup_db): New prototype.
23 (chise_ccs_setup_db): Likewise.
25 * chise.c (chise_feature_setup_db): Changed to public function.
26 (chise_ccs_setup_db): New function.
27 (chise_ccs_decode): Use `chise_ccs_setup_db'.
28 (chise_ccs_set_decoded_char): Likewise.
30 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
32 * chise.c (CHISE_Attribute_Table_open): Create required
33 directories when running with create mode.
35 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
37 * chise.h (chise_feature_sync): New prototype.
38 (chise_char_set_feature_value): New prototype.
39 (chise_ds_load_char_feature_value): New inline function.
41 * chise.c (chise_feature_sync): New function.
42 (chise_char_set_feature_value): New function.
44 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
46 * sample.c (main): Use `chise_ds_decode_char' instead of
47 `chise_ds_get_ccs' and `chise_ccs_decode'.
49 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
51 (chise_ccs_set_decoded_char): Likewise.
53 * chise.h (chise_ds_decode_char): New inline function.
55 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
58 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
59 - `chise_ds_close' is renamed to `CHISE_DS_close'.
61 * name.c: Modify to avoid warning.
63 * chise-name.h (chise_make_name_table): Modify to avoid warning.
65 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
67 (CHISE_Attribute_Table_open): Renamed from
68 `chise_open_attribute_table'.
69 (CHISE_Attribute_Table_close): Renamed from
70 `chise_close_attribute_table'.
71 (chise_attribute_table_get): Renamed from
72 `chise_get_attribute_table'.
73 (chise_attribute_table_put): Renamed from
74 `chise_put_attribute_table'.
75 (CHISE_DS_open): Renamed from `chise_open_data_source'.
76 (CHISE_DS_close): Renamed from `chise_ds_close'.
77 (chise_feature_setup_db): New function.
78 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
79 (chise_char_gets_feature_value): Likewise.
80 (chise_char_feature_value_iterate): Likewise.
82 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
83 (chise.lo): Add dependency on sysdep.h.
85 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
86 (CHISE_DS_close): Renamed from `chise_ds_close'.
88 * sysdep.h: New file [separate from chise.c].
90 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
92 * chise.h (chise_ds_open_feature_table): Abolished.
93 (chise_ft_close): Likewise.
95 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
97 * sample.c: Update for the latest API.
99 * chise.c (struct CHISE_DS): Add new member `subtype' and
101 (chise_open_data_source): Add new arguments `subtype' and
103 (chise_ds_get_feature): Delete arguments `real_subtype',
104 `accessmask', `modemask'.
105 (chise_ds_get_ccs): Likewise.
106 (struct CHISE_Feature_Table): Add new member `name' and `access'.
107 (chise_ds_open_feature_table): Delete arguments `real_subtype',
108 `accessmask', `modemask'.
109 (chise_ft_close): Release `table->name'.
110 (chise_char_load_feature_value): Setup `table->db'.
111 (chise_char_gets_feature_value): Likewise.
112 (chise_char_feature_value_iterate): Return an integer value; setup
114 (struct CHISE_CCS_Table): Add new member `name' and `access'.
115 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
116 `accessmask', `modemask'.
117 (chise_ccst_close): Release `table->name'.
118 (chise_ccs_sync): New function.
119 (chise_ccs_decode): Setup `ccs->db'.
120 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
123 * chise.h (chise_open_data_source): Add new arguments `subtype'
125 (chise_ds_get_feature): Delete arguments `real_subtype',
126 `accessmask', `modemask'.
127 (chise_char_feature_value_iterate): Return an integer value.
128 (chise_char_feature_str_iterate): Comment out.
129 (chise_ds_open_feature_table): Delete arguments `real_subtype',
130 `accessmask', `modemask'.
131 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
133 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
134 (chise_ccs_sync): New prototype.
135 (chise_ds_open_ccs_table): Abolished.
136 (int chise_ccst_close): Abolished.
138 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
140 * sample.c (test_map_func): Modify for
141 chise_char_feature_value_iterate.
142 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
143 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
144 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
145 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
146 use `chise_char_gets_feature_value' instead of
147 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
148 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
150 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
152 * chise.c: Include "chise-name.h".
153 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
154 (chise_open_data_source): Setup ds->feature_names and
156 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
157 (chise_ds_get_feature): New function.
158 (chise_ds_get_ccs): New function.
159 (chise_char_load_feature_value): Renamed from
160 `chise_ft_get_value'; modify interface.
161 (chise_char_gets_feature_value): New function.
162 (chise_char_feature_value_iterate): Renamed from
163 `chise_ft_iterate'; modify interface.
164 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
165 (chise_ds_open_ccs_table): Renamed from
166 `chise_ds_open_decoding_table'.
167 (chise_ccst_close): Renamed from `chise_dt_close'.
168 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
169 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
171 * chise.h (CHISE_Feature): New type.
172 (chise_ds_get_feature): New prototype.
173 (chise_char_load_feature_value): Renamed from
174 `chise_ft_get_value'; modify interface.
175 (chise_char_gets_feature_value): New prototype.
176 (chise_char_feature_value_iterate): Renamed from
177 `chise_ft_iterate'; modify interface.
178 (chise_char_feature_str_iterate): New prototype.
179 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
180 (CHISE_CCS): New type.
181 (chise_ds_get_ccs): New prototype.
182 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
183 (chise_ds_open_ccs_table): Renamed from
184 `chise_ds_open_decoding_table'.
185 (chise_ccst_close): Renamed from `chise_dt_close'.
186 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
187 (chise_decode_char): Deleted.
188 (chise_get_feature): Deleted.
190 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
192 * name.c: Include "chise-name.h".
193 (chise_name_table_put): Use <const unsigned char*> instead of
194 <unsigned char*> for key.
195 (chise_name_table_get): Likewise.
197 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
198 instead of <unsigned char*> for key.
199 (chise_name_table_get): Likewise.
201 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
203 * Makefile.in (HEADERS): New variable.
204 (OBJS): New variable.
205 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
206 (chise.lo): Depends on config.h.
207 (name.lo): New target.
208 (install.h): Refer $(HEADERS).
210 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
212 * chise-name.h, name.c: New files.
214 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
216 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
217 CHISE_Attribute_Table>.
218 (chise_put_attribute_table): New prototype.
219 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
220 instead of <DB*> as the type of member `db'.
221 (chise_ds_open_decoding_table): New implementation.
222 (chise_dt_close): Likewise.
223 (chise_dt_get_char): Modify for new implementation of <struct
224 CHISE_Decoding_Table>.
225 (chise_dt_put_char): Likewise.
226 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
227 of <DB*> as the type of member `db'.
228 (chise_ds_open_feature_table): New implementation.
229 (chise_ft_close): Likewise.
230 (chise_ft_get_value): Modify for new implementation of <struct
231 CHISE_Feature_Table>.
232 (chise_open_attribute_table): Use db_dir instead of ds as the
233 first argument; modify for new implementation of
234 <CHISE_Attribute_Table>.
235 (chise_close_attribute_table): Modify for new implementation of
236 <CHISE_Attribute_Table>.
237 (chise_get_attribute_table): Likewise.
238 (chise_put_attribute_table): Likewise.
240 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
242 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
243 (struct CHISE_Decoding_Table): New structure.
244 (chise_ds_open_decoding_table): Cast the return value to
245 <CHISE_Decoding_Table*>.
246 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
247 (chise_dt_get_char): Likewise.
248 (struct CHISE_Feature_Table): New structure.
249 (chise_ds_open_feature_table): Cast the return value to
250 <CHISE_Feature_Table*>.
251 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
252 (chise_ft_get_value): Likewise.
254 * chise.h (CHISE_Attribute_Table): Deleted.
255 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
256 of <CHISE_Attribute_Table>.
257 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
258 <CHISE_Attribute_Table>.
260 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
262 * chise.c (chise_open_attribute_table): New prototype.
263 (chise_close_attribute_table): New prototype.
264 (chise_get_attribute_table): New prototype.
266 * chise.h (chise_open_attribute_table): Deleted.
267 (chise_close_attribute_table): Deleted.
268 (chise_get_attribute_table): Deleted.
270 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
272 * chise.c (struct CHISE_DS): Definition of members are moved from
275 * chise.h (struct CHISE_DS): Omit definition of members.
277 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * sample.c (main): Modify for new API.
281 * chise.c (chise_open_data_source): Interface change; allocate a
282 CHISE_DS object and return it.
283 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
284 the specified CHISE_DS object.
285 (chise_ds_open_decoding_table): Renamed from
286 `chise_open_decoding_table' and changed the interface.
287 (chise_dt_close): Renamed from `chise_close_decoding_table'.
288 (chise_ds_open_feature_table): Renamed from
289 `chise_open_feature_table' and changed the interface.
290 (chise_ft_close): Renamed from `chise_close_feature_table'.
291 (chise_open_attribute_table): Interface change; allocate a
292 CHISE_Attribute_Table object and return it; require pointer for
293 data source object instead of db_dir.
294 (chise_close_attribute_table): Destroy the specified
295 CHISE_Attribute_Table object.
297 * chise.h (struct CHISE_DS): Change type of location from <char*>
299 (chise_open_data_source): Change interface.
300 (chise_ds_close): Renamed from `chise_close_data_source'.
301 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
303 (chise_ds_open_decoding_table): Renamed from
304 `chise_open_decoding_table' and changed the interface.
305 (chise_dt_close): Renamed from `chise_close_decoding_table'.
306 (chise_ds_open_feature_table): Renamed from
307 `chise_open_feature_table' and changed the interface.
308 (chise_ft_close): Renamed from `chise_close_feature_table'.
309 (chise_open_attribute_table): Change interface.
311 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
313 * configure.in: Update version to 0.2.0.
315 * Makefile.in (ABI_VERSION): New variable.
316 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
318 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
320 * sample.c (main): Use <CHISE_Decoding_Table> instead of
321 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
322 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
323 `ft_ideographic_structure' and `ft_ascii'.
325 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
326 instead of <CHISE_Decoding_Table**> as the type of the first
328 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
329 <CHISE_Feature_Table**> as the type of the first argument.
330 (chise_ft_iterate): Modify for the structure
331 `CHISE_Feature_Table'.
332 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
333 of <CHISE_Attribute_Table **> as the type of the first argument;
334 modify for the structure <CHISE_Feature_Table>.
335 (chise_close_attribute_table): Modify for the structure
336 <CHISE_Feature_Table>.
337 (chise_get_attribute_table): Likewise.
338 (chise_put_attribute_table): Likewise.
340 * chise.h (CHISE_Attribute_Table): Define as a structure.
341 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
342 of <CHISE_Decoding_Table**> as the type of the first argument.
343 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
344 <CHISE_Feature_Table**> as the type of the first argument.
345 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
346 of <CHISE_Attribute_Table**> as the type of the first argument.
348 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
350 * chise.h (chise_dt_put_char): New prototype.
352 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
354 * chise.c (chise_dt_put_char): New function.
355 (chise_put_attribute_table): New function.
357 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
359 * chise.c (chise_format_char_id): New function.
360 (chise_ft_get_value): Use `chise_format_char_id'.
362 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
364 * chise.h: Define `_CHISE_H'.
366 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
368 * sample.c (test_map_func): New function.
369 (main): Add sample of `chise_ft_iterate'.
371 * chise.c (chise_char_id_parse_c_string): New function.
372 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
373 (chise_ft_iterate): New function.
375 * chise.h (chise_ft_iterate): New function.
377 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
379 * chise.c (chise_ft_get_value): Use escape forms for some special
382 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
384 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
386 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
387 argument `feature' for file name.
389 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
391 * chise.c, chise.h: Move strnlen related code from chise.h to
394 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
396 * Makefile.in (CFLAGS): Refer @CFLAGS@.
398 * configure.in: Add check code for Fink.
400 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
402 * Makefile.in (LIBTOOL): New variable.
403 (distclean): New target.
405 * configure.in: Check about libtool.
407 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
409 * Makefile.in: Use libtool.
411 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
413 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
415 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
416 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
421 * configure: New file.
423 * Makefile.in, config.h.in, configure.in: New files.
425 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
427 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
428 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
429 instead of `strlen'; fix problem about control characters.
431 * chise.h (chise_value_data): New inline function.
433 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
435 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
437 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
439 * sample.c: Add comments.
441 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
443 * sample.c: Use <chise.h>.
444 (db_dir): Use "/usr/local/lib/chise/char-db".
446 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
448 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
450 * Makefile, chise.c, chise.h, sample.c: New files.