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