1 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * configure.in: Update version to 0.4.1.
5 * Makefile.in (libchise.la): Specify `-no-undefined' to avoid
7 [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
8 (chise.lo): Specify `--mode=compile'.
9 (install.libs): Specify `--mode=install'.
12 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
14 * libchise 0.4.0 released.
16 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
18 * sample.c (test_map_func): Use <CHISE_Feature> instead of
19 <CHISE_Feature_Table *>.
20 (test_radical_func): Likewise.
22 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
24 * chise.c (chise_char_set_feature_value): Use
25 `concord_obj_put_feature_value_str' instead of
26 `concord_stroid_set_feature_str'.
27 (chise_char_load_feature_value): Use
28 `concord_obj_get_feature_value_string' instead of
29 `concord_stroid_get_feature_string'.
30 (chise_char_gets_feature_value): Use
31 `concord_obj_gets_feature_value' instead of
32 `concord_stroid_gets_feature'.
33 (chise_feature_foreach_char_with_value): Use
34 `concord_feature_foreach_obj_string' instead of
35 `concord_feature_foreach_object_string'.
36 (chise_ccs_decode): Use `concord_index_strid_get_obj_string'
37 instead of `concord_index_strid_get_object_string'.
38 (chise_ccs_set_decoded_char): Use `concord_index_strid_put_obj'
39 instead of `concord_index_strid_set_object_str'.
40 (chise_feature_set_property_value): Use
41 `concord_obj_put_feature_value_str' instead of
42 `concord_stroid_set_feature_str'.
43 (chise_feature_load_property_value): Use
44 `concord_obj_get_feature_value_string' instead of
45 `concord_stroid_get_feature_string'.
46 (chise_feature_gets_property_value): Use
47 `concord_obj_gets_feature_value' instead of
48 `concord_stroid_gets_feature'.
50 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
52 * chise.c (CHISE_DS_close): Use `concord_close_ds' instead of
55 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
57 * chise.h, chise.c (chise_db_format_version): New constant.
59 * Makefile.in (CHISE_CFLAGS): Add new macro
60 `CHISE_DB_FORMAT_VERSION'.
61 (distclean): Delete autom4te.cache, autoscan.log, configure.scan
64 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
66 * chise.h: Don't include <db.h> and <errno.h>.
67 (CHISE_DS_Type): Use <CONCORD_Backend_Type> instead of <enum
68 CONCORD_Backend_Type>.
70 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
72 * README.en (PREREQUISITES): Add `CONCORD'.
75 - Update version to 0.4.0.
76 - Don't link Berkeley DB.
77 - Use `AC_CHECK_LIB' to link CONCORD.
79 * chise.h: Use concord.h.
80 (CHISE_DS_Type): Use <enum CONCORD_Backend_Type> instead of <enum
82 (CHISE_DS_Berkeley_DB): New macro to wrap
83 `CONCORD_Backend_Berkeley_DB'.
84 (CHISE_DS): Use <CONCORD_Genre_Table> instead of <struct
86 (CHISE_Value): Use <CONCORD_String_Tank> instead of <DBT>.
87 (chise_value_size): Changed to non-inline function.
88 (chise_value_data): Likewise.
89 (chise_value_to_c_string): Likewise.
90 (struct CHISE_Feature_Table): Abolished.
91 (CHISE_Feature): Use <CONCORD_Feature> instead of
92 <CHISE_Feature_Table*>.
93 (struct CHISE_CCS_Table): Abolished.
94 (CHISE_CCS): Use <CONCORD_INDEX> instead of <CHISE_CCS_Table*>.
95 (struct CHISE_Property_Table): Abolished.
96 (CHISE_Property): Use <CONCORD_Feature> instead of
97 <CHISE_Property_Table*>.
99 * chise.c: Don't use "chise-name.h".
100 (chise_ds_open_feature_table): Deleted.
101 (chise_ft_close): Deleted.
102 (chise_ds_open_ccs_table): Deleted.
103 (chise_ccst_close): Deleted.
104 (chise_ds_open_property_table): Deleted.
105 (chise_pt_close): Deleted.
106 (CHISE_Attribute_Table): Deleted.
107 (CHISE_Attribute_Table_open): Deleted.
108 (CHISE_Attribute_Table_close): Deleted.
109 (chise_attribute_table_get): Deleted.
110 (chise_attribute_table_put): Deleted.
111 (chise_value_size): New function.
112 (chise_value_data): New function.
113 (chise_value_to_c_string): New function.
114 (struct CHISE_DS): Abolished.
115 (CHISE_DS_open): New implementation; use `concord_open_ds' and
116 `concord_ds_get_genre'.
117 (CHISE_DS_close): New implementation; use `CONCORD_DS_close' and
118 `concord_genre_get_data_source'.
119 (chise_ds_location): New implementation; use `concord_ds_location'
120 and `concord_genre_get_data_source'.
121 (chise_ds_get_feature): New implementation; use
122 `concord_genre_get_feature'.
123 (chise_ds_get_ccs): New implementation; use
124 `concord_genre_get_index'.
125 (chise_ds_get_property): New implementation; use
126 `concord_ds_get_genre', `concord_genre_get_data_source' and
127 `concord_genre_get_feature'.
128 (chise_ds_foreach_char_feature_name): New implementation; use
129 `concord_genre_foreach_feature_name'.
130 (struct CHISE_Feature_Table): Abolished.
131 (chise_feature_setup_db): New implementation; use
132 `concord_feature_setup_db'.
133 (chise_feature_sync): New implementation; use
134 `concord_feature_sync'.
135 (chise_char_set_feature_value): New implementation; use
136 `concord_stroid_set_feature_str'.
137 (chise_char_load_feature_value): New implementation; use
138 `concord_stroid_get_feature_string'.
139 (chise_char_gets_feature_value): New implementation; use
140 `concord_stroid_gets_feature'.
141 (chise_feature_for_a_char_with_value_func): New variable.
142 (chise_feature_foreach_char_with_value_wrapper): New function.
143 (chise_feature_foreach_char_with_value): New implementation; use
144 `chise_feature_for_a_char_with_value_func',
145 `chise_feature_foreach_char_with_value_wrapper' and
146 `concord_feature_foreach_object_string'.
147 (struct CHISE_CCS_Table): Abolished.
148 (chise_ccs_setup_db): New implementation; use
149 `concord_index_setup_db'.
150 (chise_ccs_sync): New implementation; use `concord_index_sync'.
151 (chise_ccs_decode): Use `concord_index_strid_get_object_string'
152 instead of `chise_attribute_table_get'.
153 (chise_ccs_set_decoded_char): Use
154 `concord_index_strid_set_object_str' instead of
155 `concord_index_strid_set_object_str'.
156 (struct CHISE_Property_Table): Abolished.
157 (chise_ds_open_property_table): Deleted.
158 (chise_pt_close): Deleted.
159 (chise_property_setup_db): New implementation; use
160 `concord_feature_setup_db'.
161 (chise_property_sync): New implementation; use
162 `concord_feature_sync'.
163 (chise_feature_set_property_value): New implementation; use
164 `concord_stroid_set_feature_str' and `concord_feature_get_name'.
165 (chise_feature_load_property_value): New implementation; use
166 `concord_stroid_get_feature_string' and
167 `concord_feature_get_name'.
168 (chise_feature_gets_property_value): New implementation; use
169 `concord_stroid_gets_feature' and `concord_feature_get_name'.
171 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
173 * chise-name.h, name.c: Deleted.
175 * Makefile.in (CHISE_DIR_VERSION): Update to 1.0.
176 (ABI_VERSION): Update to 3:0:2.
177 (HEADERS): Delete chise-name.h.
178 (OBJS): Delete name.lo.
181 2005-03-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
183 * libchise 0.3.0 released.
185 2005-03-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
187 * chise.h: Modify for C++.
189 * sample.c (test_radical_func): New function.
190 (main): Add sample code about `ideographic-radical'.
192 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
194 * configure.in: Update version to 0.3.0.
196 * Makefile.in (datadir): New variable.
197 (libexecdir): Commented out.
198 (sharedstatedir): New variable.
199 (CHISE_DIR_PREFIX): Use ${datadir}/chise instead of
201 (CHISE_DIR_VERSION): Update to 0.3.
202 (CHISE_DB_DIR): Use ${CHISE_DIR} instead of
203 ${CHISE_DIR}/${target}.
205 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
207 * chise.c (struct CHISE_DS): Add new member `property_names'.
208 (CHISE_DS_open): Initialize `property_names'.
209 (CHISE_DS_close): Destroy `property_names'.
210 (chise_ds_location): New function.
211 (chise_ds_get_property): New function.
212 (struct CHISE_Property_Table): New structure.
213 (chise_ds_open_property_table): New function.
214 (chise_pt_close): Likewise.
215 (chise_property_setup_db): Likewise.
216 (chise_property_sync): Likewise.
217 (chise_feature_set_property_value): Likewise.
218 (chise_feature_load_property_value): Likewise.
219 (chise_feature_gets_property_value): Likewise.
221 * chise.h (chise_ds_location): New prototype.
222 (CHISE_Property_Table): New type.
223 (CHISE_Property): New type.
224 (chise_ds_get_property): New prototype.
225 (chise_property_setup_db): Likewise.
226 (chise_property_sync): Likewise.
227 (chise_feature_set_property_value): Likewise.
228 (chise_feature_load_property_value): Likewise.
229 (chise_feature_gets_property_value): Likewise.
231 * sample.c (main): Use `chise_ds_location'.
233 * configure.in: Update version to 0.2.2.
235 * Makefile.in (ABI_VERSION): Update to 2:0:1.
238 2004-03-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
240 * libchise 0.2.1 released.
242 * Makefile.in (ABI_VERSION): Update to Revision 1.
244 * configure.in: Update version to 0.2.1.
246 2004-02-26 MORIOKA Tomohiko <tomo@m17n.org>
248 * name.c (chise_make_name_table): Change initial number of hash
250 (chise_destroy_name_table): Destroy each entry.
252 * chise.c (CHISE_DS_close): Use `chise_destroy_name_table'.
255 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
257 * libchise 0.2.0 released.
259 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * Makefile.in (TAR): New variable.
263 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
265 * Makefile.in (tar): New target.
267 2003-11-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
269 * README.en, COPYING.LIB: New files.
271 * chise-name.h, chise.c, chise.h, name.c: Add header.
273 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
275 * sample.c (test_map_func): Modify to display UCS code point and
277 (main): Use `chise_system_db_dir'; display `numeric-value' instead
280 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
282 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
285 * chise.h (chise_system_db_dir): New constant.
287 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
289 * Makefile.in (LIBS): Don't add -ldb.
291 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
292 for db4 when the library is found.
294 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
296 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
299 * Makefile.in (target): New variable.
300 (top_builddir): New variable.
301 (CHISE_DIR_PREFIX): New variable.
302 (CHISE_DIR_VERSION): New variable.
303 (CHISE_DIR): New variable.
304 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
305 (CHISE_SI_DB_DIR): New variable.
306 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
307 (chise.lo): Use $(CHISE_CFLAGS).
309 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
310 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
312 * chise.c (chise_system_db_dir): New constant.
313 (CHISE_DS_open): Don't use DBTYPE.
315 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
317 * chise.h (CHISE_DS_open): Don't use DBTYPE.
319 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
321 * Makefile.in (DB_DIR): Update version to 0.2.
323 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
325 * chise.c (chise_ds_foreach_char_feature_name): Read
326 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
327 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
328 (chise_ccs_setup_db): Likewise.
329 (CHISE_Attribute_Table_open): Change interface to specify
330 category/key_type/name instead of encoding/feature.
332 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
334 * chise.c (chise_ds_foreach_char_feature_name): New function.
335 (chise_feature_foreach_char_with_value): Renamed from
336 `chise_char_feature_value_iterate'.
338 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
340 * sample.c (test_name_map_func): New function.
341 (main): Use `chise_ds_foreach_char_feature_name'.
343 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
346 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
347 (chise_feature_foreach_char_with_value): Renamed from
348 `chise_char_feature_value_iterate'.
350 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
352 * sample.c (char db_dir): Deleted.
353 (main): Use ${chise_db_dir}/db/ for the location of data-source.
355 * Makefile.in (prefix): Use @prefix@.
356 (exec_prefix): Use @exec_prefix@.
357 (libdir): Use @libdir@.
358 (libexecdir): New variable.
359 (DB_INSTALLDIR): Deleted.
360 (DB_DIR): New variable.
361 (chise.lo): Specify DB_DIR.
362 (install): Don't call install.db.
363 (install.db): Deleted.
365 * chise.h, chise.c (chise_db_dir): New variable.
366 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
367 as the type of location.
369 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
371 * chise.h (chise_feature_setup_db): New prototype.
372 (chise_ccs_setup_db): Likewise.
374 * chise.c (chise_feature_setup_db): Changed to public function.
375 (chise_ccs_setup_db): New function.
376 (chise_ccs_decode): Use `chise_ccs_setup_db'.
377 (chise_ccs_set_decoded_char): Likewise.
379 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
381 * chise.c (CHISE_Attribute_Table_open): Create required
382 directories when running with create mode.
384 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
386 * chise.h (chise_feature_sync): New prototype.
387 (chise_char_set_feature_value): New prototype.
388 (chise_ds_load_char_feature_value): New inline function.
390 * chise.c (chise_feature_sync): New function.
391 (chise_char_set_feature_value): New function.
393 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
395 * sample.c (main): Use `chise_ds_decode_char' instead of
396 `chise_ds_get_ccs' and `chise_ccs_decode'.
398 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
400 (chise_ccs_set_decoded_char): Likewise.
402 * chise.h (chise_ds_decode_char): New inline function.
404 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
407 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
408 - `chise_ds_close' is renamed to `CHISE_DS_close'.
410 * name.c: Modify to avoid warning.
412 * chise-name.h (chise_make_name_table): Modify to avoid warning.
414 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
416 (CHISE_Attribute_Table_open): Renamed from
417 `chise_open_attribute_table'.
418 (CHISE_Attribute_Table_close): Renamed from
419 `chise_close_attribute_table'.
420 (chise_attribute_table_get): Renamed from
421 `chise_get_attribute_table'.
422 (chise_attribute_table_put): Renamed from
423 `chise_put_attribute_table'.
424 (CHISE_DS_open): Renamed from `chise_open_data_source'.
425 (CHISE_DS_close): Renamed from `chise_ds_close'.
426 (chise_feature_setup_db): New function.
427 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
428 (chise_char_gets_feature_value): Likewise.
429 (chise_char_feature_value_iterate): Likewise.
431 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
432 (chise.lo): Add dependency on sysdep.h.
434 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
435 (CHISE_DS_close): Renamed from `chise_ds_close'.
437 * sysdep.h: New file [separate from chise.c].
439 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
441 * chise.h (chise_ds_open_feature_table): Abolished.
442 (chise_ft_close): Likewise.
444 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
446 * sample.c: Update for the latest API.
448 * chise.c (struct CHISE_DS): Add new member `subtype' and
450 (chise_open_data_source): Add new arguments `subtype' and
452 (chise_ds_get_feature): Delete arguments `real_subtype',
453 `accessmask', `modemask'.
454 (chise_ds_get_ccs): Likewise.
455 (struct CHISE_Feature_Table): Add new member `name' and `access'.
456 (chise_ds_open_feature_table): Delete arguments `real_subtype',
457 `accessmask', `modemask'.
458 (chise_ft_close): Release `table->name'.
459 (chise_char_load_feature_value): Setup `table->db'.
460 (chise_char_gets_feature_value): Likewise.
461 (chise_char_feature_value_iterate): Return an integer value; setup
463 (struct CHISE_CCS_Table): Add new member `name' and `access'.
464 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
465 `accessmask', `modemask'.
466 (chise_ccst_close): Release `table->name'.
467 (chise_ccs_sync): New function.
468 (chise_ccs_decode): Setup `ccs->db'.
469 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
472 * chise.h (chise_open_data_source): Add new arguments `subtype'
474 (chise_ds_get_feature): Delete arguments `real_subtype',
475 `accessmask', `modemask'.
476 (chise_char_feature_value_iterate): Return an integer value.
477 (chise_char_feature_str_iterate): Comment out.
478 (chise_ds_open_feature_table): Delete arguments `real_subtype',
479 `accessmask', `modemask'.
480 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
482 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
483 (chise_ccs_sync): New prototype.
484 (chise_ds_open_ccs_table): Abolished.
485 (int chise_ccst_close): Abolished.
487 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
489 * sample.c (test_map_func): Modify for
490 chise_char_feature_value_iterate.
491 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
492 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
493 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
494 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
495 use `chise_char_gets_feature_value' instead of
496 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
497 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
499 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
501 * chise.c: Include "chise-name.h".
502 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
503 (chise_open_data_source): Setup ds->feature_names and
505 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
506 (chise_ds_get_feature): New function.
507 (chise_ds_get_ccs): New function.
508 (chise_char_load_feature_value): Renamed from
509 `chise_ft_get_value'; modify interface.
510 (chise_char_gets_feature_value): New function.
511 (chise_char_feature_value_iterate): Renamed from
512 `chise_ft_iterate'; modify interface.
513 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
514 (chise_ds_open_ccs_table): Renamed from
515 `chise_ds_open_decoding_table'.
516 (chise_ccst_close): Renamed from `chise_dt_close'.
517 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
518 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
520 * chise.h (CHISE_Feature): New type.
521 (chise_ds_get_feature): New prototype.
522 (chise_char_load_feature_value): Renamed from
523 `chise_ft_get_value'; modify interface.
524 (chise_char_gets_feature_value): New prototype.
525 (chise_char_feature_value_iterate): Renamed from
526 `chise_ft_iterate'; modify interface.
527 (chise_char_feature_str_iterate): New prototype.
528 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
529 (CHISE_CCS): New type.
530 (chise_ds_get_ccs): New prototype.
531 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
532 (chise_ds_open_ccs_table): Renamed from
533 `chise_ds_open_decoding_table'.
534 (chise_ccst_close): Renamed from `chise_dt_close'.
535 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
536 (chise_decode_char): Deleted.
537 (chise_get_feature): Deleted.
539 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
541 * name.c: Include "chise-name.h".
542 (chise_name_table_put): Use <const unsigned char*> instead of
543 <unsigned char*> for key.
544 (chise_name_table_get): Likewise.
546 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
547 instead of <unsigned char*> for key.
548 (chise_name_table_get): Likewise.
550 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
552 * Makefile.in (HEADERS): New variable.
553 (OBJS): New variable.
554 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
555 (chise.lo): Depends on config.h.
556 (name.lo): New target.
557 (install.h): Refer $(HEADERS).
559 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
561 * chise-name.h, name.c: New files.
563 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
565 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
566 CHISE_Attribute_Table>.
567 (chise_put_attribute_table): New prototype.
568 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
569 instead of <DB*> as the type of member `db'.
570 (chise_ds_open_decoding_table): New implementation.
571 (chise_dt_close): Likewise.
572 (chise_dt_get_char): Modify for new implementation of <struct
573 CHISE_Decoding_Table>.
574 (chise_dt_put_char): Likewise.
575 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
576 of <DB*> as the type of member `db'.
577 (chise_ds_open_feature_table): New implementation.
578 (chise_ft_close): Likewise.
579 (chise_ft_get_value): Modify for new implementation of <struct
580 CHISE_Feature_Table>.
581 (chise_open_attribute_table): Use db_dir instead of ds as the
582 first argument; modify for new implementation of
583 <CHISE_Attribute_Table>.
584 (chise_close_attribute_table): Modify for new implementation of
585 <CHISE_Attribute_Table>.
586 (chise_get_attribute_table): Likewise.
587 (chise_put_attribute_table): Likewise.
589 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
591 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
592 (struct CHISE_Decoding_Table): New structure.
593 (chise_ds_open_decoding_table): Cast the return value to
594 <CHISE_Decoding_Table*>.
595 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
596 (chise_dt_get_char): Likewise.
597 (struct CHISE_Feature_Table): New structure.
598 (chise_ds_open_feature_table): Cast the return value to
599 <CHISE_Feature_Table*>.
600 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
601 (chise_ft_get_value): Likewise.
603 * chise.h (CHISE_Attribute_Table): Deleted.
604 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
605 of <CHISE_Attribute_Table>.
606 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
607 <CHISE_Attribute_Table>.
609 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
611 * chise.c (chise_open_attribute_table): New prototype.
612 (chise_close_attribute_table): New prototype.
613 (chise_get_attribute_table): New prototype.
615 * chise.h (chise_open_attribute_table): Deleted.
616 (chise_close_attribute_table): Deleted.
617 (chise_get_attribute_table): Deleted.
619 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
621 * chise.c (struct CHISE_DS): Definition of members are moved from
624 * chise.h (struct CHISE_DS): Omit definition of members.
626 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
628 * sample.c (main): Modify for new API.
630 * chise.c (chise_open_data_source): Interface change; allocate a
631 CHISE_DS object and return it.
632 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
633 the specified CHISE_DS object.
634 (chise_ds_open_decoding_table): Renamed from
635 `chise_open_decoding_table' and changed the interface.
636 (chise_dt_close): Renamed from `chise_close_decoding_table'.
637 (chise_ds_open_feature_table): Renamed from
638 `chise_open_feature_table' and changed the interface.
639 (chise_ft_close): Renamed from `chise_close_feature_table'.
640 (chise_open_attribute_table): Interface change; allocate a
641 CHISE_Attribute_Table object and return it; require pointer for
642 data source object instead of db_dir.
643 (chise_close_attribute_table): Destroy the specified
644 CHISE_Attribute_Table object.
646 * chise.h (struct CHISE_DS): Change type of location from <char*>
648 (chise_open_data_source): Change interface.
649 (chise_ds_close): Renamed from `chise_close_data_source'.
650 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
652 (chise_ds_open_decoding_table): Renamed from
653 `chise_open_decoding_table' and changed the interface.
654 (chise_dt_close): Renamed from `chise_close_decoding_table'.
655 (chise_ds_open_feature_table): Renamed from
656 `chise_open_feature_table' and changed the interface.
657 (chise_ft_close): Renamed from `chise_close_feature_table'.
658 (chise_open_attribute_table): Change interface.
660 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
662 * configure.in: Update version to 0.2.0.
664 * Makefile.in (ABI_VERSION): New variable.
665 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
667 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
669 * sample.c (main): Use <CHISE_Decoding_Table> instead of
670 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
671 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
672 `ft_ideographic_structure' and `ft_ascii'.
674 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
675 instead of <CHISE_Decoding_Table**> as the type of the first
677 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
678 <CHISE_Feature_Table**> as the type of the first argument.
679 (chise_ft_iterate): Modify for the structure
680 `CHISE_Feature_Table'.
681 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
682 of <CHISE_Attribute_Table **> as the type of the first argument;
683 modify for the structure <CHISE_Feature_Table>.
684 (chise_close_attribute_table): Modify for the structure
685 <CHISE_Feature_Table>.
686 (chise_get_attribute_table): Likewise.
687 (chise_put_attribute_table): Likewise.
689 * chise.h (CHISE_Attribute_Table): Define as a structure.
690 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
691 of <CHISE_Decoding_Table**> as the type of the first argument.
692 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
693 <CHISE_Feature_Table**> as the type of the first argument.
694 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
695 of <CHISE_Attribute_Table**> as the type of the first argument.
697 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
699 * chise.h (chise_dt_put_char): New prototype.
701 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
703 * chise.c (chise_dt_put_char): New function.
704 (chise_put_attribute_table): New function.
706 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
708 * chise.c (chise_format_char_id): New function.
709 (chise_ft_get_value): Use `chise_format_char_id'.
711 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
713 * chise.h: Define `_CHISE_H'.
715 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
717 * sample.c (test_map_func): New function.
718 (main): Add sample of `chise_ft_iterate'.
720 * chise.c (chise_char_id_parse_c_string): New function.
721 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
722 (chise_ft_iterate): New function.
724 * chise.h (chise_ft_iterate): New function.
726 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
728 * chise.c (chise_ft_get_value): Use escape forms for some special
731 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
733 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
735 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
736 argument `feature' for file name.
738 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
740 * chise.c, chise.h: Move strnlen related code from chise.h to
743 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
745 * Makefile.in (CFLAGS): Refer @CFLAGS@.
747 * configure.in: Add check code for Fink.
749 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
751 * Makefile.in (LIBTOOL): New variable.
752 (distclean): New target.
754 * configure.in: Check about libtool.
756 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
758 * Makefile.in: Use libtool.
760 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
762 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
764 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
765 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
770 * configure: New file.
772 * Makefile.in, config.h.in, configure.in: New files.
774 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
776 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
777 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
778 instead of `strlen'; fix problem about control characters.
780 * chise.h (chise_value_data): New inline function.
782 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
784 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
786 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
788 * sample.c: Add comments.
790 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
792 * sample.c: Use <chise.h>.
793 (db_dir): Use "/usr/local/lib/chise/char-db".
795 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
797 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
799 * Makefile, chise.c, chise.h, sample.c: New files.