1 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
6 * chise.h (chise_system_db_dir): New constant.
8 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
10 * Makefile.in (LIBS): Don't add -ldb.
12 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
13 for db4 when the library is found.
15 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
20 * Makefile.in (target): New variable.
21 (top_builddir): New variable.
22 (CHISE_DIR_PREFIX): New variable.
23 (CHISE_DIR_VERSION): New variable.
24 (CHISE_DIR): New variable.
25 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
26 (CHISE_SI_DB_DIR): New variable.
27 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
28 (chise.lo): Use $(CHISE_CFLAGS).
30 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
31 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
33 * chise.c (chise_system_db_dir): New constant.
34 (CHISE_DS_open): Don't use DBTYPE.
36 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
38 * chise.h (CHISE_DS_open): Don't use DBTYPE.
40 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
42 * Makefile.in (DB_DIR): Update version to 0.2.
44 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
46 * chise.c (chise_ds_foreach_char_feature_name): Read
47 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
48 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
49 (chise_ccs_setup_db): Likewise.
50 (CHISE_Attribute_Table_open): Change interface to specify
51 category/key_type/name instead of encoding/feature.
53 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
55 * chise.c (chise_ds_foreach_char_feature_name): New function.
56 (chise_feature_foreach_char_with_value): Renamed from
57 `chise_char_feature_value_iterate'.
59 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
61 * sample.c (test_name_map_func): New function.
62 (main): Use `chise_ds_foreach_char_feature_name'.
64 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
67 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
68 (chise_feature_foreach_char_with_value): Renamed from
69 `chise_char_feature_value_iterate'.
71 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
73 * sample.c (char db_dir): Deleted.
74 (main): Use ${chise_db_dir}/db/ for the location of data-source.
76 * Makefile.in (prefix): Use @prefix@.
77 (exec_prefix): Use @exec_prefix@.
78 (libdir): Use @libdir@.
79 (libexecdir): New variable.
80 (DB_INSTALLDIR): Deleted.
81 (DB_DIR): New variable.
82 (chise.lo): Specify DB_DIR.
83 (install): Don't call install.db.
84 (install.db): Deleted.
86 * chise.h, chise.c (chise_db_dir): New variable.
87 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
88 as the type of location.
90 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
92 * chise.h (chise_feature_setup_db): New prototype.
93 (chise_ccs_setup_db): Likewise.
95 * chise.c (chise_feature_setup_db): Changed to public function.
96 (chise_ccs_setup_db): New function.
97 (chise_ccs_decode): Use `chise_ccs_setup_db'.
98 (chise_ccs_set_decoded_char): Likewise.
100 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
102 * chise.c (CHISE_Attribute_Table_open): Create required
103 directories when running with create mode.
105 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
107 * chise.h (chise_feature_sync): New prototype.
108 (chise_char_set_feature_value): New prototype.
109 (chise_ds_load_char_feature_value): New inline function.
111 * chise.c (chise_feature_sync): New function.
112 (chise_char_set_feature_value): New function.
114 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
116 * sample.c (main): Use `chise_ds_decode_char' instead of
117 `chise_ds_get_ccs' and `chise_ccs_decode'.
119 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
121 (chise_ccs_set_decoded_char): Likewise.
123 * chise.h (chise_ds_decode_char): New inline function.
125 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
128 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
129 - `chise_ds_close' is renamed to `CHISE_DS_close'.
131 * name.c: Modify to avoid warning.
133 * chise-name.h (chise_make_name_table): Modify to avoid warning.
135 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
137 (CHISE_Attribute_Table_open): Renamed from
138 `chise_open_attribute_table'.
139 (CHISE_Attribute_Table_close): Renamed from
140 `chise_close_attribute_table'.
141 (chise_attribute_table_get): Renamed from
142 `chise_get_attribute_table'.
143 (chise_attribute_table_put): Renamed from
144 `chise_put_attribute_table'.
145 (CHISE_DS_open): Renamed from `chise_open_data_source'.
146 (CHISE_DS_close): Renamed from `chise_ds_close'.
147 (chise_feature_setup_db): New function.
148 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
149 (chise_char_gets_feature_value): Likewise.
150 (chise_char_feature_value_iterate): Likewise.
152 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
153 (chise.lo): Add dependency on sysdep.h.
155 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
156 (CHISE_DS_close): Renamed from `chise_ds_close'.
158 * sysdep.h: New file [separate from chise.c].
160 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
162 * chise.h (chise_ds_open_feature_table): Abolished.
163 (chise_ft_close): Likewise.
165 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
167 * sample.c: Update for the latest API.
169 * chise.c (struct CHISE_DS): Add new member `subtype' and
171 (chise_open_data_source): Add new arguments `subtype' and
173 (chise_ds_get_feature): Delete arguments `real_subtype',
174 `accessmask', `modemask'.
175 (chise_ds_get_ccs): Likewise.
176 (struct CHISE_Feature_Table): Add new member `name' and `access'.
177 (chise_ds_open_feature_table): Delete arguments `real_subtype',
178 `accessmask', `modemask'.
179 (chise_ft_close): Release `table->name'.
180 (chise_char_load_feature_value): Setup `table->db'.
181 (chise_char_gets_feature_value): Likewise.
182 (chise_char_feature_value_iterate): Return an integer value; setup
184 (struct CHISE_CCS_Table): Add new member `name' and `access'.
185 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
186 `accessmask', `modemask'.
187 (chise_ccst_close): Release `table->name'.
188 (chise_ccs_sync): New function.
189 (chise_ccs_decode): Setup `ccs->db'.
190 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
193 * chise.h (chise_open_data_source): Add new arguments `subtype'
195 (chise_ds_get_feature): Delete arguments `real_subtype',
196 `accessmask', `modemask'.
197 (chise_char_feature_value_iterate): Return an integer value.
198 (chise_char_feature_str_iterate): Comment out.
199 (chise_ds_open_feature_table): Delete arguments `real_subtype',
200 `accessmask', `modemask'.
201 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
203 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
204 (chise_ccs_sync): New prototype.
205 (chise_ds_open_ccs_table): Abolished.
206 (int chise_ccst_close): Abolished.
208 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
210 * sample.c (test_map_func): Modify for
211 chise_char_feature_value_iterate.
212 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
213 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
214 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
215 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
216 use `chise_char_gets_feature_value' instead of
217 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
218 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
220 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
222 * chise.c: Include "chise-name.h".
223 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
224 (chise_open_data_source): Setup ds->feature_names and
226 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
227 (chise_ds_get_feature): New function.
228 (chise_ds_get_ccs): New function.
229 (chise_char_load_feature_value): Renamed from
230 `chise_ft_get_value'; modify interface.
231 (chise_char_gets_feature_value): New function.
232 (chise_char_feature_value_iterate): Renamed from
233 `chise_ft_iterate'; modify interface.
234 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
235 (chise_ds_open_ccs_table): Renamed from
236 `chise_ds_open_decoding_table'.
237 (chise_ccst_close): Renamed from `chise_dt_close'.
238 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
239 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
241 * chise.h (CHISE_Feature): New type.
242 (chise_ds_get_feature): New prototype.
243 (chise_char_load_feature_value): Renamed from
244 `chise_ft_get_value'; modify interface.
245 (chise_char_gets_feature_value): New prototype.
246 (chise_char_feature_value_iterate): Renamed from
247 `chise_ft_iterate'; modify interface.
248 (chise_char_feature_str_iterate): New prototype.
249 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
250 (CHISE_CCS): New type.
251 (chise_ds_get_ccs): New prototype.
252 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
253 (chise_ds_open_ccs_table): Renamed from
254 `chise_ds_open_decoding_table'.
255 (chise_ccst_close): Renamed from `chise_dt_close'.
256 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
257 (chise_decode_char): Deleted.
258 (chise_get_feature): Deleted.
260 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
262 * name.c: Include "chise-name.h".
263 (chise_name_table_put): Use <const unsigned char*> instead of
264 <unsigned char*> for key.
265 (chise_name_table_get): Likewise.
267 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
268 instead of <unsigned char*> for key.
269 (chise_name_table_get): Likewise.
271 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
273 * Makefile.in (HEADERS): New variable.
274 (OBJS): New variable.
275 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
276 (chise.lo): Depends on config.h.
277 (name.lo): New target.
278 (install.h): Refer $(HEADERS).
280 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
282 * chise-name.h, name.c: New files.
284 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
286 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
287 CHISE_Attribute_Table>.
288 (chise_put_attribute_table): New prototype.
289 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
290 instead of <DB*> as the type of member `db'.
291 (chise_ds_open_decoding_table): New implementation.
292 (chise_dt_close): Likewise.
293 (chise_dt_get_char): Modify for new implementation of <struct
294 CHISE_Decoding_Table>.
295 (chise_dt_put_char): Likewise.
296 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
297 of <DB*> as the type of member `db'.
298 (chise_ds_open_feature_table): New implementation.
299 (chise_ft_close): Likewise.
300 (chise_ft_get_value): Modify for new implementation of <struct
301 CHISE_Feature_Table>.
302 (chise_open_attribute_table): Use db_dir instead of ds as the
303 first argument; modify for new implementation of
304 <CHISE_Attribute_Table>.
305 (chise_close_attribute_table): Modify for new implementation of
306 <CHISE_Attribute_Table>.
307 (chise_get_attribute_table): Likewise.
308 (chise_put_attribute_table): Likewise.
310 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
312 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
313 (struct CHISE_Decoding_Table): New structure.
314 (chise_ds_open_decoding_table): Cast the return value to
315 <CHISE_Decoding_Table*>.
316 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
317 (chise_dt_get_char): Likewise.
318 (struct CHISE_Feature_Table): New structure.
319 (chise_ds_open_feature_table): Cast the return value to
320 <CHISE_Feature_Table*>.
321 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
322 (chise_ft_get_value): Likewise.
324 * chise.h (CHISE_Attribute_Table): Deleted.
325 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
326 of <CHISE_Attribute_Table>.
327 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
328 <CHISE_Attribute_Table>.
330 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
332 * chise.c (chise_open_attribute_table): New prototype.
333 (chise_close_attribute_table): New prototype.
334 (chise_get_attribute_table): New prototype.
336 * chise.h (chise_open_attribute_table): Deleted.
337 (chise_close_attribute_table): Deleted.
338 (chise_get_attribute_table): Deleted.
340 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
342 * chise.c (struct CHISE_DS): Definition of members are moved from
345 * chise.h (struct CHISE_DS): Omit definition of members.
347 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
349 * sample.c (main): Modify for new API.
351 * chise.c (chise_open_data_source): Interface change; allocate a
352 CHISE_DS object and return it.
353 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
354 the specified CHISE_DS object.
355 (chise_ds_open_decoding_table): Renamed from
356 `chise_open_decoding_table' and changed the interface.
357 (chise_dt_close): Renamed from `chise_close_decoding_table'.
358 (chise_ds_open_feature_table): Renamed from
359 `chise_open_feature_table' and changed the interface.
360 (chise_ft_close): Renamed from `chise_close_feature_table'.
361 (chise_open_attribute_table): Interface change; allocate a
362 CHISE_Attribute_Table object and return it; require pointer for
363 data source object instead of db_dir.
364 (chise_close_attribute_table): Destroy the specified
365 CHISE_Attribute_Table object.
367 * chise.h (struct CHISE_DS): Change type of location from <char*>
369 (chise_open_data_source): Change interface.
370 (chise_ds_close): Renamed from `chise_close_data_source'.
371 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
373 (chise_ds_open_decoding_table): Renamed from
374 `chise_open_decoding_table' and changed the interface.
375 (chise_dt_close): Renamed from `chise_close_decoding_table'.
376 (chise_ds_open_feature_table): Renamed from
377 `chise_open_feature_table' and changed the interface.
378 (chise_ft_close): Renamed from `chise_close_feature_table'.
379 (chise_open_attribute_table): Change interface.
381 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
383 * configure.in: Update version to 0.2.0.
385 * Makefile.in (ABI_VERSION): New variable.
386 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
388 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
390 * sample.c (main): Use <CHISE_Decoding_Table> instead of
391 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
392 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
393 `ft_ideographic_structure' and `ft_ascii'.
395 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
396 instead of <CHISE_Decoding_Table**> as the type of the first
398 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
399 <CHISE_Feature_Table**> as the type of the first argument.
400 (chise_ft_iterate): Modify for the structure
401 `CHISE_Feature_Table'.
402 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
403 of <CHISE_Attribute_Table **> as the type of the first argument;
404 modify for the structure <CHISE_Feature_Table>.
405 (chise_close_attribute_table): Modify for the structure
406 <CHISE_Feature_Table>.
407 (chise_get_attribute_table): Likewise.
408 (chise_put_attribute_table): Likewise.
410 * chise.h (CHISE_Attribute_Table): Define as a structure.
411 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
412 of <CHISE_Decoding_Table**> as the type of the first argument.
413 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
414 <CHISE_Feature_Table**> as the type of the first argument.
415 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
416 of <CHISE_Attribute_Table**> as the type of the first argument.
418 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
420 * chise.h (chise_dt_put_char): New prototype.
422 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
424 * chise.c (chise_dt_put_char): New function.
425 (chise_put_attribute_table): New function.
427 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
429 * chise.c (chise_format_char_id): New function.
430 (chise_ft_get_value): Use `chise_format_char_id'.
432 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
434 * chise.h: Define `_CHISE_H'.
436 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
438 * sample.c (test_map_func): New function.
439 (main): Add sample of `chise_ft_iterate'.
441 * chise.c (chise_char_id_parse_c_string): New function.
442 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
443 (chise_ft_iterate): New function.
445 * chise.h (chise_ft_iterate): New function.
447 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
449 * chise.c (chise_ft_get_value): Use escape forms for some special
452 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
454 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
456 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
457 argument `feature' for file name.
459 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
461 * chise.c, chise.h: Move strnlen related code from chise.h to
464 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
466 * Makefile.in (CFLAGS): Refer @CFLAGS@.
468 * configure.in: Add check code for Fink.
470 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * Makefile.in (LIBTOOL): New variable.
473 (distclean): New target.
475 * configure.in: Check about libtool.
477 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
479 * Makefile.in: Use libtool.
481 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
483 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
485 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
486 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
491 * configure: New file.
493 * Makefile.in, config.h.in, configure.in: New files.
495 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
498 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
499 instead of `strlen'; fix problem about control characters.
501 * chise.h (chise_value_data): New inline function.
503 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
505 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
507 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
509 * sample.c: Add comments.
511 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
513 * sample.c: Use <chise.h>.
514 (db_dir): Use "/usr/local/lib/chise/char-db".
516 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
518 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
520 * Makefile, chise.c, chise.h, sample.c: New files.