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