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