1 2003-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * sample.c (test_map_func): Modify to display UCS code point and
5 (main): Use `chise_system_db_dir'; display `numeric-value' instead
8 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
10 * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1
13 * chise.h (chise_system_db_dir): New constant.
15 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * Makefile.in (LIBS): Don't add -ldb.
19 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
20 for db4 when the library is found.
22 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
24 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
27 * Makefile.in (target): New variable.
28 (top_builddir): New variable.
29 (CHISE_DIR_PREFIX): New variable.
30 (CHISE_DIR_VERSION): New variable.
31 (CHISE_DIR): New variable.
32 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
33 (CHISE_SI_DB_DIR): New variable.
34 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
35 (chise.lo): Use $(CHISE_CFLAGS).
37 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
38 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
40 * chise.c (chise_system_db_dir): New constant.
41 (CHISE_DS_open): Don't use DBTYPE.
43 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
45 * chise.h (CHISE_DS_open): Don't use DBTYPE.
47 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
49 * Makefile.in (DB_DIR): Update version to 0.2.
51 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
53 * chise.c (chise_ds_foreach_char_feature_name): Read
54 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
55 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
56 (chise_ccs_setup_db): Likewise.
57 (CHISE_Attribute_Table_open): Change interface to specify
58 category/key_type/name instead of encoding/feature.
60 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
62 * chise.c (chise_ds_foreach_char_feature_name): New function.
63 (chise_feature_foreach_char_with_value): Renamed from
64 `chise_char_feature_value_iterate'.
66 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
68 * sample.c (test_name_map_func): New function.
69 (main): Use `chise_ds_foreach_char_feature_name'.
71 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
74 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
75 (chise_feature_foreach_char_with_value): Renamed from
76 `chise_char_feature_value_iterate'.
78 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
80 * sample.c (char db_dir): Deleted.
81 (main): Use ${chise_db_dir}/db/ for the location of data-source.
83 * Makefile.in (prefix): Use @prefix@.
84 (exec_prefix): Use @exec_prefix@.
85 (libdir): Use @libdir@.
86 (libexecdir): New variable.
87 (DB_INSTALLDIR): Deleted.
88 (DB_DIR): New variable.
89 (chise.lo): Specify DB_DIR.
90 (install): Don't call install.db.
91 (install.db): Deleted.
93 * chise.h, chise.c (chise_db_dir): New variable.
94 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
95 as the type of location.
97 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
99 * chise.h (chise_feature_setup_db): New prototype.
100 (chise_ccs_setup_db): Likewise.
102 * chise.c (chise_feature_setup_db): Changed to public function.
103 (chise_ccs_setup_db): New function.
104 (chise_ccs_decode): Use `chise_ccs_setup_db'.
105 (chise_ccs_set_decoded_char): Likewise.
107 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
109 * chise.c (CHISE_Attribute_Table_open): Create required
110 directories when running with create mode.
112 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
114 * chise.h (chise_feature_sync): New prototype.
115 (chise_char_set_feature_value): New prototype.
116 (chise_ds_load_char_feature_value): New inline function.
118 * chise.c (chise_feature_sync): New function.
119 (chise_char_set_feature_value): New function.
121 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
123 * sample.c (main): Use `chise_ds_decode_char' instead of
124 `chise_ds_get_ccs' and `chise_ccs_decode'.
126 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
128 (chise_ccs_set_decoded_char): Likewise.
130 * chise.h (chise_ds_decode_char): New inline function.
132 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
135 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
136 - `chise_ds_close' is renamed to `CHISE_DS_close'.
138 * name.c: Modify to avoid warning.
140 * chise-name.h (chise_make_name_table): Modify to avoid warning.
142 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
144 (CHISE_Attribute_Table_open): Renamed from
145 `chise_open_attribute_table'.
146 (CHISE_Attribute_Table_close): Renamed from
147 `chise_close_attribute_table'.
148 (chise_attribute_table_get): Renamed from
149 `chise_get_attribute_table'.
150 (chise_attribute_table_put): Renamed from
151 `chise_put_attribute_table'.
152 (CHISE_DS_open): Renamed from `chise_open_data_source'.
153 (CHISE_DS_close): Renamed from `chise_ds_close'.
154 (chise_feature_setup_db): New function.
155 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
156 (chise_char_gets_feature_value): Likewise.
157 (chise_char_feature_value_iterate): Likewise.
159 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
160 (chise.lo): Add dependency on sysdep.h.
162 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
163 (CHISE_DS_close): Renamed from `chise_ds_close'.
165 * sysdep.h: New file [separate from chise.c].
167 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
169 * chise.h (chise_ds_open_feature_table): Abolished.
170 (chise_ft_close): Likewise.
172 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
174 * sample.c: Update for the latest API.
176 * chise.c (struct CHISE_DS): Add new member `subtype' and
178 (chise_open_data_source): Add new arguments `subtype' and
180 (chise_ds_get_feature): Delete arguments `real_subtype',
181 `accessmask', `modemask'.
182 (chise_ds_get_ccs): Likewise.
183 (struct CHISE_Feature_Table): Add new member `name' and `access'.
184 (chise_ds_open_feature_table): Delete arguments `real_subtype',
185 `accessmask', `modemask'.
186 (chise_ft_close): Release `table->name'.
187 (chise_char_load_feature_value): Setup `table->db'.
188 (chise_char_gets_feature_value): Likewise.
189 (chise_char_feature_value_iterate): Return an integer value; setup
191 (struct CHISE_CCS_Table): Add new member `name' and `access'.
192 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
193 `accessmask', `modemask'.
194 (chise_ccst_close): Release `table->name'.
195 (chise_ccs_sync): New function.
196 (chise_ccs_decode): Setup `ccs->db'.
197 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
200 * chise.h (chise_open_data_source): Add new arguments `subtype'
202 (chise_ds_get_feature): Delete arguments `real_subtype',
203 `accessmask', `modemask'.
204 (chise_char_feature_value_iterate): Return an integer value.
205 (chise_char_feature_str_iterate): Comment out.
206 (chise_ds_open_feature_table): Delete arguments `real_subtype',
207 `accessmask', `modemask'.
208 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
210 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
211 (chise_ccs_sync): New prototype.
212 (chise_ds_open_ccs_table): Abolished.
213 (int chise_ccst_close): Abolished.
215 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
217 * sample.c (test_map_func): Modify for
218 chise_char_feature_value_iterate.
219 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
220 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
221 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
222 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
223 use `chise_char_gets_feature_value' instead of
224 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
225 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
227 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
229 * chise.c: Include "chise-name.h".
230 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
231 (chise_open_data_source): Setup ds->feature_names and
233 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
234 (chise_ds_get_feature): New function.
235 (chise_ds_get_ccs): New function.
236 (chise_char_load_feature_value): Renamed from
237 `chise_ft_get_value'; modify interface.
238 (chise_char_gets_feature_value): New function.
239 (chise_char_feature_value_iterate): Renamed from
240 `chise_ft_iterate'; modify interface.
241 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
242 (chise_ds_open_ccs_table): Renamed from
243 `chise_ds_open_decoding_table'.
244 (chise_ccst_close): Renamed from `chise_dt_close'.
245 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
246 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
248 * chise.h (CHISE_Feature): New type.
249 (chise_ds_get_feature): New prototype.
250 (chise_char_load_feature_value): Renamed from
251 `chise_ft_get_value'; modify interface.
252 (chise_char_gets_feature_value): New prototype.
253 (chise_char_feature_value_iterate): Renamed from
254 `chise_ft_iterate'; modify interface.
255 (chise_char_feature_str_iterate): New prototype.
256 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
257 (CHISE_CCS): New type.
258 (chise_ds_get_ccs): New prototype.
259 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
260 (chise_ds_open_ccs_table): Renamed from
261 `chise_ds_open_decoding_table'.
262 (chise_ccst_close): Renamed from `chise_dt_close'.
263 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
264 (chise_decode_char): Deleted.
265 (chise_get_feature): Deleted.
267 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
269 * name.c: Include "chise-name.h".
270 (chise_name_table_put): Use <const unsigned char*> instead of
271 <unsigned char*> for key.
272 (chise_name_table_get): Likewise.
274 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
275 instead of <unsigned char*> for key.
276 (chise_name_table_get): Likewise.
278 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
280 * Makefile.in (HEADERS): New variable.
281 (OBJS): New variable.
282 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
283 (chise.lo): Depends on config.h.
284 (name.lo): New target.
285 (install.h): Refer $(HEADERS).
287 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
289 * chise-name.h, name.c: New files.
291 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
293 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
294 CHISE_Attribute_Table>.
295 (chise_put_attribute_table): New prototype.
296 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
297 instead of <DB*> as the type of member `db'.
298 (chise_ds_open_decoding_table): New implementation.
299 (chise_dt_close): Likewise.
300 (chise_dt_get_char): Modify for new implementation of <struct
301 CHISE_Decoding_Table>.
302 (chise_dt_put_char): Likewise.
303 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
304 of <DB*> as the type of member `db'.
305 (chise_ds_open_feature_table): New implementation.
306 (chise_ft_close): Likewise.
307 (chise_ft_get_value): Modify for new implementation of <struct
308 CHISE_Feature_Table>.
309 (chise_open_attribute_table): Use db_dir instead of ds as the
310 first argument; modify for new implementation of
311 <CHISE_Attribute_Table>.
312 (chise_close_attribute_table): Modify for new implementation of
313 <CHISE_Attribute_Table>.
314 (chise_get_attribute_table): Likewise.
315 (chise_put_attribute_table): Likewise.
317 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
319 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
320 (struct CHISE_Decoding_Table): New structure.
321 (chise_ds_open_decoding_table): Cast the return value to
322 <CHISE_Decoding_Table*>.
323 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
324 (chise_dt_get_char): Likewise.
325 (struct CHISE_Feature_Table): New structure.
326 (chise_ds_open_feature_table): Cast the return value to
327 <CHISE_Feature_Table*>.
328 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
329 (chise_ft_get_value): Likewise.
331 * chise.h (CHISE_Attribute_Table): Deleted.
332 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
333 of <CHISE_Attribute_Table>.
334 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
335 <CHISE_Attribute_Table>.
337 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
339 * chise.c (chise_open_attribute_table): New prototype.
340 (chise_close_attribute_table): New prototype.
341 (chise_get_attribute_table): New prototype.
343 * chise.h (chise_open_attribute_table): Deleted.
344 (chise_close_attribute_table): Deleted.
345 (chise_get_attribute_table): Deleted.
347 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
349 * chise.c (struct CHISE_DS): Definition of members are moved from
352 * chise.h (struct CHISE_DS): Omit definition of members.
354 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
356 * sample.c (main): Modify for new API.
358 * chise.c (chise_open_data_source): Interface change; allocate a
359 CHISE_DS object and return it.
360 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
361 the specified CHISE_DS object.
362 (chise_ds_open_decoding_table): Renamed from
363 `chise_open_decoding_table' and changed the interface.
364 (chise_dt_close): Renamed from `chise_close_decoding_table'.
365 (chise_ds_open_feature_table): Renamed from
366 `chise_open_feature_table' and changed the interface.
367 (chise_ft_close): Renamed from `chise_close_feature_table'.
368 (chise_open_attribute_table): Interface change; allocate a
369 CHISE_Attribute_Table object and return it; require pointer for
370 data source object instead of db_dir.
371 (chise_close_attribute_table): Destroy the specified
372 CHISE_Attribute_Table object.
374 * chise.h (struct CHISE_DS): Change type of location from <char*>
376 (chise_open_data_source): Change interface.
377 (chise_ds_close): Renamed from `chise_close_data_source'.
378 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
380 (chise_ds_open_decoding_table): Renamed from
381 `chise_open_decoding_table' and changed the interface.
382 (chise_dt_close): Renamed from `chise_close_decoding_table'.
383 (chise_ds_open_feature_table): Renamed from
384 `chise_open_feature_table' and changed the interface.
385 (chise_ft_close): Renamed from `chise_close_feature_table'.
386 (chise_open_attribute_table): Change interface.
388 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
390 * configure.in: Update version to 0.2.0.
392 * Makefile.in (ABI_VERSION): New variable.
393 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
395 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
397 * sample.c (main): Use <CHISE_Decoding_Table> instead of
398 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
399 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
400 `ft_ideographic_structure' and `ft_ascii'.
402 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
403 instead of <CHISE_Decoding_Table**> as the type of the first
405 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
406 <CHISE_Feature_Table**> as the type of the first argument.
407 (chise_ft_iterate): Modify for the structure
408 `CHISE_Feature_Table'.
409 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
410 of <CHISE_Attribute_Table **> as the type of the first argument;
411 modify for the structure <CHISE_Feature_Table>.
412 (chise_close_attribute_table): Modify for the structure
413 <CHISE_Feature_Table>.
414 (chise_get_attribute_table): Likewise.
415 (chise_put_attribute_table): Likewise.
417 * chise.h (CHISE_Attribute_Table): Define as a structure.
418 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
419 of <CHISE_Decoding_Table**> as the type of the first argument.
420 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
421 <CHISE_Feature_Table**> as the type of the first argument.
422 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
423 of <CHISE_Attribute_Table**> as the type of the first argument.
425 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
427 * chise.h (chise_dt_put_char): New prototype.
429 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
431 * chise.c (chise_dt_put_char): New function.
432 (chise_put_attribute_table): New function.
434 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
436 * chise.c (chise_format_char_id): New function.
437 (chise_ft_get_value): Use `chise_format_char_id'.
439 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
441 * chise.h: Define `_CHISE_H'.
443 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
445 * sample.c (test_map_func): New function.
446 (main): Add sample of `chise_ft_iterate'.
448 * chise.c (chise_char_id_parse_c_string): New function.
449 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
450 (chise_ft_iterate): New function.
452 * chise.h (chise_ft_iterate): New function.
454 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
456 * chise.c (chise_ft_get_value): Use escape forms for some special
459 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
461 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
463 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
464 argument `feature' for file name.
466 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
468 * chise.c, chise.h: Move strnlen related code from chise.h to
471 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
473 * Makefile.in (CFLAGS): Refer @CFLAGS@.
475 * configure.in: Add check code for Fink.
477 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
479 * Makefile.in (LIBTOOL): New variable.
480 (distclean): New target.
482 * configure.in: Check about libtool.
484 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
486 * Makefile.in: Use libtool.
488 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
490 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
492 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
493 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
498 * configure: New file.
500 * Makefile.in, config.h.in, configure.in: New files.
502 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
504 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
505 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
506 instead of `strlen'; fix problem about control characters.
508 * chise.h (chise_value_data): New inline function.
510 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
512 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
514 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
516 * sample.c: Add comments.
518 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
520 * sample.c: Use <chise.h>.
521 (db_dir): Use "/usr/local/lib/chise/char-db".
523 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
525 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
527 * Makefile, chise.c, chise.h, sample.c: New files.