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