1 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * sample.c (test_map_func): Use <CHISE_Feature> instead of
4 <CHISE_Feature_Table *>.
5 (test_radical_func): Likewise.
7 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
9 * chise.c (chise_char_set_feature_value): Use
10 `concord_obj_put_feature_value_str' instead of
11 `concord_stroid_set_feature_str'.
12 (chise_char_load_feature_value): Use
13 `concord_obj_get_feature_value_string' instead of
14 `concord_stroid_get_feature_string'.
15 (chise_char_gets_feature_value): Use
16 `concord_obj_gets_feature_value' instead of
17 `concord_stroid_gets_feature'.
18 (chise_feature_foreach_char_with_value): Use
19 `concord_feature_foreach_obj_string' instead of
20 `concord_feature_foreach_object_string'.
21 (chise_ccs_decode): Use `concord_index_strid_get_obj_string'
22 instead of `concord_index_strid_get_object_string'.
23 (chise_ccs_set_decoded_char): Use `concord_index_strid_put_obj'
24 instead of `concord_index_strid_set_object_str'.
25 (chise_feature_set_property_value): Use
26 `concord_obj_put_feature_value_str' instead of
27 `concord_stroid_set_feature_str'.
28 (chise_feature_load_property_value): Use
29 `concord_obj_get_feature_value_string' instead of
30 `concord_stroid_get_feature_string'.
31 (chise_feature_gets_property_value): Use
32 `concord_obj_gets_feature_value' instead of
33 `concord_stroid_gets_feature'.
35 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
37 * chise.c (CHISE_DS_close): Use `concord_close_ds' instead of
40 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
42 * chise.h, chise.c (chise_db_format_version): New constant.
44 * Makefile.in (CHISE_CFLAGS): Add new macro
45 `CHISE_DB_FORMAT_VERSION'.
46 (distclean): Delete autom4te.cache, autoscan.log, configure.scan
49 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
51 * chise.h: Don't include <db.h> and <errno.h>.
52 (CHISE_DS_Type): Use <CONCORD_Backend_Type> instead of <enum
53 CONCORD_Backend_Type>.
55 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
57 * README.en (PREREQUISITES): Add `CONCORD'.
60 - Update version to 0.4.0.
61 - Don't link Berkeley DB.
62 - Use `AC_CHECK_LIB' to link CONCORD.
64 * chise.h: Use concord.h.
65 (CHISE_DS_Type): Use <enum CONCORD_Backend_Type> instead of <enum
67 (CHISE_DS_Berkeley_DB): New macro to wrap
68 `CONCORD_Backend_Berkeley_DB'.
69 (CHISE_DS): Use <CONCORD_Genre_Table> instead of <struct
71 (CHISE_Value): Use <CONCORD_String_Tank> instead of <DBT>.
72 (chise_value_size): Changed to non-inline function.
73 (chise_value_data): Likewise.
74 (chise_value_to_c_string): Likewise.
75 (struct CHISE_Feature_Table): Abolished.
76 (CHISE_Feature): Use <CONCORD_Feature> instead of
77 <CHISE_Feature_Table*>.
78 (struct CHISE_CCS_Table): Abolished.
79 (CHISE_CCS): Use <CONCORD_INDEX> instead of <CHISE_CCS_Table*>.
80 (struct CHISE_Property_Table): Abolished.
81 (CHISE_Property): Use <CONCORD_Feature> instead of
82 <CHISE_Property_Table*>.
84 * chise.c: Don't use "chise-name.h".
85 (chise_ds_open_feature_table): Deleted.
86 (chise_ft_close): Deleted.
87 (chise_ds_open_ccs_table): Deleted.
88 (chise_ccst_close): Deleted.
89 (chise_ds_open_property_table): Deleted.
90 (chise_pt_close): Deleted.
91 (CHISE_Attribute_Table): Deleted.
92 (CHISE_Attribute_Table_open): Deleted.
93 (CHISE_Attribute_Table_close): Deleted.
94 (chise_attribute_table_get): Deleted.
95 (chise_attribute_table_put): Deleted.
96 (chise_value_size): New function.
97 (chise_value_data): New function.
98 (chise_value_to_c_string): New function.
99 (struct CHISE_DS): Abolished.
100 (CHISE_DS_open): New implementation; use `concord_open_ds' and
101 `concord_ds_get_genre'.
102 (CHISE_DS_close): New implementation; use `CONCORD_DS_close' and
103 `concord_genre_get_data_source'.
104 (chise_ds_location): New implementation; use `concord_ds_location'
105 and `concord_genre_get_data_source'.
106 (chise_ds_get_feature): New implementation; use
107 `concord_genre_get_feature'.
108 (chise_ds_get_ccs): New implementation; use
109 `concord_genre_get_index'.
110 (chise_ds_get_property): New implementation; use
111 `concord_ds_get_genre', `concord_genre_get_data_source' and
112 `concord_genre_get_feature'.
113 (chise_ds_foreach_char_feature_name): New implementation; use
114 `concord_genre_foreach_feature_name'.
115 (struct CHISE_Feature_Table): Abolished.
116 (chise_feature_setup_db): New implementation; use
117 `concord_feature_setup_db'.
118 (chise_feature_sync): New implementation; use
119 `concord_feature_sync'.
120 (chise_char_set_feature_value): New implementation; use
121 `concord_stroid_set_feature_str'.
122 (chise_char_load_feature_value): New implementation; use
123 `concord_stroid_get_feature_string'.
124 (chise_char_gets_feature_value): New implementation; use
125 `concord_stroid_gets_feature'.
126 (chise_feature_for_a_char_with_value_func): New variable.
127 (chise_feature_foreach_char_with_value_wrapper): New function.
128 (chise_feature_foreach_char_with_value): New implementation; use
129 `chise_feature_for_a_char_with_value_func',
130 `chise_feature_foreach_char_with_value_wrapper' and
131 `concord_feature_foreach_object_string'.
132 (struct CHISE_CCS_Table): Abolished.
133 (chise_ccs_setup_db): New implementation; use
134 `concord_index_setup_db'.
135 (chise_ccs_sync): New implementation; use `concord_index_sync'.
136 (chise_ccs_decode): Use `concord_index_strid_get_object_string'
137 instead of `chise_attribute_table_get'.
138 (chise_ccs_set_decoded_char): Use
139 `concord_index_strid_set_object_str' instead of
140 `concord_index_strid_set_object_str'.
141 (struct CHISE_Property_Table): Abolished.
142 (chise_ds_open_property_table): Deleted.
143 (chise_pt_close): Deleted.
144 (chise_property_setup_db): New implementation; use
145 `concord_feature_setup_db'.
146 (chise_property_sync): New implementation; use
147 `concord_feature_sync'.
148 (chise_feature_set_property_value): New implementation; use
149 `concord_stroid_set_feature_str' and `concord_feature_get_name'.
150 (chise_feature_load_property_value): New implementation; use
151 `concord_stroid_get_feature_string' and
152 `concord_feature_get_name'.
153 (chise_feature_gets_property_value): New implementation; use
154 `concord_stroid_gets_feature' and `concord_feature_get_name'.
156 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
158 * chise-name.h, name.c: Deleted.
160 * Makefile.in (CHISE_DIR_VERSION): Update to 1.0.
161 (ABI_VERSION): Update to 3:0:2.
162 (HEADERS): Delete chise-name.h.
163 (OBJS): Delete name.lo.
166 2005-03-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
168 * libchise 0.3.0 released.
170 2005-03-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
172 * chise.h: Modify for C++.
174 * sample.c (test_radical_func): New function.
175 (main): Add sample code about `ideographic-radical'.
177 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
179 * configure.in: Update version to 0.3.0.
181 * Makefile.in (datadir): New variable.
182 (libexecdir): Commented out.
183 (sharedstatedir): New variable.
184 (CHISE_DIR_PREFIX): Use ${datadir}/chise instead of
186 (CHISE_DIR_VERSION): Update to 0.3.
187 (CHISE_DB_DIR): Use ${CHISE_DIR} instead of
188 ${CHISE_DIR}/${target}.
190 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
192 * chise.c (struct CHISE_DS): Add new member `property_names'.
193 (CHISE_DS_open): Initialize `property_names'.
194 (CHISE_DS_close): Destroy `property_names'.
195 (chise_ds_location): New function.
196 (chise_ds_get_property): New function.
197 (struct CHISE_Property_Table): New structure.
198 (chise_ds_open_property_table): New function.
199 (chise_pt_close): Likewise.
200 (chise_property_setup_db): Likewise.
201 (chise_property_sync): Likewise.
202 (chise_feature_set_property_value): Likewise.
203 (chise_feature_load_property_value): Likewise.
204 (chise_feature_gets_property_value): Likewise.
206 * chise.h (chise_ds_location): New prototype.
207 (CHISE_Property_Table): New type.
208 (CHISE_Property): New type.
209 (chise_ds_get_property): New prototype.
210 (chise_property_setup_db): Likewise.
211 (chise_property_sync): Likewise.
212 (chise_feature_set_property_value): Likewise.
213 (chise_feature_load_property_value): Likewise.
214 (chise_feature_gets_property_value): Likewise.
216 * sample.c (main): Use `chise_ds_location'.
218 * configure.in: Update version to 0.2.2.
220 * Makefile.in (ABI_VERSION): Update to 2:0:1.
223 2004-03-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
225 * libchise 0.2.1 released.
227 * Makefile.in (ABI_VERSION): Update to Revision 1.
229 * configure.in: Update version to 0.2.1.
231 2004-02-26 MORIOKA Tomohiko <tomo@m17n.org>
233 * name.c (chise_make_name_table): Change initial number of hash
235 (chise_destroy_name_table): Destroy each entry.
237 * chise.c (CHISE_DS_close): Use `chise_destroy_name_table'.
240 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
242 * libchise 0.2.0 released.
244 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
246 * Makefile.in (TAR): New variable.
248 2003-11-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
250 * Makefile.in (tar): New target.
252 2003-11-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
254 * README.en, COPYING.LIB: New files.
256 * chise-name.h, chise.c, chise.h, name.c: Add header.
258 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
260 * sample.c (test_map_func): Modify to display UCS code point and
262 (main): Use `chise_system_db_dir'; display `numeric-value' instead
265 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
267 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
270 * chise.h (chise_system_db_dir): New constant.
272 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
274 * Makefile.in (LIBS): Don't add -ldb.
276 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
277 for db4 when the library is found.
279 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
281 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
284 * Makefile.in (target): New variable.
285 (top_builddir): New variable.
286 (CHISE_DIR_PREFIX): New variable.
287 (CHISE_DIR_VERSION): New variable.
288 (CHISE_DIR): New variable.
289 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
290 (CHISE_SI_DB_DIR): New variable.
291 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
292 (chise.lo): Use $(CHISE_CFLAGS).
294 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
295 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
297 * chise.c (chise_system_db_dir): New constant.
298 (CHISE_DS_open): Don't use DBTYPE.
300 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
302 * chise.h (CHISE_DS_open): Don't use DBTYPE.
304 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
306 * Makefile.in (DB_DIR): Update version to 0.2.
308 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
310 * chise.c (chise_ds_foreach_char_feature_name): Read
311 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
312 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
313 (chise_ccs_setup_db): Likewise.
314 (CHISE_Attribute_Table_open): Change interface to specify
315 category/key_type/name instead of encoding/feature.
317 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
319 * chise.c (chise_ds_foreach_char_feature_name): New function.
320 (chise_feature_foreach_char_with_value): Renamed from
321 `chise_char_feature_value_iterate'.
323 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
325 * sample.c (test_name_map_func): New function.
326 (main): Use `chise_ds_foreach_char_feature_name'.
328 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
331 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
332 (chise_feature_foreach_char_with_value): Renamed from
333 `chise_char_feature_value_iterate'.
335 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
337 * sample.c (char db_dir): Deleted.
338 (main): Use ${chise_db_dir}/db/ for the location of data-source.
340 * Makefile.in (prefix): Use @prefix@.
341 (exec_prefix): Use @exec_prefix@.
342 (libdir): Use @libdir@.
343 (libexecdir): New variable.
344 (DB_INSTALLDIR): Deleted.
345 (DB_DIR): New variable.
346 (chise.lo): Specify DB_DIR.
347 (install): Don't call install.db.
348 (install.db): Deleted.
350 * chise.h, chise.c (chise_db_dir): New variable.
351 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
352 as the type of location.
354 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
356 * chise.h (chise_feature_setup_db): New prototype.
357 (chise_ccs_setup_db): Likewise.
359 * chise.c (chise_feature_setup_db): Changed to public function.
360 (chise_ccs_setup_db): New function.
361 (chise_ccs_decode): Use `chise_ccs_setup_db'.
362 (chise_ccs_set_decoded_char): Likewise.
364 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
366 * chise.c (CHISE_Attribute_Table_open): Create required
367 directories when running with create mode.
369 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
371 * chise.h (chise_feature_sync): New prototype.
372 (chise_char_set_feature_value): New prototype.
373 (chise_ds_load_char_feature_value): New inline function.
375 * chise.c (chise_feature_sync): New function.
376 (chise_char_set_feature_value): New function.
378 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * sample.c (main): Use `chise_ds_decode_char' instead of
381 `chise_ds_get_ccs' and `chise_ccs_decode'.
383 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
385 (chise_ccs_set_decoded_char): Likewise.
387 * chise.h (chise_ds_decode_char): New inline function.
389 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
392 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
393 - `chise_ds_close' is renamed to `CHISE_DS_close'.
395 * name.c: Modify to avoid warning.
397 * chise-name.h (chise_make_name_table): Modify to avoid warning.
399 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
401 (CHISE_Attribute_Table_open): Renamed from
402 `chise_open_attribute_table'.
403 (CHISE_Attribute_Table_close): Renamed from
404 `chise_close_attribute_table'.
405 (chise_attribute_table_get): Renamed from
406 `chise_get_attribute_table'.
407 (chise_attribute_table_put): Renamed from
408 `chise_put_attribute_table'.
409 (CHISE_DS_open): Renamed from `chise_open_data_source'.
410 (CHISE_DS_close): Renamed from `chise_ds_close'.
411 (chise_feature_setup_db): New function.
412 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
413 (chise_char_gets_feature_value): Likewise.
414 (chise_char_feature_value_iterate): Likewise.
416 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
417 (chise.lo): Add dependency on sysdep.h.
419 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
420 (CHISE_DS_close): Renamed from `chise_ds_close'.
422 * sysdep.h: New file [separate from chise.c].
424 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
426 * chise.h (chise_ds_open_feature_table): Abolished.
427 (chise_ft_close): Likewise.
429 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
431 * sample.c: Update for the latest API.
433 * chise.c (struct CHISE_DS): Add new member `subtype' and
435 (chise_open_data_source): Add new arguments `subtype' and
437 (chise_ds_get_feature): Delete arguments `real_subtype',
438 `accessmask', `modemask'.
439 (chise_ds_get_ccs): Likewise.
440 (struct CHISE_Feature_Table): Add new member `name' and `access'.
441 (chise_ds_open_feature_table): Delete arguments `real_subtype',
442 `accessmask', `modemask'.
443 (chise_ft_close): Release `table->name'.
444 (chise_char_load_feature_value): Setup `table->db'.
445 (chise_char_gets_feature_value): Likewise.
446 (chise_char_feature_value_iterate): Return an integer value; setup
448 (struct CHISE_CCS_Table): Add new member `name' and `access'.
449 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
450 `accessmask', `modemask'.
451 (chise_ccst_close): Release `table->name'.
452 (chise_ccs_sync): New function.
453 (chise_ccs_decode): Setup `ccs->db'.
454 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
457 * chise.h (chise_open_data_source): Add new arguments `subtype'
459 (chise_ds_get_feature): Delete arguments `real_subtype',
460 `accessmask', `modemask'.
461 (chise_char_feature_value_iterate): Return an integer value.
462 (chise_char_feature_str_iterate): Comment out.
463 (chise_ds_open_feature_table): Delete arguments `real_subtype',
464 `accessmask', `modemask'.
465 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
467 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
468 (chise_ccs_sync): New prototype.
469 (chise_ds_open_ccs_table): Abolished.
470 (int chise_ccst_close): Abolished.
472 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
474 * sample.c (test_map_func): Modify for
475 chise_char_feature_value_iterate.
476 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
477 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
478 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
479 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
480 use `chise_char_gets_feature_value' instead of
481 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
482 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
484 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
486 * chise.c: Include "chise-name.h".
487 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
488 (chise_open_data_source): Setup ds->feature_names and
490 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
491 (chise_ds_get_feature): New function.
492 (chise_ds_get_ccs): New function.
493 (chise_char_load_feature_value): Renamed from
494 `chise_ft_get_value'; modify interface.
495 (chise_char_gets_feature_value): New function.
496 (chise_char_feature_value_iterate): Renamed from
497 `chise_ft_iterate'; modify interface.
498 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
499 (chise_ds_open_ccs_table): Renamed from
500 `chise_ds_open_decoding_table'.
501 (chise_ccst_close): Renamed from `chise_dt_close'.
502 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
503 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
505 * chise.h (CHISE_Feature): New type.
506 (chise_ds_get_feature): New prototype.
507 (chise_char_load_feature_value): Renamed from
508 `chise_ft_get_value'; modify interface.
509 (chise_char_gets_feature_value): New prototype.
510 (chise_char_feature_value_iterate): Renamed from
511 `chise_ft_iterate'; modify interface.
512 (chise_char_feature_str_iterate): New prototype.
513 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
514 (CHISE_CCS): New type.
515 (chise_ds_get_ccs): New prototype.
516 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
517 (chise_ds_open_ccs_table): Renamed from
518 `chise_ds_open_decoding_table'.
519 (chise_ccst_close): Renamed from `chise_dt_close'.
520 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
521 (chise_decode_char): Deleted.
522 (chise_get_feature): Deleted.
524 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
526 * name.c: Include "chise-name.h".
527 (chise_name_table_put): Use <const unsigned char*> instead of
528 <unsigned char*> for key.
529 (chise_name_table_get): Likewise.
531 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
532 instead of <unsigned char*> for key.
533 (chise_name_table_get): Likewise.
535 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
537 * Makefile.in (HEADERS): New variable.
538 (OBJS): New variable.
539 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
540 (chise.lo): Depends on config.h.
541 (name.lo): New target.
542 (install.h): Refer $(HEADERS).
544 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
546 * chise-name.h, name.c: New files.
548 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
550 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
551 CHISE_Attribute_Table>.
552 (chise_put_attribute_table): New prototype.
553 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
554 instead of <DB*> as the type of member `db'.
555 (chise_ds_open_decoding_table): New implementation.
556 (chise_dt_close): Likewise.
557 (chise_dt_get_char): Modify for new implementation of <struct
558 CHISE_Decoding_Table>.
559 (chise_dt_put_char): Likewise.
560 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
561 of <DB*> as the type of member `db'.
562 (chise_ds_open_feature_table): New implementation.
563 (chise_ft_close): Likewise.
564 (chise_ft_get_value): Modify for new implementation of <struct
565 CHISE_Feature_Table>.
566 (chise_open_attribute_table): Use db_dir instead of ds as the
567 first argument; modify for new implementation of
568 <CHISE_Attribute_Table>.
569 (chise_close_attribute_table): Modify for new implementation of
570 <CHISE_Attribute_Table>.
571 (chise_get_attribute_table): Likewise.
572 (chise_put_attribute_table): Likewise.
574 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
576 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
577 (struct CHISE_Decoding_Table): New structure.
578 (chise_ds_open_decoding_table): Cast the return value to
579 <CHISE_Decoding_Table*>.
580 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
581 (chise_dt_get_char): Likewise.
582 (struct CHISE_Feature_Table): New structure.
583 (chise_ds_open_feature_table): Cast the return value to
584 <CHISE_Feature_Table*>.
585 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
586 (chise_ft_get_value): Likewise.
588 * chise.h (CHISE_Attribute_Table): Deleted.
589 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
590 of <CHISE_Attribute_Table>.
591 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
592 <CHISE_Attribute_Table>.
594 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
596 * chise.c (chise_open_attribute_table): New prototype.
597 (chise_close_attribute_table): New prototype.
598 (chise_get_attribute_table): New prototype.
600 * chise.h (chise_open_attribute_table): Deleted.
601 (chise_close_attribute_table): Deleted.
602 (chise_get_attribute_table): Deleted.
604 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
606 * chise.c (struct CHISE_DS): Definition of members are moved from
609 * chise.h (struct CHISE_DS): Omit definition of members.
611 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
613 * sample.c (main): Modify for new API.
615 * chise.c (chise_open_data_source): Interface change; allocate a
616 CHISE_DS object and return it.
617 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
618 the specified CHISE_DS object.
619 (chise_ds_open_decoding_table): Renamed from
620 `chise_open_decoding_table' and changed the interface.
621 (chise_dt_close): Renamed from `chise_close_decoding_table'.
622 (chise_ds_open_feature_table): Renamed from
623 `chise_open_feature_table' and changed the interface.
624 (chise_ft_close): Renamed from `chise_close_feature_table'.
625 (chise_open_attribute_table): Interface change; allocate a
626 CHISE_Attribute_Table object and return it; require pointer for
627 data source object instead of db_dir.
628 (chise_close_attribute_table): Destroy the specified
629 CHISE_Attribute_Table object.
631 * chise.h (struct CHISE_DS): Change type of location from <char*>
633 (chise_open_data_source): Change interface.
634 (chise_ds_close): Renamed from `chise_close_data_source'.
635 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
637 (chise_ds_open_decoding_table): Renamed from
638 `chise_open_decoding_table' and changed the interface.
639 (chise_dt_close): Renamed from `chise_close_decoding_table'.
640 (chise_ds_open_feature_table): Renamed from
641 `chise_open_feature_table' and changed the interface.
642 (chise_ft_close): Renamed from `chise_close_feature_table'.
643 (chise_open_attribute_table): Change interface.
645 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
647 * configure.in: Update version to 0.2.0.
649 * Makefile.in (ABI_VERSION): New variable.
650 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
652 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
654 * sample.c (main): Use <CHISE_Decoding_Table> instead of
655 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
656 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
657 `ft_ideographic_structure' and `ft_ascii'.
659 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
660 instead of <CHISE_Decoding_Table**> as the type of the first
662 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
663 <CHISE_Feature_Table**> as the type of the first argument.
664 (chise_ft_iterate): Modify for the structure
665 `CHISE_Feature_Table'.
666 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
667 of <CHISE_Attribute_Table **> as the type of the first argument;
668 modify for the structure <CHISE_Feature_Table>.
669 (chise_close_attribute_table): Modify for the structure
670 <CHISE_Feature_Table>.
671 (chise_get_attribute_table): Likewise.
672 (chise_put_attribute_table): Likewise.
674 * chise.h (CHISE_Attribute_Table): Define as a structure.
675 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
676 of <CHISE_Decoding_Table**> as the type of the first argument.
677 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
678 <CHISE_Feature_Table**> as the type of the first argument.
679 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
680 of <CHISE_Attribute_Table**> as the type of the first argument.
682 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
684 * chise.h (chise_dt_put_char): New prototype.
686 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
688 * chise.c (chise_dt_put_char): New function.
689 (chise_put_attribute_table): New function.
691 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
693 * chise.c (chise_format_char_id): New function.
694 (chise_ft_get_value): Use `chise_format_char_id'.
696 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
698 * chise.h: Define `_CHISE_H'.
700 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
702 * sample.c (test_map_func): New function.
703 (main): Add sample of `chise_ft_iterate'.
705 * chise.c (chise_char_id_parse_c_string): New function.
706 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
707 (chise_ft_iterate): New function.
709 * chise.h (chise_ft_iterate): New function.
711 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
713 * chise.c (chise_ft_get_value): Use escape forms for some special
716 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
718 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
720 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
721 argument `feature' for file name.
723 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
725 * chise.c, chise.h: Move strnlen related code from chise.h to
728 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
730 * Makefile.in (CFLAGS): Refer @CFLAGS@.
732 * configure.in: Add check code for Fink.
734 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
736 * Makefile.in (LIBTOOL): New variable.
737 (distclean): New target.
739 * configure.in: Check about libtool.
741 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
743 * Makefile.in: Use libtool.
745 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
747 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
749 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
750 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
755 * configure: New file.
757 * Makefile.in, config.h.in, configure.in: New files.
759 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
761 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
762 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
763 instead of `strlen'; fix problem about control characters.
765 * chise.h (chise_value_data): New inline function.
767 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
769 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
771 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
773 * sample.c: Add comments.
775 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
777 * sample.c: Use <chise.h>.
778 (db_dir): Use "/usr/local/lib/chise/char-db".
780 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
782 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
784 * Makefile, chise.c, chise.h, sample.c: New files.