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