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