1 2003-11-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * README.en, COPYING.LIB: New files.
5 * chise-name.h, chise.c, chise.h, name.c: Add header.
7 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
9 * sample.c (test_map_func): Modify to display UCS code point and
11 (main): Use `chise_system_db_dir'; display `numeric-value' instead
14 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
16 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
19 * chise.h (chise_system_db_dir): New constant.
21 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
23 * Makefile.in (LIBS): Don't add -ldb.
25 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
26 for db4 when the library is found.
28 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
30 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
33 * Makefile.in (target): New variable.
34 (top_builddir): New variable.
35 (CHISE_DIR_PREFIX): New variable.
36 (CHISE_DIR_VERSION): New variable.
37 (CHISE_DIR): New variable.
38 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
39 (CHISE_SI_DB_DIR): New variable.
40 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
41 (chise.lo): Use $(CHISE_CFLAGS).
43 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
44 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
46 * chise.c (chise_system_db_dir): New constant.
47 (CHISE_DS_open): Don't use DBTYPE.
49 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
51 * chise.h (CHISE_DS_open): Don't use DBTYPE.
53 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
55 * Makefile.in (DB_DIR): Update version to 0.2.
57 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
59 * chise.c (chise_ds_foreach_char_feature_name): Read
60 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
61 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
62 (chise_ccs_setup_db): Likewise.
63 (CHISE_Attribute_Table_open): Change interface to specify
64 category/key_type/name instead of encoding/feature.
66 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
68 * chise.c (chise_ds_foreach_char_feature_name): New function.
69 (chise_feature_foreach_char_with_value): Renamed from
70 `chise_char_feature_value_iterate'.
72 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
74 * sample.c (test_name_map_func): New function.
75 (main): Use `chise_ds_foreach_char_feature_name'.
77 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
80 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
81 (chise_feature_foreach_char_with_value): Renamed from
82 `chise_char_feature_value_iterate'.
84 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
86 * sample.c (char db_dir): Deleted.
87 (main): Use ${chise_db_dir}/db/ for the location of data-source.
89 * Makefile.in (prefix): Use @prefix@.
90 (exec_prefix): Use @exec_prefix@.
91 (libdir): Use @libdir@.
92 (libexecdir): New variable.
93 (DB_INSTALLDIR): Deleted.
94 (DB_DIR): New variable.
95 (chise.lo): Specify DB_DIR.
96 (install): Don't call install.db.
97 (install.db): Deleted.
99 * chise.h, chise.c (chise_db_dir): New variable.
100 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
101 as the type of location.
103 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
105 * chise.h (chise_feature_setup_db): New prototype.
106 (chise_ccs_setup_db): Likewise.
108 * chise.c (chise_feature_setup_db): Changed to public function.
109 (chise_ccs_setup_db): New function.
110 (chise_ccs_decode): Use `chise_ccs_setup_db'.
111 (chise_ccs_set_decoded_char): Likewise.
113 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
115 * chise.c (CHISE_Attribute_Table_open): Create required
116 directories when running with create mode.
118 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
120 * chise.h (chise_feature_sync): New prototype.
121 (chise_char_set_feature_value): New prototype.
122 (chise_ds_load_char_feature_value): New inline function.
124 * chise.c (chise_feature_sync): New function.
125 (chise_char_set_feature_value): New function.
127 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
129 * sample.c (main): Use `chise_ds_decode_char' instead of
130 `chise_ds_get_ccs' and `chise_ccs_decode'.
132 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
134 (chise_ccs_set_decoded_char): Likewise.
136 * chise.h (chise_ds_decode_char): New inline function.
138 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
141 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
142 - `chise_ds_close' is renamed to `CHISE_DS_close'.
144 * name.c: Modify to avoid warning.
146 * chise-name.h (chise_make_name_table): Modify to avoid warning.
148 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
150 (CHISE_Attribute_Table_open): Renamed from
151 `chise_open_attribute_table'.
152 (CHISE_Attribute_Table_close): Renamed from
153 `chise_close_attribute_table'.
154 (chise_attribute_table_get): Renamed from
155 `chise_get_attribute_table'.
156 (chise_attribute_table_put): Renamed from
157 `chise_put_attribute_table'.
158 (CHISE_DS_open): Renamed from `chise_open_data_source'.
159 (CHISE_DS_close): Renamed from `chise_ds_close'.
160 (chise_feature_setup_db): New function.
161 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
162 (chise_char_gets_feature_value): Likewise.
163 (chise_char_feature_value_iterate): Likewise.
165 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
166 (chise.lo): Add dependency on sysdep.h.
168 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
169 (CHISE_DS_close): Renamed from `chise_ds_close'.
171 * sysdep.h: New file [separate from chise.c].
173 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
175 * chise.h (chise_ds_open_feature_table): Abolished.
176 (chise_ft_close): Likewise.
178 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
180 * sample.c: Update for the latest API.
182 * chise.c (struct CHISE_DS): Add new member `subtype' and
184 (chise_open_data_source): Add new arguments `subtype' and
186 (chise_ds_get_feature): Delete arguments `real_subtype',
187 `accessmask', `modemask'.
188 (chise_ds_get_ccs): Likewise.
189 (struct CHISE_Feature_Table): Add new member `name' and `access'.
190 (chise_ds_open_feature_table): Delete arguments `real_subtype',
191 `accessmask', `modemask'.
192 (chise_ft_close): Release `table->name'.
193 (chise_char_load_feature_value): Setup `table->db'.
194 (chise_char_gets_feature_value): Likewise.
195 (chise_char_feature_value_iterate): Return an integer value; setup
197 (struct CHISE_CCS_Table): Add new member `name' and `access'.
198 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
199 `accessmask', `modemask'.
200 (chise_ccst_close): Release `table->name'.
201 (chise_ccs_sync): New function.
202 (chise_ccs_decode): Setup `ccs->db'.
203 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
206 * chise.h (chise_open_data_source): Add new arguments `subtype'
208 (chise_ds_get_feature): Delete arguments `real_subtype',
209 `accessmask', `modemask'.
210 (chise_char_feature_value_iterate): Return an integer value.
211 (chise_char_feature_str_iterate): Comment out.
212 (chise_ds_open_feature_table): Delete arguments `real_subtype',
213 `accessmask', `modemask'.
214 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
216 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
217 (chise_ccs_sync): New prototype.
218 (chise_ds_open_ccs_table): Abolished.
219 (int chise_ccst_close): Abolished.
221 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
223 * sample.c (test_map_func): Modify for
224 chise_char_feature_value_iterate.
225 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
226 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
227 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
228 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
229 use `chise_char_gets_feature_value' instead of
230 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
231 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
233 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
235 * chise.c: Include "chise-name.h".
236 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
237 (chise_open_data_source): Setup ds->feature_names and
239 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
240 (chise_ds_get_feature): New function.
241 (chise_ds_get_ccs): New function.
242 (chise_char_load_feature_value): Renamed from
243 `chise_ft_get_value'; modify interface.
244 (chise_char_gets_feature_value): New function.
245 (chise_char_feature_value_iterate): Renamed from
246 `chise_ft_iterate'; modify interface.
247 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
248 (chise_ds_open_ccs_table): Renamed from
249 `chise_ds_open_decoding_table'.
250 (chise_ccst_close): Renamed from `chise_dt_close'.
251 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
252 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
254 * chise.h (CHISE_Feature): New type.
255 (chise_ds_get_feature): New prototype.
256 (chise_char_load_feature_value): Renamed from
257 `chise_ft_get_value'; modify interface.
258 (chise_char_gets_feature_value): New prototype.
259 (chise_char_feature_value_iterate): Renamed from
260 `chise_ft_iterate'; modify interface.
261 (chise_char_feature_str_iterate): New prototype.
262 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
263 (CHISE_CCS): New type.
264 (chise_ds_get_ccs): New prototype.
265 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
266 (chise_ds_open_ccs_table): Renamed from
267 `chise_ds_open_decoding_table'.
268 (chise_ccst_close): Renamed from `chise_dt_close'.
269 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
270 (chise_decode_char): Deleted.
271 (chise_get_feature): Deleted.
273 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
275 * name.c: Include "chise-name.h".
276 (chise_name_table_put): Use <const unsigned char*> instead of
277 <unsigned char*> for key.
278 (chise_name_table_get): Likewise.
280 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
281 instead of <unsigned char*> for key.
282 (chise_name_table_get): Likewise.
284 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
286 * Makefile.in (HEADERS): New variable.
287 (OBJS): New variable.
288 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
289 (chise.lo): Depends on config.h.
290 (name.lo): New target.
291 (install.h): Refer $(HEADERS).
293 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
295 * chise-name.h, name.c: New files.
297 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
299 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
300 CHISE_Attribute_Table>.
301 (chise_put_attribute_table): New prototype.
302 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
303 instead of <DB*> as the type of member `db'.
304 (chise_ds_open_decoding_table): New implementation.
305 (chise_dt_close): Likewise.
306 (chise_dt_get_char): Modify for new implementation of <struct
307 CHISE_Decoding_Table>.
308 (chise_dt_put_char): Likewise.
309 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
310 of <DB*> as the type of member `db'.
311 (chise_ds_open_feature_table): New implementation.
312 (chise_ft_close): Likewise.
313 (chise_ft_get_value): Modify for new implementation of <struct
314 CHISE_Feature_Table>.
315 (chise_open_attribute_table): Use db_dir instead of ds as the
316 first argument; modify for new implementation of
317 <CHISE_Attribute_Table>.
318 (chise_close_attribute_table): Modify for new implementation of
319 <CHISE_Attribute_Table>.
320 (chise_get_attribute_table): Likewise.
321 (chise_put_attribute_table): Likewise.
323 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
325 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
326 (struct CHISE_Decoding_Table): New structure.
327 (chise_ds_open_decoding_table): Cast the return value to
328 <CHISE_Decoding_Table*>.
329 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
330 (chise_dt_get_char): Likewise.
331 (struct CHISE_Feature_Table): New structure.
332 (chise_ds_open_feature_table): Cast the return value to
333 <CHISE_Feature_Table*>.
334 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
335 (chise_ft_get_value): Likewise.
337 * chise.h (CHISE_Attribute_Table): Deleted.
338 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
339 of <CHISE_Attribute_Table>.
340 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
341 <CHISE_Attribute_Table>.
343 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
345 * chise.c (chise_open_attribute_table): New prototype.
346 (chise_close_attribute_table): New prototype.
347 (chise_get_attribute_table): New prototype.
349 * chise.h (chise_open_attribute_table): Deleted.
350 (chise_close_attribute_table): Deleted.
351 (chise_get_attribute_table): Deleted.
353 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
355 * chise.c (struct CHISE_DS): Definition of members are moved from
358 * chise.h (struct CHISE_DS): Omit definition of members.
360 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
362 * sample.c (main): Modify for new API.
364 * chise.c (chise_open_data_source): Interface change; allocate a
365 CHISE_DS object and return it.
366 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
367 the specified CHISE_DS object.
368 (chise_ds_open_decoding_table): Renamed from
369 `chise_open_decoding_table' and changed the interface.
370 (chise_dt_close): Renamed from `chise_close_decoding_table'.
371 (chise_ds_open_feature_table): Renamed from
372 `chise_open_feature_table' and changed the interface.
373 (chise_ft_close): Renamed from `chise_close_feature_table'.
374 (chise_open_attribute_table): Interface change; allocate a
375 CHISE_Attribute_Table object and return it; require pointer for
376 data source object instead of db_dir.
377 (chise_close_attribute_table): Destroy the specified
378 CHISE_Attribute_Table object.
380 * chise.h (struct CHISE_DS): Change type of location from <char*>
382 (chise_open_data_source): Change interface.
383 (chise_ds_close): Renamed from `chise_close_data_source'.
384 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
386 (chise_ds_open_decoding_table): Renamed from
387 `chise_open_decoding_table' and changed the interface.
388 (chise_dt_close): Renamed from `chise_close_decoding_table'.
389 (chise_ds_open_feature_table): Renamed from
390 `chise_open_feature_table' and changed the interface.
391 (chise_ft_close): Renamed from `chise_close_feature_table'.
392 (chise_open_attribute_table): Change interface.
394 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
396 * configure.in: Update version to 0.2.0.
398 * Makefile.in (ABI_VERSION): New variable.
399 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
401 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
403 * sample.c (main): Use <CHISE_Decoding_Table> instead of
404 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
405 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
406 `ft_ideographic_structure' and `ft_ascii'.
408 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
409 instead of <CHISE_Decoding_Table**> as the type of the first
411 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
412 <CHISE_Feature_Table**> as the type of the first argument.
413 (chise_ft_iterate): Modify for the structure
414 `CHISE_Feature_Table'.
415 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
416 of <CHISE_Attribute_Table **> as the type of the first argument;
417 modify for the structure <CHISE_Feature_Table>.
418 (chise_close_attribute_table): Modify for the structure
419 <CHISE_Feature_Table>.
420 (chise_get_attribute_table): Likewise.
421 (chise_put_attribute_table): Likewise.
423 * chise.h (CHISE_Attribute_Table): Define as a structure.
424 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
425 of <CHISE_Decoding_Table**> as the type of the first argument.
426 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
427 <CHISE_Feature_Table**> as the type of the first argument.
428 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
429 of <CHISE_Attribute_Table**> as the type of the first argument.
431 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
433 * chise.h (chise_dt_put_char): New prototype.
435 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
437 * chise.c (chise_dt_put_char): New function.
438 (chise_put_attribute_table): New function.
440 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
442 * chise.c (chise_format_char_id): New function.
443 (chise_ft_get_value): Use `chise_format_char_id'.
445 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
447 * chise.h: Define `_CHISE_H'.
449 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
451 * sample.c (test_map_func): New function.
452 (main): Add sample of `chise_ft_iterate'.
454 * chise.c (chise_char_id_parse_c_string): New function.
455 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
456 (chise_ft_iterate): New function.
458 * chise.h (chise_ft_iterate): New function.
460 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
462 * chise.c (chise_ft_get_value): Use escape forms for some special
465 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
467 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
469 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
470 argument `feature' for file name.
472 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
474 * chise.c, chise.h: Move strnlen related code from chise.h to
477 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
479 * Makefile.in (CFLAGS): Refer @CFLAGS@.
481 * configure.in: Add check code for Fink.
483 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
485 * Makefile.in (LIBTOOL): New variable.
486 (distclean): New target.
488 * configure.in: Check about libtool.
490 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
492 * Makefile.in: Use libtool.
494 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
496 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
498 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
499 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
504 * configure: New file.
506 * Makefile.in, config.h.in, configure.in: New files.
508 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
510 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
511 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
512 instead of `strlen'; fix problem about control characters.
514 * chise.h (chise_value_data): New inline function.
516 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
518 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
520 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
522 * sample.c: Add comments.
524 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
526 * sample.c: Use <chise.h>.
527 (db_dir): Use "/usr/local/lib/chise/char-db".
529 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
531 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
533 * Makefile, chise.c, chise.h, sample.c: New files.