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