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