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