1 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * Makefile.in (LIBS): Don't add -ldb.
5 * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup
6 for db4 when the library is found.
8 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
10 * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New
13 * Makefile.in (target): New variable.
14 (top_builddir): New variable.
15 (CHISE_DIR_PREFIX): New variable.
16 (CHISE_DIR_VERSION): New variable.
17 (CHISE_DIR): New variable.
18 (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'.
19 (CHISE_SI_DB_DIR): New variable.
20 (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'.
21 (chise.lo): Use $(CHISE_CFLAGS).
23 * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL'
24 instead of `AC_CHECK_PROGS' for `LIBTOOL'.
26 * chise.c (chise_system_db_dir): New constant.
27 (CHISE_DS_open): Don't use DBTYPE.
29 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
31 * chise.h (CHISE_DS_open): Don't use DBTYPE.
33 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
35 * Makefile.in (DB_DIR): Update version to 0.2.
37 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
39 * chise.c (chise_ds_foreach_char_feature_name): Read
40 ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id.
41 (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'.
42 (chise_ccs_setup_db): Likewise.
43 (CHISE_Attribute_Table_open): Change interface to specify
44 category/key_type/name instead of encoding/feature.
46 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
48 * chise.c (chise_ds_foreach_char_feature_name): New function.
49 (chise_feature_foreach_char_with_value): Renamed from
50 `chise_char_feature_value_iterate'.
52 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
54 * sample.c (test_name_map_func): New function.
55 (main): Use `chise_ds_foreach_char_feature_name'.
57 * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for
60 * chise.h (chise_ds_foreach_char_feature_name): New prototype.
61 (chise_feature_foreach_char_with_value): Renamed from
62 `chise_char_feature_value_iterate'.
64 2003-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
66 * sample.c (char db_dir): Deleted.
67 (main): Use ${chise_db_dir}/db/ for the location of data-source.
69 * Makefile.in (prefix): Use @prefix@.
70 (exec_prefix): Use @exec_prefix@.
71 (libdir): Use @libdir@.
72 (libexecdir): New variable.
73 (DB_INSTALLDIR): Deleted.
74 (DB_DIR): New variable.
75 (chise.lo): Specify DB_DIR.
76 (install): Don't call install.db.
77 (install.db): Deleted.
79 * chise.h, chise.c (chise_db_dir): New variable.
80 (CHISE_DS_open): Use <const unsigned char *> instead of <char *>
81 as the type of location.
83 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
85 * chise.h (chise_feature_setup_db): New prototype.
86 (chise_ccs_setup_db): Likewise.
88 * chise.c (chise_feature_setup_db): Changed to public function.
89 (chise_ccs_setup_db): New function.
90 (chise_ccs_decode): Use `chise_ccs_setup_db'.
91 (chise_ccs_set_decoded_char): Likewise.
93 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
95 * chise.c (CHISE_Attribute_Table_open): Create required
96 directories when running with create mode.
98 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
100 * chise.h (chise_feature_sync): New prototype.
101 (chise_char_set_feature_value): New prototype.
102 (chise_ds_load_char_feature_value): New inline function.
104 * chise.c (chise_feature_sync): New function.
105 (chise_char_set_feature_value): New function.
107 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
109 * sample.c (main): Use `chise_ds_decode_char' instead of
110 `chise_ds_get_ccs' and `chise_ccs_decode'.
112 * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is
114 (chise_ccs_set_decoded_char): Likewise.
116 * chise.h (chise_ds_decode_char): New inline function.
118 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
122 - `chise_ds_close' is renamed to `CHISE_DS_close'.
124 * name.c: Modify to avoid warning.
126 * chise-name.h (chise_make_name_table): Modify to avoid warning.
128 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
130 (CHISE_Attribute_Table_open): Renamed from
131 `chise_open_attribute_table'.
132 (CHISE_Attribute_Table_close): Renamed from
133 `chise_close_attribute_table'.
134 (chise_attribute_table_get): Renamed from
135 `chise_get_attribute_table'.
136 (chise_attribute_table_put): Renamed from
137 `chise_put_attribute_table'.
138 (CHISE_DS_open): Renamed from `chise_open_data_source'.
139 (CHISE_DS_close): Renamed from `chise_ds_close'.
140 (chise_feature_setup_db): New function.
141 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
142 (chise_char_gets_feature_value): Likewise.
143 (chise_char_feature_value_iterate): Likewise.
145 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
146 (chise.lo): Add dependency on sysdep.h.
148 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
149 (CHISE_DS_close): Renamed from `chise_ds_close'.
151 * sysdep.h: New file [separate from chise.c].
153 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
155 * chise.h (chise_ds_open_feature_table): Abolished.
156 (chise_ft_close): Likewise.
158 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * sample.c: Update for the latest API.
162 * chise.c (struct CHISE_DS): Add new member `subtype' and
164 (chise_open_data_source): Add new arguments `subtype' and
166 (chise_ds_get_feature): Delete arguments `real_subtype',
167 `accessmask', `modemask'.
168 (chise_ds_get_ccs): Likewise.
169 (struct CHISE_Feature_Table): Add new member `name' and `access'.
170 (chise_ds_open_feature_table): Delete arguments `real_subtype',
171 `accessmask', `modemask'.
172 (chise_ft_close): Release `table->name'.
173 (chise_char_load_feature_value): Setup `table->db'.
174 (chise_char_gets_feature_value): Likewise.
175 (chise_char_feature_value_iterate): Return an integer value; setup
177 (struct CHISE_CCS_Table): Add new member `name' and `access'.
178 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
179 `accessmask', `modemask'.
180 (chise_ccst_close): Release `table->name'.
181 (chise_ccs_sync): New function.
182 (chise_ccs_decode): Setup `ccs->db'.
183 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
186 * chise.h (chise_open_data_source): Add new arguments `subtype'
188 (chise_ds_get_feature): Delete arguments `real_subtype',
189 `accessmask', `modemask'.
190 (chise_char_feature_value_iterate): Return an integer value.
191 (chise_char_feature_str_iterate): Comment out.
192 (chise_ds_open_feature_table): Delete arguments `real_subtype',
193 `accessmask', `modemask'.
194 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
196 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
197 (chise_ccs_sync): New prototype.
198 (chise_ds_open_ccs_table): Abolished.
199 (int chise_ccst_close): Abolished.
201 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
203 * sample.c (test_map_func): Modify for
204 chise_char_feature_value_iterate.
205 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
206 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
207 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
208 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
209 use `chise_char_gets_feature_value' instead of
210 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
211 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
213 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
215 * chise.c: Include "chise-name.h".
216 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
217 (chise_open_data_source): Setup ds->feature_names and
219 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
220 (chise_ds_get_feature): New function.
221 (chise_ds_get_ccs): New function.
222 (chise_char_load_feature_value): Renamed from
223 `chise_ft_get_value'; modify interface.
224 (chise_char_gets_feature_value): New function.
225 (chise_char_feature_value_iterate): Renamed from
226 `chise_ft_iterate'; modify interface.
227 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
228 (chise_ds_open_ccs_table): Renamed from
229 `chise_ds_open_decoding_table'.
230 (chise_ccst_close): Renamed from `chise_dt_close'.
231 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
232 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
234 * chise.h (CHISE_Feature): New type.
235 (chise_ds_get_feature): New prototype.
236 (chise_char_load_feature_value): Renamed from
237 `chise_ft_get_value'; modify interface.
238 (chise_char_gets_feature_value): New prototype.
239 (chise_char_feature_value_iterate): Renamed from
240 `chise_ft_iterate'; modify interface.
241 (chise_char_feature_str_iterate): New prototype.
242 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
243 (CHISE_CCS): New type.
244 (chise_ds_get_ccs): New prototype.
245 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
246 (chise_ds_open_ccs_table): Renamed from
247 `chise_ds_open_decoding_table'.
248 (chise_ccst_close): Renamed from `chise_dt_close'.
249 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
250 (chise_decode_char): Deleted.
251 (chise_get_feature): Deleted.
253 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
255 * name.c: Include "chise-name.h".
256 (chise_name_table_put): Use <const unsigned char*> instead of
257 <unsigned char*> for key.
258 (chise_name_table_get): Likewise.
260 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
261 instead of <unsigned char*> for key.
262 (chise_name_table_get): Likewise.
264 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
266 * Makefile.in (HEADERS): New variable.
267 (OBJS): New variable.
268 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
269 (chise.lo): Depends on config.h.
270 (name.lo): New target.
271 (install.h): Refer $(HEADERS).
273 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
275 * chise-name.h, name.c: New files.
277 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
280 CHISE_Attribute_Table>.
281 (chise_put_attribute_table): New prototype.
282 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
283 instead of <DB*> as the type of member `db'.
284 (chise_ds_open_decoding_table): New implementation.
285 (chise_dt_close): Likewise.
286 (chise_dt_get_char): Modify for new implementation of <struct
287 CHISE_Decoding_Table>.
288 (chise_dt_put_char): Likewise.
289 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
290 of <DB*> as the type of member `db'.
291 (chise_ds_open_feature_table): New implementation.
292 (chise_ft_close): Likewise.
293 (chise_ft_get_value): Modify for new implementation of <struct
294 CHISE_Feature_Table>.
295 (chise_open_attribute_table): Use db_dir instead of ds as the
296 first argument; modify for new implementation of
297 <CHISE_Attribute_Table>.
298 (chise_close_attribute_table): Modify for new implementation of
299 <CHISE_Attribute_Table>.
300 (chise_get_attribute_table): Likewise.
301 (chise_put_attribute_table): Likewise.
303 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
305 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
306 (struct CHISE_Decoding_Table): New structure.
307 (chise_ds_open_decoding_table): Cast the return value to
308 <CHISE_Decoding_Table*>.
309 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
310 (chise_dt_get_char): Likewise.
311 (struct CHISE_Feature_Table): New structure.
312 (chise_ds_open_feature_table): Cast the return value to
313 <CHISE_Feature_Table*>.
314 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
315 (chise_ft_get_value): Likewise.
317 * chise.h (CHISE_Attribute_Table): Deleted.
318 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
319 of <CHISE_Attribute_Table>.
320 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
321 <CHISE_Attribute_Table>.
323 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
325 * chise.c (chise_open_attribute_table): New prototype.
326 (chise_close_attribute_table): New prototype.
327 (chise_get_attribute_table): New prototype.
329 * chise.h (chise_open_attribute_table): Deleted.
330 (chise_close_attribute_table): Deleted.
331 (chise_get_attribute_table): Deleted.
333 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
335 * chise.c (struct CHISE_DS): Definition of members are moved from
338 * chise.h (struct CHISE_DS): Omit definition of members.
340 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
342 * sample.c (main): Modify for new API.
344 * chise.c (chise_open_data_source): Interface change; allocate a
345 CHISE_DS object and return it.
346 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
347 the specified CHISE_DS object.
348 (chise_ds_open_decoding_table): Renamed from
349 `chise_open_decoding_table' and changed the interface.
350 (chise_dt_close): Renamed from `chise_close_decoding_table'.
351 (chise_ds_open_feature_table): Renamed from
352 `chise_open_feature_table' and changed the interface.
353 (chise_ft_close): Renamed from `chise_close_feature_table'.
354 (chise_open_attribute_table): Interface change; allocate a
355 CHISE_Attribute_Table object and return it; require pointer for
356 data source object instead of db_dir.
357 (chise_close_attribute_table): Destroy the specified
358 CHISE_Attribute_Table object.
360 * chise.h (struct CHISE_DS): Change type of location from <char*>
362 (chise_open_data_source): Change interface.
363 (chise_ds_close): Renamed from `chise_close_data_source'.
364 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
366 (chise_ds_open_decoding_table): Renamed from
367 `chise_open_decoding_table' and changed the interface.
368 (chise_dt_close): Renamed from `chise_close_decoding_table'.
369 (chise_ds_open_feature_table): Renamed from
370 `chise_open_feature_table' and changed the interface.
371 (chise_ft_close): Renamed from `chise_close_feature_table'.
372 (chise_open_attribute_table): Change interface.
374 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
376 * configure.in: Update version to 0.2.0.
378 * Makefile.in (ABI_VERSION): New variable.
379 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
381 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
383 * sample.c (main): Use <CHISE_Decoding_Table> instead of
384 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
385 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
386 `ft_ideographic_structure' and `ft_ascii'.
388 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
389 instead of <CHISE_Decoding_Table**> as the type of the first
391 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
392 <CHISE_Feature_Table**> as the type of the first argument.
393 (chise_ft_iterate): Modify for the structure
394 `CHISE_Feature_Table'.
395 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
396 of <CHISE_Attribute_Table **> as the type of the first argument;
397 modify for the structure <CHISE_Feature_Table>.
398 (chise_close_attribute_table): Modify for the structure
399 <CHISE_Feature_Table>.
400 (chise_get_attribute_table): Likewise.
401 (chise_put_attribute_table): Likewise.
403 * chise.h (CHISE_Attribute_Table): Define as a structure.
404 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
405 of <CHISE_Decoding_Table**> as the type of the first argument.
406 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
407 <CHISE_Feature_Table**> as the type of the first argument.
408 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
409 of <CHISE_Attribute_Table**> as the type of the first argument.
411 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
413 * chise.h (chise_dt_put_char): New prototype.
415 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
417 * chise.c (chise_dt_put_char): New function.
418 (chise_put_attribute_table): New function.
420 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
422 * chise.c (chise_format_char_id): New function.
423 (chise_ft_get_value): Use `chise_format_char_id'.
425 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
427 * chise.h: Define `_CHISE_H'.
429 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
431 * sample.c (test_map_func): New function.
432 (main): Add sample of `chise_ft_iterate'.
434 * chise.c (chise_char_id_parse_c_string): New function.
435 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
436 (chise_ft_iterate): New function.
438 * chise.h (chise_ft_iterate): New function.
440 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
442 * chise.c (chise_ft_get_value): Use escape forms for some special
445 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
447 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
449 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
450 argument `feature' for file name.
452 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
454 * chise.c, chise.h: Move strnlen related code from chise.h to
457 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
459 * Makefile.in (CFLAGS): Refer @CFLAGS@.
461 * configure.in: Add check code for Fink.
463 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
465 * Makefile.in (LIBTOOL): New variable.
466 (distclean): New target.
468 * configure.in: Check about libtool.
470 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * Makefile.in: Use libtool.
474 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
476 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
478 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
479 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
484 * configure: New file.
486 * Makefile.in, config.h.in, configure.in: New files.
488 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
490 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
491 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
492 instead of `strlen'; fix problem about control characters.
494 * chise.h (chise_value_data): New inline function.
496 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
498 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
500 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
502 * sample.c: Add comments.
504 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
506 * sample.c: Use <chise.h>.
507 (db_dir): Use "/usr/local/lib/chise/char-db".
509 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
511 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
513 * Makefile, chise.c, chise.h, sample.c: New files.