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
6 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
7 (chise.lo): Specify `--mode=compile'.
8 (install.libs): Specify `--mode=install'.
11 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
13 * libchise 0.4.0 released.
15 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * sample.c (test_map_func): Use <CHISE_Feature> instead of
18 <CHISE_Feature_Table *>.
19 (test_radical_func): Likewise.
21 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
23 * chise.c (chise_char_set_feature_value): Use
24 `concord_obj_put_feature_value_str' instead of
25 `concord_stroid_set_feature_str'.
26 (chise_char_load_feature_value): Use
27 `concord_obj_get_feature_value_string' instead of
28 `concord_stroid_get_feature_string'.
29 (chise_char_gets_feature_value): Use
30 `concord_obj_gets_feature_value' instead of
31 `concord_stroid_gets_feature'.
32 (chise_feature_foreach_char_with_value): Use
33 `concord_feature_foreach_obj_string' instead of
34 `concord_feature_foreach_object_string'.
35 (chise_ccs_decode): Use `concord_index_strid_get_obj_string'
36 instead of `concord_index_strid_get_object_string'.
37 (chise_ccs_set_decoded_char): Use `concord_index_strid_put_obj'
38 instead of `concord_index_strid_set_object_str'.
39 (chise_feature_set_property_value): Use
40 `concord_obj_put_feature_value_str' instead of
41 `concord_stroid_set_feature_str'.
42 (chise_feature_load_property_value): Use
43 `concord_obj_get_feature_value_string' instead of
44 `concord_stroid_get_feature_string'.
45 (chise_feature_gets_property_value): Use
46 `concord_obj_gets_feature_value' instead of
47 `concord_stroid_gets_feature'.
49 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
51 * chise.c (CHISE_DS_close): Use `concord_close_ds' instead of
54 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
56 * chise.h, chise.c (chise_db_format_version): New constant.
58 * Makefile.in (CHISE_CFLAGS): Add new macro
59 `CHISE_DB_FORMAT_VERSION'.
60 (distclean): Delete autom4te.cache, autoscan.log, configure.scan
63 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
65 * chise.h: Don't include <db.h> and <errno.h>.
66 (CHISE_DS_Type): Use <CONCORD_Backend_Type> instead of <enum
67 CONCORD_Backend_Type>.
69 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
71 * README.en (PREREQUISITES): Add `CONCORD'.
74 - Update version to 0.4.0.
75 - Don't link Berkeley DB.
76 - Use `AC_CHECK_LIB' to link CONCORD.
78 * chise.h: Use concord.h.
79 (CHISE_DS_Type): Use <enum CONCORD_Backend_Type> instead of <enum
81 (CHISE_DS_Berkeley_DB): New macro to wrap
82 `CONCORD_Backend_Berkeley_DB'.
83 (CHISE_DS): Use <CONCORD_Genre_Table> instead of <struct
85 (CHISE_Value): Use <CONCORD_String_Tank> instead of <DBT>.
86 (chise_value_size): Changed to non-inline function.
87 (chise_value_data): Likewise.
88 (chise_value_to_c_string): Likewise.
89 (struct CHISE_Feature_Table): Abolished.
90 (CHISE_Feature): Use <CONCORD_Feature> instead of
91 <CHISE_Feature_Table*>.
92 (struct CHISE_CCS_Table): Abolished.
93 (CHISE_CCS): Use <CONCORD_INDEX> instead of <CHISE_CCS_Table*>.
94 (struct CHISE_Property_Table): Abolished.
95 (CHISE_Property): Use <CONCORD_Feature> instead of
96 <CHISE_Property_Table*>.
98 * chise.c: Don't use "chise-name.h".
99 (chise_ds_open_feature_table): Deleted.
100 (chise_ft_close): Deleted.
101 (chise_ds_open_ccs_table): Deleted.
102 (chise_ccst_close): Deleted.
103 (chise_ds_open_property_table): Deleted.
104 (chise_pt_close): Deleted.
105 (CHISE_Attribute_Table): Deleted.
106 (CHISE_Attribute_Table_open): Deleted.
107 (CHISE_Attribute_Table_close): Deleted.
108 (chise_attribute_table_get): Deleted.
109 (chise_attribute_table_put): Deleted.
110 (chise_value_size): New function.
111 (chise_value_data): New function.
112 (chise_value_to_c_string): New function.
113 (struct CHISE_DS): Abolished.
114 (CHISE_DS_open): New implementation; use `concord_open_ds' and
115 `concord_ds_get_genre'.
116 (CHISE_DS_close): New implementation; use `CONCORD_DS_close' and
117 `concord_genre_get_data_source'.
118 (chise_ds_location): New implementation; use `concord_ds_location'
119 and `concord_genre_get_data_source'.
120 (chise_ds_get_feature): New implementation; use
121 `concord_genre_get_feature'.
122 (chise_ds_get_ccs): New implementation; use
123 `concord_genre_get_index'.
124 (chise_ds_get_property): New implementation; use
125 `concord_ds_get_genre', `concord_genre_get_data_source' and
126 `concord_genre_get_feature'.
127 (chise_ds_foreach_char_feature_name): New implementation; use
128 `concord_genre_foreach_feature_name'.
129 (struct CHISE_Feature_Table): Abolished.
130 (chise_feature_setup_db): New implementation; use
131 `concord_feature_setup_db'.
132 (chise_feature_sync): New implementation; use
133 `concord_feature_sync'.
134 (chise_char_set_feature_value): New implementation; use
135 `concord_stroid_set_feature_str'.
136 (chise_char_load_feature_value): New implementation; use
137 `concord_stroid_get_feature_string'.
138 (chise_char_gets_feature_value): New implementation; use
139 `concord_stroid_gets_feature'.
140 (chise_feature_for_a_char_with_value_func): New variable.
141 (chise_feature_foreach_char_with_value_wrapper): New function.
142 (chise_feature_foreach_char_with_value): New implementation; use
143 `chise_feature_for_a_char_with_value_func',
144 `chise_feature_foreach_char_with_value_wrapper' and
145 `concord_feature_foreach_object_string'.
146 (struct CHISE_CCS_Table): Abolished.
147 (chise_ccs_setup_db): New implementation; use
148 `concord_index_setup_db'.
149 (chise_ccs_sync): New implementation; use `concord_index_sync'.
150 (chise_ccs_decode): Use `concord_index_strid_get_object_string'
151 instead of `chise_attribute_table_get'.
152 (chise_ccs_set_decoded_char): Use
153 `concord_index_strid_set_object_str' instead of
154 `concord_index_strid_set_object_str'.
155 (struct CHISE_Property_Table): Abolished.
156 (chise_ds_open_property_table): Deleted.
157 (chise_pt_close): Deleted.
158 (chise_property_setup_db): New implementation; use
159 `concord_feature_setup_db'.
160 (chise_property_sync): New implementation; use
161 `concord_feature_sync'.
162 (chise_feature_set_property_value): New implementation; use
163 `concord_stroid_set_feature_str' and `concord_feature_get_name'.
164 (chise_feature_load_property_value): New implementation; use
165 `concord_stroid_get_feature_string' and
166 `concord_feature_get_name'.
167 (chise_feature_gets_property_value): New implementation; use
168 `concord_stroid_gets_feature' and `concord_feature_get_name'.
170 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
172 * chise-name.h, name.c: Deleted.
174 * Makefile.in (CHISE_DIR_VERSION): Update to 1.0.
175 (ABI_VERSION): Update to 3:0:2.
176 (HEADERS): Delete chise-name.h.
177 (OBJS): Delete name.lo.
180 2005-03-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
182 * libchise 0.3.0 released.
184 2005-03-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
186 * chise.h: Modify for C++.
188 * sample.c (test_radical_func): New function.
189 (main): Add sample code about `ideographic-radical'.
191 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
193 * configure.in: Update version to 0.3.0.
195 * Makefile.in (datadir): New variable.
196 (libexecdir): Commented out.
197 (sharedstatedir): New variable.
198 (CHISE_DIR_PREFIX): Use ${datadir}/chise instead of
200 (CHISE_DIR_VERSION): Update to 0.3.
201 (CHISE_DB_DIR): Use ${CHISE_DIR} instead of
202 ${CHISE_DIR}/${target}.
204 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
206 * chise.c (struct CHISE_DS): Add new member `property_names'.
207 (CHISE_DS_open): Initialize `property_names'.
208 (CHISE_DS_close): Destroy `property_names'.
209 (chise_ds_location): New function.
210 (chise_ds_get_property): New function.
211 (struct CHISE_Property_Table): New structure.
212 (chise_ds_open_property_table): New function.
213 (chise_pt_close): Likewise.
214 (chise_property_setup_db): Likewise.
215 (chise_property_sync): Likewise.
216 (chise_feature_set_property_value): Likewise.
217 (chise_feature_load_property_value): Likewise.
218 (chise_feature_gets_property_value): Likewise.
220 * chise.h (chise_ds_location): New prototype.
221 (CHISE_Property_Table): New type.
222 (CHISE_Property): New type.
223 (chise_ds_get_property): New prototype.
224 (chise_property_setup_db): Likewise.
225 (chise_property_sync): Likewise.
226 (chise_feature_set_property_value): Likewise.
227 (chise_feature_load_property_value): Likewise.
228 (chise_feature_gets_property_value): Likewise.
230 * sample.c (main): Use `chise_ds_location'.
232 * configure.in: Update version to 0.2.2.
234 * Makefile.in (ABI_VERSION): Update to 2:0:1.
237 2004-03-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
239 * libchise 0.2.1 released.
241 * Makefile.in (ABI_VERSION): Update to Revision 1.
243 * configure.in: Update version to 0.2.1.
245 2004-02-26 MORIOKA Tomohiko <tomo@m17n.org>
247 * name.c (chise_make_name_table): Change initial number of hash
249 (chise_destroy_name_table): Destroy each entry.
251 * chise.c (CHISE_DS_close): Use `chise_destroy_name_table'.
254 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
256 * libchise 0.2.0 released.
258 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
260 * Makefile.in (TAR): New variable.
262 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * Makefile.in (tar): New target.
266 2003-11-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
268 * README.en, COPYING.LIB: New files.
270 * chise-name.h, chise.c, chise.h, name.c: Add header.
272 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
274 * sample.c (test_map_func): Modify to display UCS code point and
276 (main): Use `chise_system_db_dir'; display `numeric-value' instead
279 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
281 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
284 * chise.h (chise_system_db_dir): New constant.
286 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
288 * Makefile.in (LIBS): Don't add -ldb.
290 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
291 for db4 when the library is found.
293 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
295 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
298 * Makefile.in (target): New variable.
299 (top_builddir): New variable.
300 (CHISE_DIR_PREFIX): New variable.
301 (CHISE_DIR_VERSION): New variable.
302 (CHISE_DIR): New variable.
303 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
304 (CHISE_SI_DB_DIR): New variable.
305 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
306 (chise.lo): Use $(CHISE_CFLAGS).
308 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
309 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
311 * chise.c (chise_system_db_dir): New constant.
312 (CHISE_DS_open): Don't use DBTYPE.
314 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
316 * chise.h (CHISE_DS_open): Don't use DBTYPE.
318 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
320 * Makefile.in (DB_DIR): Update version to 0.2.
322 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
324 * chise.c (chise_ds_foreach_char_feature_name): Read
325 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
326 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
327 (chise_ccs_setup_db): Likewise.
328 (CHISE_Attribute_Table_open): Change interface to specify
329 category/key_type/name instead of encoding/feature.
331 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
333 * chise.c (chise_ds_foreach_char_feature_name): New function.
334 (chise_feature_foreach_char_with_value): Renamed from
335 `chise_char_feature_value_iterate'.
337 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
339 * sample.c (test_name_map_func): New function.
340 (main): Use `chise_ds_foreach_char_feature_name'.
342 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
345 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
346 (chise_feature_foreach_char_with_value): Renamed from
347 `chise_char_feature_value_iterate'.
349 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
351 * sample.c (char db_dir): Deleted.
352 (main): Use ${chise_db_dir}/db/ for the location of data-source.
354 * Makefile.in (prefix): Use @prefix@.
355 (exec_prefix): Use @exec_prefix@.
356 (libdir): Use @libdir@.
357 (libexecdir): New variable.
358 (DB_INSTALLDIR): Deleted.
359 (DB_DIR): New variable.
360 (chise.lo): Specify DB_DIR.
361 (install): Don't call install.db.
362 (install.db): Deleted.
364 * chise.h, chise.c (chise_db_dir): New variable.
365 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
366 as the type of location.
368 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
370 * chise.h (chise_feature_setup_db): New prototype.
371 (chise_ccs_setup_db): Likewise.
373 * chise.c (chise_feature_setup_db): Changed to public function.
374 (chise_ccs_setup_db): New function.
375 (chise_ccs_decode): Use `chise_ccs_setup_db'.
376 (chise_ccs_set_decoded_char): Likewise.
378 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * chise.c (CHISE_Attribute_Table_open): Create required
381 directories when running with create mode.
383 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
385 * chise.h (chise_feature_sync): New prototype.
386 (chise_char_set_feature_value): New prototype.
387 (chise_ds_load_char_feature_value): New inline function.
389 * chise.c (chise_feature_sync): New function.
390 (chise_char_set_feature_value): New function.
392 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
394 * sample.c (main): Use `chise_ds_decode_char' instead of
395 `chise_ds_get_ccs' and `chise_ccs_decode'.
397 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
399 (chise_ccs_set_decoded_char): Likewise.
401 * chise.h (chise_ds_decode_char): New inline function.
403 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
406 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
407 - `chise_ds_close' is renamed to `CHISE_DS_close'.
409 * name.c: Modify to avoid warning.
411 * chise-name.h (chise_make_name_table): Modify to avoid warning.
413 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
415 (CHISE_Attribute_Table_open): Renamed from
416 `chise_open_attribute_table'.
417 (CHISE_Attribute_Table_close): Renamed from
418 `chise_close_attribute_table'.
419 (chise_attribute_table_get): Renamed from
420 `chise_get_attribute_table'.
421 (chise_attribute_table_put): Renamed from
422 `chise_put_attribute_table'.
423 (CHISE_DS_open): Renamed from `chise_open_data_source'.
424 (CHISE_DS_close): Renamed from `chise_ds_close'.
425 (chise_feature_setup_db): New function.
426 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
427 (chise_char_gets_feature_value): Likewise.
428 (chise_char_feature_value_iterate): Likewise.
430 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
431 (chise.lo): Add dependency on sysdep.h.
433 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
434 (CHISE_DS_close): Renamed from `chise_ds_close'.
436 * sysdep.h: New file [separate from chise.c].
438 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
440 * chise.h (chise_ds_open_feature_table): Abolished.
441 (chise_ft_close): Likewise.
443 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
445 * sample.c: Update for the latest API.
447 * chise.c (struct CHISE_DS): Add new member `subtype' and
449 (chise_open_data_source): Add new arguments `subtype' and
451 (chise_ds_get_feature): Delete arguments `real_subtype',
452 `accessmask', `modemask'.
453 (chise_ds_get_ccs): Likewise.
454 (struct CHISE_Feature_Table): Add new member `name' and `access'.
455 (chise_ds_open_feature_table): Delete arguments `real_subtype',
456 `accessmask', `modemask'.
457 (chise_ft_close): Release `table->name'.
458 (chise_char_load_feature_value): Setup `table->db'.
459 (chise_char_gets_feature_value): Likewise.
460 (chise_char_feature_value_iterate): Return an integer value; setup
462 (struct CHISE_CCS_Table): Add new member `name' and `access'.
463 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
464 `accessmask', `modemask'.
465 (chise_ccst_close): Release `table->name'.
466 (chise_ccs_sync): New function.
467 (chise_ccs_decode): Setup `ccs->db'.
468 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
471 * chise.h (chise_open_data_source): Add new arguments `subtype'
473 (chise_ds_get_feature): Delete arguments `real_subtype',
474 `accessmask', `modemask'.
475 (chise_char_feature_value_iterate): Return an integer value.
476 (chise_char_feature_str_iterate): Comment out.
477 (chise_ds_open_feature_table): Delete arguments `real_subtype',
478 `accessmask', `modemask'.
479 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
481 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
482 (chise_ccs_sync): New prototype.
483 (chise_ds_open_ccs_table): Abolished.
484 (int chise_ccst_close): Abolished.
486 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
488 * sample.c (test_map_func): Modify for
489 chise_char_feature_value_iterate.
490 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
491 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
492 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
493 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
494 use `chise_char_gets_feature_value' instead of
495 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
496 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
498 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
500 * chise.c: Include "chise-name.h".
501 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
502 (chise_open_data_source): Setup ds->feature_names and
504 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
505 (chise_ds_get_feature): New function.
506 (chise_ds_get_ccs): New function.
507 (chise_char_load_feature_value): Renamed from
508 `chise_ft_get_value'; modify interface.
509 (chise_char_gets_feature_value): New function.
510 (chise_char_feature_value_iterate): Renamed from
511 `chise_ft_iterate'; modify interface.
512 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
513 (chise_ds_open_ccs_table): Renamed from
514 `chise_ds_open_decoding_table'.
515 (chise_ccst_close): Renamed from `chise_dt_close'.
516 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
517 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
519 * chise.h (CHISE_Feature): New type.
520 (chise_ds_get_feature): New prototype.
521 (chise_char_load_feature_value): Renamed from
522 `chise_ft_get_value'; modify interface.
523 (chise_char_gets_feature_value): New prototype.
524 (chise_char_feature_value_iterate): Renamed from
525 `chise_ft_iterate'; modify interface.
526 (chise_char_feature_str_iterate): New prototype.
527 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
528 (CHISE_CCS): New type.
529 (chise_ds_get_ccs): New prototype.
530 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
531 (chise_ds_open_ccs_table): Renamed from
532 `chise_ds_open_decoding_table'.
533 (chise_ccst_close): Renamed from `chise_dt_close'.
534 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
535 (chise_decode_char): Deleted.
536 (chise_get_feature): Deleted.
538 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
540 * name.c: Include "chise-name.h".
541 (chise_name_table_put): Use <const unsigned char*> instead of
542 <unsigned char*> for key.
543 (chise_name_table_get): Likewise.
545 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
546 instead of <unsigned char*> for key.
547 (chise_name_table_get): Likewise.
549 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
551 * Makefile.in (HEADERS): New variable.
552 (OBJS): New variable.
553 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
554 (chise.lo): Depends on config.h.
555 (name.lo): New target.
556 (install.h): Refer $(HEADERS).
558 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
560 * chise-name.h, name.c: New files.
562 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
564 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
565 CHISE_Attribute_Table>.
566 (chise_put_attribute_table): New prototype.
567 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
568 instead of <DB*> as the type of member `db'.
569 (chise_ds_open_decoding_table): New implementation.
570 (chise_dt_close): Likewise.
571 (chise_dt_get_char): Modify for new implementation of <struct
572 CHISE_Decoding_Table>.
573 (chise_dt_put_char): Likewise.
574 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
575 of <DB*> as the type of member `db'.
576 (chise_ds_open_feature_table): New implementation.
577 (chise_ft_close): Likewise.
578 (chise_ft_get_value): Modify for new implementation of <struct
579 CHISE_Feature_Table>.
580 (chise_open_attribute_table): Use db_dir instead of ds as the
581 first argument; modify for new implementation of
582 <CHISE_Attribute_Table>.
583 (chise_close_attribute_table): Modify for new implementation of
584 <CHISE_Attribute_Table>.
585 (chise_get_attribute_table): Likewise.
586 (chise_put_attribute_table): Likewise.
588 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
590 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
591 (struct CHISE_Decoding_Table): New structure.
592 (chise_ds_open_decoding_table): Cast the return value to
593 <CHISE_Decoding_Table*>.
594 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
595 (chise_dt_get_char): Likewise.
596 (struct CHISE_Feature_Table): New structure.
597 (chise_ds_open_feature_table): Cast the return value to
598 <CHISE_Feature_Table*>.
599 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
600 (chise_ft_get_value): Likewise.
602 * chise.h (CHISE_Attribute_Table): Deleted.
603 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
604 of <CHISE_Attribute_Table>.
605 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
606 <CHISE_Attribute_Table>.
608 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
610 * chise.c (chise_open_attribute_table): New prototype.
611 (chise_close_attribute_table): New prototype.
612 (chise_get_attribute_table): New prototype.
614 * chise.h (chise_open_attribute_table): Deleted.
615 (chise_close_attribute_table): Deleted.
616 (chise_get_attribute_table): Deleted.
618 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
620 * chise.c (struct CHISE_DS): Definition of members are moved from
623 * chise.h (struct CHISE_DS): Omit definition of members.
625 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
627 * sample.c (main): Modify for new API.
629 * chise.c (chise_open_data_source): Interface change; allocate a
630 CHISE_DS object and return it.
631 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
632 the specified CHISE_DS object.
633 (chise_ds_open_decoding_table): Renamed from
634 `chise_open_decoding_table' and changed the interface.
635 (chise_dt_close): Renamed from `chise_close_decoding_table'.
636 (chise_ds_open_feature_table): Renamed from
637 `chise_open_feature_table' and changed the interface.
638 (chise_ft_close): Renamed from `chise_close_feature_table'.
639 (chise_open_attribute_table): Interface change; allocate a
640 CHISE_Attribute_Table object and return it; require pointer for
641 data source object instead of db_dir.
642 (chise_close_attribute_table): Destroy the specified
643 CHISE_Attribute_Table object.
645 * chise.h (struct CHISE_DS): Change type of location from <char*>
647 (chise_open_data_source): Change interface.
648 (chise_ds_close): Renamed from `chise_close_data_source'.
649 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
651 (chise_ds_open_decoding_table): Renamed from
652 `chise_open_decoding_table' and changed the interface.
653 (chise_dt_close): Renamed from `chise_close_decoding_table'.
654 (chise_ds_open_feature_table): Renamed from
655 `chise_open_feature_table' and changed the interface.
656 (chise_ft_close): Renamed from `chise_close_feature_table'.
657 (chise_open_attribute_table): Change interface.
659 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
661 * configure.in: Update version to 0.2.0.
663 * Makefile.in (ABI_VERSION): New variable.
664 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
666 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
668 * sample.c (main): Use <CHISE_Decoding_Table> instead of
669 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
670 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
671 `ft_ideographic_structure' and `ft_ascii'.
673 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
674 instead of <CHISE_Decoding_Table**> as the type of the first
676 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
677 <CHISE_Feature_Table**> as the type of the first argument.
678 (chise_ft_iterate): Modify for the structure
679 `CHISE_Feature_Table'.
680 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
681 of <CHISE_Attribute_Table **> as the type of the first argument;
682 modify for the structure <CHISE_Feature_Table>.
683 (chise_close_attribute_table): Modify for the structure
684 <CHISE_Feature_Table>.
685 (chise_get_attribute_table): Likewise.
686 (chise_put_attribute_table): Likewise.
688 * chise.h (CHISE_Attribute_Table): Define as a structure.
689 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
690 of <CHISE_Decoding_Table**> as the type of the first argument.
691 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
692 <CHISE_Feature_Table**> as the type of the first argument.
693 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
694 of <CHISE_Attribute_Table**> as the type of the first argument.
696 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
698 * chise.h (chise_dt_put_char): New prototype.
700 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
702 * chise.c (chise_dt_put_char): New function.
703 (chise_put_attribute_table): New function.
705 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
707 * chise.c (chise_format_char_id): New function.
708 (chise_ft_get_value): Use `chise_format_char_id'.
710 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
712 * chise.h: Define `_CHISE_H'.
714 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
716 * sample.c (test_map_func): New function.
717 (main): Add sample of `chise_ft_iterate'.
719 * chise.c (chise_char_id_parse_c_string): New function.
720 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
721 (chise_ft_iterate): New function.
723 * chise.h (chise_ft_iterate): New function.
725 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
727 * chise.c (chise_ft_get_value): Use escape forms for some special
730 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
732 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
734 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
735 argument `feature' for file name.
737 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
739 * chise.c, chise.h: Move strnlen related code from chise.h to
742 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
744 * Makefile.in (CFLAGS): Refer @CFLAGS@.
746 * configure.in: Add check code for Fink.
748 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
750 * Makefile.in (LIBTOOL): New variable.
751 (distclean): New target.
753 * configure.in: Check about libtool.
755 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
757 * Makefile.in: Use libtool.
759 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
761 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
763 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
764 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
769 * configure: New file.
771 * Makefile.in, config.h.in, configure.in: New files.
773 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
775 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
776 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
777 instead of `strlen'; fix problem about control characters.
779 * chise.h (chise_value_data): New inline function.
781 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
783 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
785 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
787 * sample.c: Add comments.
789 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
791 * sample.c: Use <chise.h>.
792 (db_dir): Use "/usr/local/lib/chise/char-db".
794 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
796 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
798 * Makefile, chise.c, chise.h, sample.c: New files.