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