1 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * chise.h: Don't include <db.h> and <errno.h>.
4 (CHISE_DS_Type): Use `CONCORD_Backend_Type' instead of `enum
7 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
9 * README.en (PREREQUISITES): Add `CONCORD'.
12 - Update version to 0.4.0.
13 - Don't link Berkeley DB.
14 - Use `AC_CHECK_LIB' to link CONCORD.
16 * chise.h: Use concord.h.
17 (CHISE_DS_Type): Use `enum CONCORD_Backend_Type' instead of `enum
19 (CHISE_DS_Berkeley_DB): New macro to wrap
20 `CONCORD_Backend_Berkeley_DB'.
21 (CHISE_DS): Use `CONCORD_Genre_Table' instead of `struct
23 (CHISE_Value): Use `CONCORD_String_Tank' instead of `DBT'.
24 (chise_value_size): Changed to non-inline function.
25 (chise_value_data): Likewise.
26 (chise_value_to_c_string): Likewise.
27 (struct CHISE_Feature_Table): Abolished.
28 (CHISE_Feature): Use `CONCORD_Feature' instead of
29 `CHISE_Feature_Table*'.
30 (struct CHISE_CCS_Table): Abolished.
31 (CHISE_CCS): Use `CONCORD_INDEX' instead of `CHISE_CCS_Table*'.
32 (struct CHISE_Property_Table): Abolished.
33 (CHISE_Property): Use `CONCORD_Feature' instead of
34 `CHISE_Property_Table*'.
36 * chise.c: Don't use "chise-name.h".
37 (chise_ds_open_feature_table): Deleted.
38 (chise_ft_close): Deleted.
39 (chise_ds_open_ccs_table): Deleted.
40 (chise_ccst_close): Deleted.
41 (chise_ds_open_property_table): Deleted.
42 (chise_pt_close): Deleted.
43 (CHISE_Attribute_Table): Deleted.
44 (CHISE_Attribute_Table_open): Deleted.
45 (CHISE_Attribute_Table_close): Deleted.
46 (chise_attribute_table_get): Deleted.
47 (chise_attribute_table_put): Deleted.
48 (chise_value_size): New function.
49 (chise_value_data): New function.
50 (chise_value_to_c_string): New function.
51 (struct CHISE_DS): Abolished.
52 (CHISE_DS_open): New implementation; use `concord_open_ds' and
53 `concord_ds_get_genre'.
54 (CHISE_DS_close): New implementation; use `CONCORD_DS_close' and
55 `concord_genre_get_data_source'.
56 (chise_ds_location): New implementation; use `concord_ds_location'
57 and `concord_genre_get_data_source'.
58 (chise_ds_get_feature): New implementation; use
59 `concord_genre_get_feature'.
60 (chise_ds_get_ccs): New implementation; use
61 `concord_genre_get_index'.
62 (chise_ds_get_property): New implementation; use
63 `concord_ds_get_genre', `concord_genre_get_data_source' and
64 `concord_genre_get_feature'.
65 (chise_ds_foreach_char_feature_name): New implementation; use
66 `concord_genre_foreach_feature_name'.
67 (struct CHISE_Feature_Table): Abolished.
68 (chise_feature_setup_db): New implementation; use
69 `concord_feature_setup_db'.
70 (chise_feature_sync): New implementation; use
71 `concord_feature_sync'.
72 (chise_char_set_feature_value): New implementation; use
73 `concord_stroid_set_feature_str'.
74 (chise_char_load_feature_value): New implementation; use
75 `concord_stroid_get_feature_string'.
76 (chise_char_gets_feature_value): New implementation; use
77 `concord_stroid_gets_feature'.
78 (chise_feature_for_a_char_with_value_func): New variable.
79 (chise_feature_foreach_char_with_value_wrapper): New function.
80 (chise_feature_foreach_char_with_value): New implementation; use
81 `chise_feature_for_a_char_with_value_func',
82 `chise_feature_foreach_char_with_value_wrapper' and
83 `concord_feature_foreach_object_string'.
84 (struct CHISE_CCS_Table): Abolished.
85 (chise_ccs_setup_db): New implementation; use
86 `concord_index_setup_db'.
87 (chise_ccs_sync): New implementation; use `concord_index_sync'.
88 (chise_ccs_decode): Use `concord_index_strid_get_object_string'
89 instead of `chise_attribute_table_get'.
90 (chise_ccs_set_decoded_char): Use
91 `concord_index_strid_set_object_str' instead of
92 `concord_index_strid_set_object_str'.
93 (struct CHISE_Property_Table): Abolished.
94 (chise_ds_open_property_table): Deleted.
95 (chise_pt_close): Deleted.
96 (chise_property_setup_db): New implementation; use
97 `concord_feature_setup_db'.
98 (chise_property_sync): New implementation; use
99 `concord_feature_sync'.
100 (chise_feature_set_property_value): New implementation; use
101 `concord_stroid_set_feature_str' and `concord_feature_get_name'.
102 (chise_feature_load_property_value): New implementation; use
103 `concord_stroid_get_feature_string' and
104 `concord_feature_get_name'.
105 (chise_feature_gets_property_value): New implementation; use
106 `concord_stroid_gets_feature' and `concord_feature_get_name'.
108 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
110 * chise-name.h, name.c: Deleted.
112 * Makefile.in (CHISE_DIR_VERSION): Update to 1.0.
113 (ABI_VERSION): Update to 3:0:2.
114 (HEADERS): Delete chise-name.h.
115 (OBJS): Delete name.lo.
118 2005-03-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
120 * libchise 0.3.0 released.
122 2005-03-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
124 * chise.h: Modify for C++.
126 * sample.c (test_radical_func): New function.
127 (main): Add sample code about `ideographic-radical'.
129 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
131 * configure.in: Update version to 0.3.0.
133 * Makefile.in (datadir): New variable.
134 (libexecdir): Commented out.
135 (sharedstatedir): New variable.
136 (CHISE_DIR_PREFIX): Use ${datadir}/chise instead of
138 (CHISE_DIR_VERSION): Update to 0.3.
139 (CHISE_DB_DIR): Use ${CHISE_DIR} instead of
140 ${CHISE_DIR}/${target}.
142 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
144 * chise.c (struct CHISE_DS): Add new member `property_names'.
145 (CHISE_DS_open): Initialize `property_names'.
146 (CHISE_DS_close): Destroy `property_names'.
147 (chise_ds_location): New function.
148 (chise_ds_get_property): New function.
149 (struct CHISE_Property_Table): New structure.
150 (chise_ds_open_property_table): New function.
151 (chise_pt_close): Likewise.
152 (chise_property_setup_db): Likewise.
153 (chise_property_sync): Likewise.
154 (chise_feature_set_property_value): Likewise.
155 (chise_feature_load_property_value): Likewise.
156 (chise_feature_gets_property_value): Likewise.
158 * chise.h (chise_ds_location): New prototype.
159 (CHISE_Property_Table): New type.
160 (CHISE_Property): New type.
161 (chise_ds_get_property): New prototype.
162 (chise_property_setup_db): Likewise.
163 (chise_property_sync): Likewise.
164 (chise_feature_set_property_value): Likewise.
165 (chise_feature_load_property_value): Likewise.
166 (chise_feature_gets_property_value): Likewise.
168 * sample.c (main): Use `chise_ds_location'.
170 * configure.in: Update version to 0.2.2.
172 * Makefile.in (ABI_VERSION): Update to 2:0:1.
175 2004-03-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
177 * libchise 0.2.1 released.
179 * Makefile.in (ABI_VERSION): Update to Revision 1.
181 * configure.in: Update version to 0.2.1.
183 2004-02-26 MORIOKA Tomohiko <tomo@m17n.org>
185 * name.c (chise_make_name_table): Change initial number of hash
187 (chise_destroy_name_table): Destroy each entry.
189 * chise.c (CHISE_DS_close): Use `chise_destroy_name_table'.
192 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
194 * libchise 0.2.0 released.
196 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
198 * Makefile.in (TAR): New variable.
200 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * Makefile.in (tar): New target.
204 2003-11-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
206 * README.en, COPYING.LIB: New files.
208 * chise-name.h, chise.c, chise.h, name.c: Add header.
210 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
212 * sample.c (test_map_func): Modify to display UCS code point and
214 (main): Use `chise_system_db_dir'; display `numeric-value' instead
217 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
219 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
222 * chise.h (chise_system_db_dir): New constant.
224 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
226 * Makefile.in (LIBS): Don't add -ldb.
228 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
229 for db4 when the library is found.
231 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
233 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
236 * Makefile.in (target): New variable.
237 (top_builddir): New variable.
238 (CHISE_DIR_PREFIX): New variable.
239 (CHISE_DIR_VERSION): New variable.
240 (CHISE_DIR): New variable.
241 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
242 (CHISE_SI_DB_DIR): New variable.
243 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
244 (chise.lo): Use $(CHISE_CFLAGS).
246 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
247 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
249 * chise.c (chise_system_db_dir): New constant.
250 (CHISE_DS_open): Don't use DBTYPE.
252 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
254 * chise.h (CHISE_DS_open): Don't use DBTYPE.
256 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
258 * Makefile.in (DB_DIR): Update version to 0.2.
260 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
262 * chise.c (chise_ds_foreach_char_feature_name): Read
263 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
264 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
265 (chise_ccs_setup_db): Likewise.
266 (CHISE_Attribute_Table_open): Change interface to specify
267 category/key_type/name instead of encoding/feature.
269 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
271 * chise.c (chise_ds_foreach_char_feature_name): New function.
272 (chise_feature_foreach_char_with_value): Renamed from
273 `chise_char_feature_value_iterate'.
275 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
277 * sample.c (test_name_map_func): New function.
278 (main): Use `chise_ds_foreach_char_feature_name'.
280 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
283 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
284 (chise_feature_foreach_char_with_value): Renamed from
285 `chise_char_feature_value_iterate'.
287 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
289 * sample.c (char db_dir): Deleted.
290 (main): Use ${chise_db_dir}/db/ for the location of data-source.
292 * Makefile.in (prefix): Use @prefix@.
293 (exec_prefix): Use @exec_prefix@.
294 (libdir): Use @libdir@.
295 (libexecdir): New variable.
296 (DB_INSTALLDIR): Deleted.
297 (DB_DIR): New variable.
298 (chise.lo): Specify DB_DIR.
299 (install): Don't call install.db.
300 (install.db): Deleted.
302 * chise.h, chise.c (chise_db_dir): New variable.
303 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
304 as the type of location.
306 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
308 * chise.h (chise_feature_setup_db): New prototype.
309 (chise_ccs_setup_db): Likewise.
311 * chise.c (chise_feature_setup_db): Changed to public function.
312 (chise_ccs_setup_db): New function.
313 (chise_ccs_decode): Use `chise_ccs_setup_db'.
314 (chise_ccs_set_decoded_char): Likewise.
316 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
318 * chise.c (CHISE_Attribute_Table_open): Create required
319 directories when running with create mode.
321 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
323 * chise.h (chise_feature_sync): New prototype.
324 (chise_char_set_feature_value): New prototype.
325 (chise_ds_load_char_feature_value): New inline function.
327 * chise.c (chise_feature_sync): New function.
328 (chise_char_set_feature_value): New function.
330 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
332 * sample.c (main): Use `chise_ds_decode_char' instead of
333 `chise_ds_get_ccs' and `chise_ccs_decode'.
335 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
337 (chise_ccs_set_decoded_char): Likewise.
339 * chise.h (chise_ds_decode_char): New inline function.
341 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
344 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
345 - `chise_ds_close' is renamed to `CHISE_DS_close'.
347 * name.c: Modify to avoid warning.
349 * chise-name.h (chise_make_name_table): Modify to avoid warning.
351 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
353 (CHISE_Attribute_Table_open): Renamed from
354 `chise_open_attribute_table'.
355 (CHISE_Attribute_Table_close): Renamed from
356 `chise_close_attribute_table'.
357 (chise_attribute_table_get): Renamed from
358 `chise_get_attribute_table'.
359 (chise_attribute_table_put): Renamed from
360 `chise_put_attribute_table'.
361 (CHISE_DS_open): Renamed from `chise_open_data_source'.
362 (CHISE_DS_close): Renamed from `chise_ds_close'.
363 (chise_feature_setup_db): New function.
364 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
365 (chise_char_gets_feature_value): Likewise.
366 (chise_char_feature_value_iterate): Likewise.
368 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
369 (chise.lo): Add dependency on sysdep.h.
371 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
372 (CHISE_DS_close): Renamed from `chise_ds_close'.
374 * sysdep.h: New file [separate from chise.c].
376 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
378 * chise.h (chise_ds_open_feature_table): Abolished.
379 (chise_ft_close): Likewise.
381 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
383 * sample.c: Update for the latest API.
385 * chise.c (struct CHISE_DS): Add new member `subtype' and
387 (chise_open_data_source): Add new arguments `subtype' and
389 (chise_ds_get_feature): Delete arguments `real_subtype',
390 `accessmask', `modemask'.
391 (chise_ds_get_ccs): Likewise.
392 (struct CHISE_Feature_Table): Add new member `name' and `access'.
393 (chise_ds_open_feature_table): Delete arguments `real_subtype',
394 `accessmask', `modemask'.
395 (chise_ft_close): Release `table->name'.
396 (chise_char_load_feature_value): Setup `table->db'.
397 (chise_char_gets_feature_value): Likewise.
398 (chise_char_feature_value_iterate): Return an integer value; setup
400 (struct CHISE_CCS_Table): Add new member `name' and `access'.
401 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
402 `accessmask', `modemask'.
403 (chise_ccst_close): Release `table->name'.
404 (chise_ccs_sync): New function.
405 (chise_ccs_decode): Setup `ccs->db'.
406 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
409 * chise.h (chise_open_data_source): Add new arguments `subtype'
411 (chise_ds_get_feature): Delete arguments `real_subtype',
412 `accessmask', `modemask'.
413 (chise_char_feature_value_iterate): Return an integer value.
414 (chise_char_feature_str_iterate): Comment out.
415 (chise_ds_open_feature_table): Delete arguments `real_subtype',
416 `accessmask', `modemask'.
417 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
419 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
420 (chise_ccs_sync): New prototype.
421 (chise_ds_open_ccs_table): Abolished.
422 (int chise_ccst_close): Abolished.
424 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
426 * sample.c (test_map_func): Modify for
427 chise_char_feature_value_iterate.
428 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
429 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
430 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
431 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
432 use `chise_char_gets_feature_value' instead of
433 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
434 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
436 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
438 * chise.c: Include "chise-name.h".
439 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
440 (chise_open_data_source): Setup ds->feature_names and
442 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
443 (chise_ds_get_feature): New function.
444 (chise_ds_get_ccs): New function.
445 (chise_char_load_feature_value): Renamed from
446 `chise_ft_get_value'; modify interface.
447 (chise_char_gets_feature_value): New function.
448 (chise_char_feature_value_iterate): Renamed from
449 `chise_ft_iterate'; modify interface.
450 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
451 (chise_ds_open_ccs_table): Renamed from
452 `chise_ds_open_decoding_table'.
453 (chise_ccst_close): Renamed from `chise_dt_close'.
454 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
455 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
457 * chise.h (CHISE_Feature): New type.
458 (chise_ds_get_feature): New prototype.
459 (chise_char_load_feature_value): Renamed from
460 `chise_ft_get_value'; modify interface.
461 (chise_char_gets_feature_value): New prototype.
462 (chise_char_feature_value_iterate): Renamed from
463 `chise_ft_iterate'; modify interface.
464 (chise_char_feature_str_iterate): New prototype.
465 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
466 (CHISE_CCS): New type.
467 (chise_ds_get_ccs): New prototype.
468 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
469 (chise_ds_open_ccs_table): Renamed from
470 `chise_ds_open_decoding_table'.
471 (chise_ccst_close): Renamed from `chise_dt_close'.
472 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
473 (chise_decode_char): Deleted.
474 (chise_get_feature): Deleted.
476 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
478 * name.c: Include "chise-name.h".
479 (chise_name_table_put): Use <const unsigned char*> instead of
480 <unsigned char*> for key.
481 (chise_name_table_get): Likewise.
483 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
484 instead of <unsigned char*> for key.
485 (chise_name_table_get): Likewise.
487 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
489 * Makefile.in (HEADERS): New variable.
490 (OBJS): New variable.
491 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
492 (chise.lo): Depends on config.h.
493 (name.lo): New target.
494 (install.h): Refer $(HEADERS).
496 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
498 * chise-name.h, name.c: New files.
500 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
502 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
503 CHISE_Attribute_Table>.
504 (chise_put_attribute_table): New prototype.
505 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
506 instead of <DB*> as the type of member `db'.
507 (chise_ds_open_decoding_table): New implementation.
508 (chise_dt_close): Likewise.
509 (chise_dt_get_char): Modify for new implementation of <struct
510 CHISE_Decoding_Table>.
511 (chise_dt_put_char): Likewise.
512 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
513 of <DB*> as the type of member `db'.
514 (chise_ds_open_feature_table): New implementation.
515 (chise_ft_close): Likewise.
516 (chise_ft_get_value): Modify for new implementation of <struct
517 CHISE_Feature_Table>.
518 (chise_open_attribute_table): Use db_dir instead of ds as the
519 first argument; modify for new implementation of
520 <CHISE_Attribute_Table>.
521 (chise_close_attribute_table): Modify for new implementation of
522 <CHISE_Attribute_Table>.
523 (chise_get_attribute_table): Likewise.
524 (chise_put_attribute_table): Likewise.
526 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
528 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
529 (struct CHISE_Decoding_Table): New structure.
530 (chise_ds_open_decoding_table): Cast the return value to
531 <CHISE_Decoding_Table*>.
532 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
533 (chise_dt_get_char): Likewise.
534 (struct CHISE_Feature_Table): New structure.
535 (chise_ds_open_feature_table): Cast the return value to
536 <CHISE_Feature_Table*>.
537 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
538 (chise_ft_get_value): Likewise.
540 * chise.h (CHISE_Attribute_Table): Deleted.
541 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
542 of <CHISE_Attribute_Table>.
543 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
544 <CHISE_Attribute_Table>.
546 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
548 * chise.c (chise_open_attribute_table): New prototype.
549 (chise_close_attribute_table): New prototype.
550 (chise_get_attribute_table): New prototype.
552 * chise.h (chise_open_attribute_table): Deleted.
553 (chise_close_attribute_table): Deleted.
554 (chise_get_attribute_table): Deleted.
556 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
558 * chise.c (struct CHISE_DS): Definition of members are moved from
561 * chise.h (struct CHISE_DS): Omit definition of members.
563 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
565 * sample.c (main): Modify for new API.
567 * chise.c (chise_open_data_source): Interface change; allocate a
568 CHISE_DS object and return it.
569 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
570 the specified CHISE_DS object.
571 (chise_ds_open_decoding_table): Renamed from
572 `chise_open_decoding_table' and changed the interface.
573 (chise_dt_close): Renamed from `chise_close_decoding_table'.
574 (chise_ds_open_feature_table): Renamed from
575 `chise_open_feature_table' and changed the interface.
576 (chise_ft_close): Renamed from `chise_close_feature_table'.
577 (chise_open_attribute_table): Interface change; allocate a
578 CHISE_Attribute_Table object and return it; require pointer for
579 data source object instead of db_dir.
580 (chise_close_attribute_table): Destroy the specified
581 CHISE_Attribute_Table object.
583 * chise.h (struct CHISE_DS): Change type of location from <char*>
585 (chise_open_data_source): Change interface.
586 (chise_ds_close): Renamed from `chise_close_data_source'.
587 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
589 (chise_ds_open_decoding_table): Renamed from
590 `chise_open_decoding_table' and changed the interface.
591 (chise_dt_close): Renamed from `chise_close_decoding_table'.
592 (chise_ds_open_feature_table): Renamed from
593 `chise_open_feature_table' and changed the interface.
594 (chise_ft_close): Renamed from `chise_close_feature_table'.
595 (chise_open_attribute_table): Change interface.
597 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
599 * configure.in: Update version to 0.2.0.
601 * Makefile.in (ABI_VERSION): New variable.
602 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
604 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
606 * sample.c (main): Use <CHISE_Decoding_Table> instead of
607 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
608 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
609 `ft_ideographic_structure' and `ft_ascii'.
611 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
612 instead of <CHISE_Decoding_Table**> as the type of the first
614 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
615 <CHISE_Feature_Table**> as the type of the first argument.
616 (chise_ft_iterate): Modify for the structure
617 `CHISE_Feature_Table'.
618 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
619 of <CHISE_Attribute_Table **> as the type of the first argument;
620 modify for the structure <CHISE_Feature_Table>.
621 (chise_close_attribute_table): Modify for the structure
622 <CHISE_Feature_Table>.
623 (chise_get_attribute_table): Likewise.
624 (chise_put_attribute_table): Likewise.
626 * chise.h (CHISE_Attribute_Table): Define as a structure.
627 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
628 of <CHISE_Decoding_Table**> as the type of the first argument.
629 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
630 <CHISE_Feature_Table**> as the type of the first argument.
631 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
632 of <CHISE_Attribute_Table**> as the type of the first argument.
634 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
636 * chise.h (chise_dt_put_char): New prototype.
638 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
640 * chise.c (chise_dt_put_char): New function.
641 (chise_put_attribute_table): New function.
643 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
645 * chise.c (chise_format_char_id): New function.
646 (chise_ft_get_value): Use `chise_format_char_id'.
648 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
650 * chise.h: Define `_CHISE_H'.
652 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
654 * sample.c (test_map_func): New function.
655 (main): Add sample of `chise_ft_iterate'.
657 * chise.c (chise_char_id_parse_c_string): New function.
658 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
659 (chise_ft_iterate): New function.
661 * chise.h (chise_ft_iterate): New function.
663 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
665 * chise.c (chise_ft_get_value): Use escape forms for some special
668 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
670 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
672 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
673 argument `feature' for file name.
675 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
677 * chise.c, chise.h: Move strnlen related code from chise.h to
680 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
682 * Makefile.in (CFLAGS): Refer @CFLAGS@.
684 * configure.in: Add check code for Fink.
686 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
688 * Makefile.in (LIBTOOL): New variable.
689 (distclean): New target.
691 * configure.in: Check about libtool.
693 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
695 * Makefile.in: Use libtool.
697 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
699 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
701 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
702 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
707 * configure: New file.
709 * Makefile.in, config.h.in, configure.in: New files.
711 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
713 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
714 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
715 instead of `strlen'; fix problem about control characters.
717 * chise.h (chise_value_data): New inline function.
719 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
721 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
723 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
725 * sample.c: Add comments.
727 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
729 * sample.c: Use <chise.h>.
730 (db_dir): Use "/usr/local/lib/chise/char-db".
732 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
734 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
736 * Makefile, chise.c, chise.h, sample.c: New files.