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