Release.
[chise/libchise.git] / ChangeLog
1 2008-05-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * libchise 0.4.1 released.
4
5 2006-12-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * configure.in: Update version to 0.4.1.
8
9         * Makefile.in (libchise.la): Specify `-no-undefined' to avoid
10         error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
11         (chise.lo): Specify `--mode=compile'.
12         (install.libs): Specify `--mode=install'.
13
14 \f
15 2006-05-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * libchise 0.4.0 released.
18
19 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * sample.c (test_map_func): Use <CHISE_Feature> instead of
22         <CHISE_Feature_Table *>.
23         (test_radical_func): Likewise.
24
25 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * chise.c (chise_char_set_feature_value): Use
28         `concord_obj_put_feature_value_str' instead of
29         `concord_stroid_set_feature_str'.
30         (chise_char_load_feature_value): Use
31         `concord_obj_get_feature_value_string' instead of
32         `concord_stroid_get_feature_string'.
33         (chise_char_gets_feature_value): Use
34         `concord_obj_gets_feature_value' instead of
35         `concord_stroid_gets_feature'.
36         (chise_feature_foreach_char_with_value): Use
37         `concord_feature_foreach_obj_string' instead of
38         `concord_feature_foreach_object_string'.
39         (chise_ccs_decode): Use `concord_index_strid_get_obj_string'
40         instead of `concord_index_strid_get_object_string'.
41         (chise_ccs_set_decoded_char): Use `concord_index_strid_put_obj'
42         instead of `concord_index_strid_set_object_str'.
43         (chise_feature_set_property_value): Use
44         `concord_obj_put_feature_value_str' instead of
45         `concord_stroid_set_feature_str'.
46         (chise_feature_load_property_value): Use
47         `concord_obj_get_feature_value_string' instead of
48         `concord_stroid_get_feature_string'.
49         (chise_feature_gets_property_value): Use
50         `concord_obj_gets_feature_value' instead of
51         `concord_stroid_gets_feature'.
52
53 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * chise.c (CHISE_DS_close): Use `concord_close_ds' instead of
56         `CONCORD_DS_close'.
57
58 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * chise.h, chise.c (chise_db_format_version): New constant.
61
62         * Makefile.in (CHISE_CFLAGS): Add new macro
63         `CHISE_DB_FORMAT_VERSION'.
64         (distclean): Delete autom4te.cache, autoscan.log, configure.scan
65         and libtool.
66
67 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * chise.h: Don't include <db.h> and <errno.h>.
70         (CHISE_DS_Type): Use <CONCORD_Backend_Type> instead of <enum
71         CONCORD_Backend_Type>.
72
73 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * README.en (PREREQUISITES): Add `CONCORD'.
76
77         * configure.in:
78         - Update version to 0.4.0.
79         - Don't link Berkeley DB.
80         - Use `AC_CHECK_LIB' to link CONCORD.
81
82         * chise.h: Use concord.h.
83         (CHISE_DS_Type): Use <enum CONCORD_Backend_Type> instead of <enum
84         CHISE_DS_Type>.
85         (CHISE_DS_Berkeley_DB): New macro to wrap
86         `CONCORD_Backend_Berkeley_DB'.
87         (CHISE_DS): Use <CONCORD_Genre_Table> instead of <struct
88         CHISE_DS>.
89         (CHISE_Value): Use <CONCORD_String_Tank> instead of <DBT>.
90         (chise_value_size): Changed to non-inline function.
91         (chise_value_data): Likewise.
92         (chise_value_to_c_string): Likewise.
93         (struct CHISE_Feature_Table): Abolished.
94         (CHISE_Feature): Use <CONCORD_Feature> instead of
95         <CHISE_Feature_Table*>.
96         (struct CHISE_CCS_Table): Abolished.
97         (CHISE_CCS): Use <CONCORD_INDEX> instead of <CHISE_CCS_Table*>.
98         (struct CHISE_Property_Table): Abolished.
99         (CHISE_Property): Use <CONCORD_Feature> instead of
100         <CHISE_Property_Table*>.
101
102         * chise.c: Don't use "chise-name.h".
103         (chise_ds_open_feature_table): Deleted.
104         (chise_ft_close): Deleted.
105         (chise_ds_open_ccs_table): Deleted.
106         (chise_ccst_close): Deleted.
107         (chise_ds_open_property_table): Deleted.
108         (chise_pt_close): Deleted.
109         (CHISE_Attribute_Table): Deleted.
110         (CHISE_Attribute_Table_open): Deleted.
111         (CHISE_Attribute_Table_close): Deleted.
112         (chise_attribute_table_get): Deleted.
113         (chise_attribute_table_put): Deleted.
114         (chise_value_size): New function.
115         (chise_value_data): New function.
116         (chise_value_to_c_string): New function.
117         (struct CHISE_DS): Abolished.
118         (CHISE_DS_open): New implementation; use `concord_open_ds' and
119         `concord_ds_get_genre'.
120         (CHISE_DS_close): New implementation; use `CONCORD_DS_close' and
121         `concord_genre_get_data_source'.
122         (chise_ds_location): New implementation; use `concord_ds_location'
123         and `concord_genre_get_data_source'.
124         (chise_ds_get_feature): New implementation; use
125         `concord_genre_get_feature'.
126         (chise_ds_get_ccs): New implementation; use
127         `concord_genre_get_index'.
128         (chise_ds_get_property): New implementation; use
129         `concord_ds_get_genre', `concord_genre_get_data_source' and
130         `concord_genre_get_feature'.
131         (chise_ds_foreach_char_feature_name): New implementation; use
132         `concord_genre_foreach_feature_name'.
133         (struct CHISE_Feature_Table): Abolished.
134         (chise_feature_setup_db): New implementation; use
135         `concord_feature_setup_db'.
136         (chise_feature_sync): New implementation; use
137         `concord_feature_sync'.
138         (chise_char_set_feature_value): New implementation; use
139         `concord_stroid_set_feature_str'.
140         (chise_char_load_feature_value): New implementation; use
141         `concord_stroid_get_feature_string'.
142         (chise_char_gets_feature_value): New implementation; use
143         `concord_stroid_gets_feature'.
144         (chise_feature_for_a_char_with_value_func): New variable.
145         (chise_feature_foreach_char_with_value_wrapper): New function.
146         (chise_feature_foreach_char_with_value): New implementation; use
147         `chise_feature_for_a_char_with_value_func',
148         `chise_feature_foreach_char_with_value_wrapper' and
149         `concord_feature_foreach_object_string'.
150         (struct CHISE_CCS_Table): Abolished.
151         (chise_ccs_setup_db): New implementation; use
152         `concord_index_setup_db'.
153         (chise_ccs_sync): New implementation; use `concord_index_sync'.
154         (chise_ccs_decode): Use `concord_index_strid_get_object_string'
155         instead of `chise_attribute_table_get'.
156         (chise_ccs_set_decoded_char): Use
157         `concord_index_strid_set_object_str' instead of
158         `concord_index_strid_set_object_str'.
159         (struct CHISE_Property_Table): Abolished.
160         (chise_ds_open_property_table): Deleted.
161         (chise_pt_close): Deleted.
162         (chise_property_setup_db): New implementation; use
163         `concord_feature_setup_db'.
164         (chise_property_sync): New implementation; use
165         `concord_feature_sync'.
166         (chise_feature_set_property_value): New implementation; use
167         `concord_stroid_set_feature_str' and `concord_feature_get_name'.
168         (chise_feature_load_property_value): New implementation; use
169         `concord_stroid_get_feature_string' and
170         `concord_feature_get_name'.
171         (chise_feature_gets_property_value): New implementation; use
172         `concord_stroid_gets_feature' and `concord_feature_get_name'.
173
174 2005-06-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * chise-name.h, name.c: Deleted.
177
178         * Makefile.in (CHISE_DIR_VERSION): Update to 1.0.
179         (ABI_VERSION): Update to 3:0:2.
180         (HEADERS): Delete chise-name.h.
181         (OBJS): Delete name.lo.
182
183 \f
184 2005-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * libchise 0.3.0 released.
187
188 2005-03-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chise.h: Modify for C++.
191
192         * sample.c (test_radical_func): New function.
193         (main): Add sample code about `ideographic-radical'.
194
195 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * configure.in: Update version to 0.3.0.
198
199         * Makefile.in (datadir): New variable.
200         (libexecdir): Commented out.
201         (sharedstatedir): New variable.
202         (CHISE_DIR_PREFIX): Use ${datadir}/chise instead of
203         ${libexecdir}/chise.
204         (CHISE_DIR_VERSION): Update to 0.3.
205         (CHISE_DB_DIR): Use ${CHISE_DIR} instead of
206         ${CHISE_DIR}/${target}.
207
208 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * chise.c (struct CHISE_DS): Add new member `property_names'.
211         (CHISE_DS_open): Initialize `property_names'.
212         (CHISE_DS_close): Destroy `property_names'.
213         (chise_ds_location): New function.
214         (chise_ds_get_property): New function.
215         (struct CHISE_Property_Table): New structure.
216         (chise_ds_open_property_table): New function.
217         (chise_pt_close): Likewise.
218         (chise_property_setup_db): Likewise.
219         (chise_property_sync): Likewise.
220         (chise_feature_set_property_value): Likewise.
221         (chise_feature_load_property_value): Likewise.
222         (chise_feature_gets_property_value): Likewise.
223
224         * chise.h (chise_ds_location): New prototype.
225         (CHISE_Property_Table): New type.
226         (CHISE_Property): New type.
227         (chise_ds_get_property): New prototype.
228         (chise_property_setup_db): Likewise.
229         (chise_property_sync): Likewise.
230         (chise_feature_set_property_value): Likewise.
231         (chise_feature_load_property_value): Likewise.
232         (chise_feature_gets_property_value): Likewise.
233
234         * sample.c (main): Use `chise_ds_location'.
235
236         * configure.in: Update version to 0.2.2.
237
238         * Makefile.in (ABI_VERSION): Update to 2:0:1.
239
240 \f
241 2004-03-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * libchise 0.2.1 released.
244
245         * Makefile.in (ABI_VERSION): Update to Revision 1.
246
247         * configure.in: Update version to 0.2.1.
248
249 2004-02-26  MORIOKA Tomohiko  <tomo@m17n.org>
250
251         * name.c (chise_make_name_table): Change initial number of hash
252         table to 256.
253         (chise_destroy_name_table): Destroy each entry.
254
255         * chise.c (CHISE_DS_close): Use `chise_destroy_name_table'.
256
257 \f
258 2003-11-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * libchise 0.2.0 released.
261
262 2003-11-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * Makefile.in (TAR): New variable.
265
266 2003-11-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * Makefile.in (tar): New target.
269
270 2003-11-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * README.en, COPYING.LIB: New files.
273
274         * chise-name.h, chise.c, chise.h, name.c: Add header.
275
276 2003-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * sample.c (test_map_func): Modify to display UCS code point and
279         character name.
280         (main): Use `chise_system_db_dir'; display `numeric-value' instead
281         of `ascii'.
282
283 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
286         or later.
287
288         * chise.h (chise_system_db_dir): New constant.
289
290 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * Makefile.in (LIBS): Don't add -ldb.
293
294         * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
295         for db4 when the library is found.
296
297 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
300         files.
301
302         * Makefile.in (target): New variable.
303         (top_builddir): New variable.
304         (CHISE_DIR_PREFIX): New variable.
305         (CHISE_DIR_VERSION): New variable.
306         (CHISE_DIR): New variable.
307         (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
308         (CHISE_SI_DB_DIR): New variable.
309         (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
310         (chise.lo): Use $(CHISE_CFLAGS).
311
312         * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
313         instead of `AC_CHECK_PROGS' for `LIBTOOL'.
314
315         * chise.c (chise_system_db_dir): New constant.
316         (CHISE_DS_open): Don't use DBTYPE.
317
318 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * chise.h (CHISE_DS_open): Don't use DBTYPE.
321
322 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * Makefile.in (DB_DIR): Update version to 0.2.
325
326 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * chise.c (chise_ds_foreach_char_feature_name): Read
329         ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
330         (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
331         (chise_ccs_setup_db): Likewise.
332         (CHISE_Attribute_Table_open): Change interface to specify
333         category/key_type/name instead of encoding/feature.
334
335 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * chise.c (chise_ds_foreach_char_feature_name): New function.
338         (chise_feature_foreach_char_with_value): Renamed from
339         `chise_char_feature_value_iterate'.
340
341 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * sample.c (test_name_map_func): New function.
344         (main): Use `chise_ds_foreach_char_feature_name'.
345
346         * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
347         gcc.
348
349         * chise.h (chise_ds_foreach_char_feature_name): New prototype.
350         (chise_feature_foreach_char_with_value): Renamed from
351         `chise_char_feature_value_iterate'.
352
353 2003-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * sample.c (char db_dir): Deleted.
356         (main): Use ${chise_db_dir}/db/ for the location of data-source.
357
358         * Makefile.in (prefix): Use @prefix@.
359         (exec_prefix): Use @exec_prefix@.
360         (libdir): Use @libdir@.
361         (libexecdir): New variable.
362         (DB_INSTALLDIR): Deleted.
363         (DB_DIR): New variable.
364         (chise.lo): Specify DB_DIR.
365         (install): Don't call install.db.
366         (install.db): Deleted.
367
368         * chise.h, chise.c (chise_db_dir): New variable.
369         (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
370         as the type of location.
371
372 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * chise.h (chise_feature_setup_db): New prototype.
375         (chise_ccs_setup_db): Likewise.
376
377         * chise.c (chise_feature_setup_db): Changed to public function.
378         (chise_ccs_setup_db): New function.
379         (chise_ccs_decode): Use `chise_ccs_setup_db'.
380         (chise_ccs_set_decoded_char): Likewise.
381
382 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chise.c (CHISE_Attribute_Table_open): Create required
385         directories when running with create mode.
386
387 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
388
389         * chise.h (chise_feature_sync): New prototype.
390         (chise_char_set_feature_value): New prototype.
391         (chise_ds_load_char_feature_value): New inline function.
392
393         * chise.c (chise_feature_sync): New function.
394         (chise_char_set_feature_value): New function.
395
396 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * sample.c (main): Use `chise_ds_decode_char' instead of
399         `chise_ds_get_ccs' and `chise_ccs_decode'.
400
401         * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
402         NULL.
403         (chise_ccs_set_decoded_char): Likewise.
404
405         * chise.h (chise_ds_decode_char): New inline function.
406
407 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * sample.c:
410         - `chise_open_data_source' is renamed to `CHISE_DS_open'.
411         - `chise_ds_close' is renamed to `CHISE_DS_close'.
412
413         * name.c: Modify to avoid warning.
414
415         * chise-name.h (chise_make_name_table): Modify to avoid warning.
416
417         * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
418         instead.
419         (CHISE_Attribute_Table_open): Renamed from
420         `chise_open_attribute_table'.
421         (CHISE_Attribute_Table_close): Renamed from
422         `chise_close_attribute_table'.
423         (chise_attribute_table_get): Renamed from
424         `chise_get_attribute_table'.
425         (chise_attribute_table_put): Renamed from
426         `chise_put_attribute_table'.
427         (CHISE_DS_open): Renamed from `chise_open_data_source'.
428         (CHISE_DS_close): Renamed from `chise_ds_close'.
429         (chise_feature_setup_db): New function.
430         (chise_char_load_feature_value): Use `chise_feature_setup_db'.
431         (chise_char_gets_feature_value): Likewise.
432         (chise_char_feature_value_iterate): Likewise.
433
434         * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
435         (chise.lo): Add dependency on sysdep.h.
436
437         * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
438         (CHISE_DS_close): Renamed from `chise_ds_close'.
439
440         * sysdep.h: New file [separate from chise.c].
441
442 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * chise.h (chise_ds_open_feature_table): Abolished.
445         (chise_ft_close): Likewise.
446
447 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * sample.c: Update for the latest API.
450
451         * chise.c (struct CHISE_DS): Add new member `subtype' and
452         `modemask'.
453         (chise_open_data_source): Add new arguments `subtype' and
454         `modemask'.
455         (chise_ds_get_feature): Delete arguments `real_subtype',
456         `accessmask', `modemask'.
457         (chise_ds_get_ccs): Likewise.
458         (struct CHISE_Feature_Table): Add new member `name' and `access'.
459         (chise_ds_open_feature_table): Delete arguments `real_subtype',
460         `accessmask', `modemask'.
461         (chise_ft_close): Release `table->name'.
462         (chise_char_load_feature_value): Setup `table->db'.
463         (chise_char_gets_feature_value): Likewise.
464         (chise_char_feature_value_iterate): Return an integer value; setup
465         `feature->db'.
466         (struct CHISE_CCS_Table): Add new member `name' and `access'.
467         (chise_ds_open_ccs_table): Delete arguments `real_subtype',
468         `accessmask', `modemask'.
469         (chise_ccst_close): Release `table->name'.
470         (chise_ccs_sync): New function.
471         (chise_ccs_decode): Setup `ccs->db'.
472         (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
473         setup `ccs->db'.
474
475         * chise.h (chise_open_data_source): Add new arguments `subtype'
476         and `modemask'.
477         (chise_ds_get_feature): Delete arguments `real_subtype',
478         `accessmask', `modemask'.
479         (chise_char_feature_value_iterate): Return an integer value.
480         (chise_char_feature_str_iterate): Comment out.
481         (chise_ds_open_feature_table): Delete arguments `real_subtype',
482         `accessmask', `modemask'.
483         (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
484         `modemask'.
485         (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
486         (chise_ccs_sync): New prototype.
487         (chise_ds_open_ccs_table): Abolished.
488         (int chise_ccst_close): Abolished.
489
490 2003-08-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * sample.c (test_map_func): Modify for
493         chise_char_feature_value_iterate.
494         (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
495         of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
496         of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
497         `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
498         use `chise_char_gets_feature_value' instead of
499         `chise_ft_get_value'; use `chise_char_feature_value_iterate'
500         instead of `chise_ft_iterate'; don't use `chise_ft_close'.
501
502 2003-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * chise.c: Include "chise-name.h".
505         (CHISE_DS): Add new members `feature_names' and `ccs_names'.
506         (chise_open_data_source): Setup ds->feature_names and
507         ds->ccs_names.
508         (chise_ds_close): Release ds->feature_names and ds->ccs_names.
509         (chise_ds_get_feature): New function.
510         (chise_ds_get_ccs): New function.
511         (chise_char_load_feature_value): Renamed from
512         `chise_ft_get_value'; modify interface.
513         (chise_char_gets_feature_value): New function.
514         (chise_char_feature_value_iterate): Renamed from
515         `chise_ft_iterate'; modify interface.
516         (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
517         (chise_ds_open_ccs_table): Renamed from
518         `chise_ds_open_decoding_table'.
519         (chise_ccst_close): Renamed from `chise_dt_close'.
520         (chise_ccs_decode): Renamed from `chise_dt_get_char'.
521         (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
522
523         * chise.h (CHISE_Feature): New type.
524         (chise_ds_get_feature): New prototype.
525         (chise_char_load_feature_value): Renamed from
526         `chise_ft_get_value'; modify interface.
527         (chise_char_gets_feature_value): New prototype.
528         (chise_char_feature_value_iterate): Renamed from
529         `chise_ft_iterate'; modify interface.
530         (chise_char_feature_str_iterate): New prototype.
531         (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
532         (CHISE_CCS): New type.
533         (chise_ds_get_ccs): New prototype.
534         (chise_ccs_decode): Renamed from `chise_dt_get_char'.
535         (chise_ds_open_ccs_table): Renamed from
536         `chise_ds_open_decoding_table'.
537         (chise_ccst_close): Renamed from `chise_dt_close'.
538         (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
539         (chise_decode_char): Deleted.
540         (chise_get_feature): Deleted.
541
542 2003-08-20  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * name.c: Include "chise-name.h".
545         (chise_name_table_put): Use <const unsigned char*> instead of
546         <unsigned char*> for key.
547         (chise_name_table_get): Likewise.
548
549         * chise-name.h (chise_name_table_put): Use <const unsigned char*>
550         instead of <unsigned char*> for key.
551         (chise_name_table_get): Likewise.
552
553 2003-08-16  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * Makefile.in (HEADERS): New variable.
556         (OBJS): New variable.
557         (libchise.la): Refer $(OBJS); add --mode=link for libtool.
558         (chise.lo): Depends on config.h.
559         (name.lo): New target.
560         (install.h): Refer $(HEADERS).
561
562 2003-08-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
563
564         * chise-name.h, name.c: New files.
565
566 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
569         CHISE_Attribute_Table>.
570         (chise_put_attribute_table): New prototype.
571         (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
572         instead of <DB*> as the type of member `db'.
573         (chise_ds_open_decoding_table): New implementation.
574         (chise_dt_close): Likewise.
575         (chise_dt_get_char): Modify for new implementation of <struct
576         CHISE_Decoding_Table>.
577         (chise_dt_put_char): Likewise.
578         (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
579         of <DB*> as the type of member `db'.
580         (chise_ds_open_feature_table): New implementation.
581         (chise_ft_close): Likewise.
582         (chise_ft_get_value): Modify for new implementation of <struct
583         CHISE_Feature_Table>.
584         (chise_open_attribute_table): Use db_dir instead of ds as the
585         first argument; modify for new implementation of
586         <CHISE_Attribute_Table>.
587         (chise_close_attribute_table): Modify for new implementation of
588         <CHISE_Attribute_Table>.
589         (chise_get_attribute_table): Likewise.
590         (chise_put_attribute_table): Likewise.
591
592 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
593
594         * chise.c (CHISE_Attribute_Table): Moved from chise.h.
595         (struct CHISE_Decoding_Table): New structure.
596         (chise_ds_open_decoding_table): Cast the return value to
597         <CHISE_Decoding_Table*>.
598         (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
599         (chise_dt_get_char): Likewise.
600         (struct CHISE_Feature_Table): New structure.
601         (chise_ds_open_feature_table): Cast the return value to
602         <CHISE_Feature_Table*>.
603         (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
604         (chise_ft_get_value): Likewise.
605
606         * chise.h (CHISE_Attribute_Table): Deleted.
607         (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
608         of <CHISE_Attribute_Table>.
609         (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
610         <CHISE_Attribute_Table>.
611
612 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
613
614         * chise.c (chise_open_attribute_table): New prototype.
615         (chise_close_attribute_table): New prototype.
616         (chise_get_attribute_table): New prototype.
617
618         * chise.h (chise_open_attribute_table): Deleted.
619         (chise_close_attribute_table): Deleted.
620         (chise_get_attribute_table): Deleted.
621
622 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
623
624         * chise.c (struct CHISE_DS): Definition of members are moved from
625         chise.h.
626
627         * chise.h (struct CHISE_DS): Omit definition of members.
628
629 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
630
631         * sample.c (main): Modify for new API.
632
633         * chise.c (chise_open_data_source): Interface change; allocate a
634         CHISE_DS object and return it.
635         (chise_ds_close): Renamed from `chise_close_data_source'; destroy
636         the specified CHISE_DS object.
637         (chise_ds_open_decoding_table): Renamed from
638         `chise_open_decoding_table' and changed the interface.
639         (chise_dt_close): Renamed from `chise_close_decoding_table'.
640         (chise_ds_open_feature_table): Renamed from
641         `chise_open_feature_table' and changed the interface.
642         (chise_ft_close): Renamed from `chise_close_feature_table'.
643         (chise_open_attribute_table): Interface change; allocate a
644         CHISE_Attribute_Table object and return it; require pointer for
645         data source object instead of db_dir.
646         (chise_close_attribute_table): Destroy the specified
647         CHISE_Attribute_Table object.
648
649         * chise.h (struct CHISE_DS): Change type of location from <char*>
650         to <unsigned char*>.
651         (chise_open_data_source): Change interface.
652         (chise_ds_close): Renamed from `chise_close_data_source'.
653         (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
654         to `db'.
655         (chise_ds_open_decoding_table): Renamed from
656         `chise_open_decoding_table' and changed the interface.
657         (chise_dt_close): Renamed from `chise_close_decoding_table'.
658         (chise_ds_open_feature_table): Renamed from
659         `chise_open_feature_table' and changed the interface.
660         (chise_ft_close): Renamed from `chise_close_feature_table'.
661         (chise_open_attribute_table): Change interface.
662
663 2003-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
664
665         * configure.in: Update version to 0.2.0.
666
667         * Makefile.in (ABI_VERSION): New variable.
668         (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
669
670 2003-08-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * sample.c (main): Use <CHISE_Decoding_Table> instead of
673         <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
674         <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
675         `ft_ideographic_structure' and `ft_ascii'.
676
677         * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
678         instead of <CHISE_Decoding_Table**> as the type of the first
679         argument.
680         (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
681         <CHISE_Feature_Table**> as the type of the first argument.
682         (chise_ft_iterate): Modify for the structure
683         `CHISE_Feature_Table'.
684         (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
685         of <CHISE_Attribute_Table **> as the type of the first argument;
686         modify for the structure <CHISE_Feature_Table>.
687         (chise_close_attribute_table): Modify for the structure
688         <CHISE_Feature_Table>.
689         (chise_get_attribute_table): Likewise.
690         (chise_put_attribute_table): Likewise.
691
692         * chise.h (CHISE_Attribute_Table): Define as a structure.
693         (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
694         of <CHISE_Decoding_Table**> as the type of the first argument.
695         (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
696         <CHISE_Feature_Table**> as the type of the first argument.
697         (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
698         of <CHISE_Attribute_Table**> as the type of the first argument.
699
700 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
701
702         * chise.h (chise_dt_put_char): New prototype.
703
704 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
705
706         * chise.c (chise_dt_put_char): New function.
707         (chise_put_attribute_table): New function.
708
709 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
710
711         * chise.c (chise_format_char_id): New function.
712         (chise_ft_get_value): Use `chise_format_char_id'.
713
714 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
715
716         * chise.h: Define `_CHISE_H'.
717
718 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
719
720         * sample.c (test_map_func): New function.
721         (main): Add sample of `chise_ft_iterate'.
722
723         * chise.c (chise_char_id_parse_c_string): New function.
724         (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
725         (chise_ft_iterate): New function.
726
727         * chise.h (chise_ft_iterate): New function.
728
729 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * chise.c (chise_ft_get_value): Use escape forms for some special
732         characters.
733
734 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
735
736         * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
737
738         * chise.c (chise_open_attribute_table): Encode '/' and '%' in
739         argument `feature' for file name.
740
741 2003-07-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
742
743         * chise.c, chise.h: Move strnlen related code from chise.h to
744         chise.c.
745
746 2003-07-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
747
748         * Makefile.in (CFLAGS): Refer @CFLAGS@.
749
750         * configure.in: Add check code for Fink.
751
752 2003-07-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * Makefile.in (LIBTOOL): New variable.
755         (distclean): New target.
756
757         * configure.in: Check about libtool.
758
759 2003-07-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * Makefile.in: Use libtool.
762
763 2003-07-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
764
765         * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
766
767         * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
768         defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
769         patch].
770
771         * Makefile: Deleted.
772
773         * configure: New file.
774
775         * Makefile.in, config.h.in, configure.in: New files.
776
777 2003-03-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
780         `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
781         instead of `strlen'; fix problem about control characters.
782
783         * chise.h (chise_value_data): New inline function.
784
785 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
786
787         * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
788
789 2003-03-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * sample.c: Add comments.
792
793 2003-03-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * sample.c: Use <chise.h>.
796         (db_dir): Use "/usr/local/lib/chise/char-db".
797
798         * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
799
800 2003-03-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * Makefile, chise.c, chise.h, sample.c: New files.
803