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