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