2003-10-30 MORIOKA Tomohiko * sample.c (test_map_func): Modify to display UCS code point and character name. (main): Use `chise_system_db_dir'; display `numeric-value' instead of `ascii'. 2003-10-15 MORIOKA Tomohiko * chise.c (CHISE_Attribute_Table_open): Add code for BDB Ver. 4.1 or later. * chise.h (chise_system_db_dir): New constant. 2003-10-15 MORIOKA Tomohiko * Makefile.in (LIBS): Don't add -ldb. * configure.in: Setup LIBS; check /sw/include/db4/db.h and setup for db4 when the library is found. 2003-10-15 MORIOKA Tomohiko * aclocal.m4, ltmain.sh, config.guess, config.sub, install-sh: New files. * Makefile.in (target): New variable. (top_builddir): New variable. (CHISE_DIR_PREFIX): New variable. (CHISE_DIR_VERSION): New variable. (CHISE_DIR): New variable. (CHISE_DB_DIR): Renamed from `DB_DIR'; use `CHISE_DIR'. (CHISE_SI_DB_DIR): New variable. (CHISE_CFLAGS): New variable; define `CHISE_SI_DB_DIR'. (chise.lo): Use $(CHISE_CFLAGS). * configure.in: Add `AC_CANONICAL_TARGET'; use `AC_PROG_LIBTOOL' instead of `AC_CHECK_PROGS' for `LIBTOOL'. * chise.c (chise_system_db_dir): New constant. (CHISE_DS_open): Don't use DBTYPE. 2003-10-14 MORIOKA Tomohiko * chise.h (CHISE_DS_open): Don't use DBTYPE. 2003-10-14 MORIOKA Tomohiko * Makefile.in (DB_DIR): Update version to 0.2. 2003-10-13 MORIOKA Tomohiko * chise.c (chise_ds_foreach_char_feature_name): Read ${db_dir}/character/feature/ instead of ${db_dir}/system-char-id. (chise_feature_setup_db): Modify for `CHISE_Attribute_Table_open'. (chise_ccs_setup_db): Likewise. (CHISE_Attribute_Table_open): Change interface to specify category/key_type/name instead of encoding/feature. 2003-10-12 MORIOKA Tomohiko * chise.c (chise_ds_foreach_char_feature_name): New function. (chise_feature_foreach_char_with_value): Renamed from `chise_char_feature_value_iterate'. 2003-10-11 MORIOKA Tomohiko * sample.c (test_name_map_func): New function. (main): Use `chise_ds_foreach_char_feature_name'. * Makefile.in (sample): Add -Wall -Wmissing-prototypes options for gcc. * chise.h (chise_ds_foreach_char_feature_name): New prototype. (chise_feature_foreach_char_with_value): Renamed from `chise_char_feature_value_iterate'. 2003-10-08 MORIOKA Tomohiko * sample.c (char db_dir): Deleted. (main): Use ${chise_db_dir}/db/ for the location of data-source. * Makefile.in (prefix): Use @prefix@. (exec_prefix): Use @exec_prefix@. (libdir): Use @libdir@. (libexecdir): New variable. (DB_INSTALLDIR): Deleted. (DB_DIR): New variable. (chise.lo): Specify DB_DIR. (install): Don't call install.db. (install.db): Deleted. * chise.h, chise.c (chise_db_dir): New variable. (CHISE_DS_open): Use instead of as the type of location. 2003-10-06 MORIOKA Tomohiko * chise.h (chise_feature_setup_db): New prototype. (chise_ccs_setup_db): Likewise. * chise.c (chise_feature_setup_db): Changed to public function. (chise_ccs_setup_db): New function. (chise_ccs_decode): Use `chise_ccs_setup_db'. (chise_ccs_set_decoded_char): Likewise. 2003-10-05 MORIOKA Tomohiko * chise.c (CHISE_Attribute_Table_open): Create required directories when running with create mode. 2003-10-05 MORIOKA Tomohiko * chise.h (chise_feature_sync): New prototype. (chise_char_set_feature_value): New prototype. (chise_ds_load_char_feature_value): New inline function. * chise.c (chise_feature_sync): New function. (chise_char_set_feature_value): New function. 2003-10-03 MORIOKA Tomohiko * sample.c (main): Use `chise_ds_decode_char' instead of `chise_ds_get_ccs' and `chise_ccs_decode'. * chise.c (chise_ccs_decode): Return -1 when argument `ccs' is NULL. (chise_ccs_set_decoded_char): Likewise. * chise.h (chise_ds_decode_char): New inline function. 2003-10-02 MORIOKA Tomohiko * sample.c: - `chise_open_data_source' is renamed to `CHISE_DS_open'. - `chise_ds_close' is renamed to `CHISE_DS_close'. * name.c: Modify to avoid warning. * chise-name.h (chise_make_name_table): Modify to avoid warning. * chise.c (strnlen): Separated to sysdep.h; include sysdep.h instead. (CHISE_Attribute_Table_open): Renamed from `chise_open_attribute_table'. (CHISE_Attribute_Table_close): Renamed from `chise_close_attribute_table'. (chise_attribute_table_get): Renamed from `chise_get_attribute_table'. (chise_attribute_table_put): Renamed from `chise_put_attribute_table'. (CHISE_DS_open): Renamed from `chise_open_data_source'. (CHISE_DS_close): Renamed from `chise_ds_close'. (chise_feature_setup_db): New function. (chise_char_load_feature_value): Use `chise_feature_setup_db'. (chise_char_gets_feature_value): Likewise. (chise_char_feature_value_iterate): Likewise. * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes. (chise.lo): Add dependency on sysdep.h. * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'. (CHISE_DS_close): Renamed from `chise_ds_close'. * sysdep.h: New file [separate from chise.c]. 2003-10-02 MORIOKA Tomohiko * chise.h (chise_ds_open_feature_table): Abolished. (chise_ft_close): Likewise. 2003-10-02 MORIOKA Tomohiko * sample.c: Update for the latest API. * chise.c (struct CHISE_DS): Add new member `subtype' and `modemask'. (chise_open_data_source): Add new arguments `subtype' and `modemask'. (chise_ds_get_feature): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_ds_get_ccs): Likewise. (struct CHISE_Feature_Table): Add new member `name' and `access'. (chise_ds_open_feature_table): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_ft_close): Release `table->name'. (chise_char_load_feature_value): Setup `table->db'. (chise_char_gets_feature_value): Likewise. (chise_char_feature_value_iterate): Return an integer value; setup `feature->db'. (struct CHISE_CCS_Table): Add new member `name' and `access'. (chise_ds_open_ccs_table): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_ccst_close): Release `table->name'. (chise_ccs_sync): New function. (chise_ccs_decode): Setup `ccs->db'. (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'; setup `ccs->db'. * chise.h (chise_open_data_source): Add new arguments `subtype' and `modemask'. (chise_ds_get_feature): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_char_feature_value_iterate): Return an integer value. (chise_char_feature_str_iterate): Comment out. (chise_ds_open_feature_table): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask', `modemask'. (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'. (chise_ccs_sync): New prototype. (chise_ds_open_ccs_table): Abolished. (int chise_ccst_close): Abolished. 2003-08-28 MORIOKA Tomohiko * sample.c (test_map_func): Modify for chise_char_feature_value_iterate. (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead of `chise_dt_get_char'; don't use `chise_dt_close'; use `use `chise_ds_get_feature' instead of `chise_ds_open_feature_table'; use `chise_char_gets_feature_value' instead of `chise_ft_get_value'; use `chise_char_feature_value_iterate' instead of `chise_ft_iterate'; don't use `chise_ft_close'. 2003-08-26 MORIOKA Tomohiko * chise.c: Include "chise-name.h". (CHISE_DS): Add new members `feature_names' and `ccs_names'. (chise_open_data_source): Setup ds->feature_names and ds->ccs_names. (chise_ds_close): Release ds->feature_names and ds->ccs_names. (chise_ds_get_feature): New function. (chise_ds_get_ccs): New function. (chise_char_load_feature_value): Renamed from `chise_ft_get_value'; modify interface. (chise_char_gets_feature_value): New function. (chise_char_feature_value_iterate): Renamed from `chise_ft_iterate'; modify interface. (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'. (chise_ds_open_ccs_table): Renamed from `chise_ds_open_decoding_table'. (chise_ccst_close): Renamed from `chise_dt_close'. (chise_ccs_decode): Renamed from `chise_dt_get_char'. (chise_ccst_put_char): Renamed from `chise_dt_put_char'. * chise.h (CHISE_Feature): New type. (chise_ds_get_feature): New prototype. (chise_char_load_feature_value): Renamed from `chise_ft_get_value'; modify interface. (chise_char_gets_feature_value): New prototype. (chise_char_feature_value_iterate): Renamed from `chise_ft_iterate'; modify interface. (chise_char_feature_str_iterate): New prototype. (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'. (CHISE_CCS): New type. (chise_ds_get_ccs): New prototype. (chise_ccs_decode): Renamed from `chise_dt_get_char'. (chise_ds_open_ccs_table): Renamed from `chise_ds_open_decoding_table'. (chise_ccst_close): Renamed from `chise_dt_close'. (chise_ccst_put_char): Renamed from `chise_dt_put_char'. (chise_decode_char): Deleted. (chise_get_feature): Deleted. 2003-08-20 MORIOKA Tomohiko * name.c: Include "chise-name.h". (chise_name_table_put): Use instead of for key. (chise_name_table_get): Likewise. * chise-name.h (chise_name_table_put): Use instead of for key. (chise_name_table_get): Likewise. 2003-08-16 MORIOKA Tomohiko * Makefile.in (HEADERS): New variable. (OBJS): New variable. (libchise.la): Refer $(OBJS); add --mode=link for libtool. (chise.lo): Depends on config.h. (name.lo): New target. (install.h): Refer $(HEADERS). 2003-08-15 MORIOKA Tomohiko * chise-name.h, name.c: New files. 2003-08-17 MORIOKA Tomohiko * chise.c (CHISE_Attribute_Table): Use instead of . (chise_put_attribute_table): New prototype. (struct CHISE_Decoding_Table): Use instead of as the type of member `db'. (chise_ds_open_decoding_table): New implementation. (chise_dt_close): Likewise. (chise_dt_get_char): Modify for new implementation of . (chise_dt_put_char): Likewise. (struct CHISE_Feature_Table): Use instead of as the type of member `db'. (chise_ds_open_feature_table): New implementation. (chise_ft_close): Likewise. (chise_ft_get_value): Modify for new implementation of . (chise_open_attribute_table): Use db_dir instead of ds as the first argument; modify for new implementation of . (chise_close_attribute_table): Modify for new implementation of . (chise_get_attribute_table): Likewise. (chise_put_attribute_table): Likewise. 2003-08-17 MORIOKA Tomohiko * chise.c (CHISE_Attribute_Table): Moved from chise.h. (struct CHISE_Decoding_Table): New structure. (chise_ds_open_decoding_table): Cast the return value to . (chise_dt_close): Cast back to . (chise_dt_get_char): Likewise. (struct CHISE_Feature_Table): New structure. (chise_ds_open_feature_table): Cast the return value to . (chise_ft_close): Cast back to . (chise_ft_get_value): Likewise. * chise.h (CHISE_Attribute_Table): Deleted. (CHISE_Decoding_Table): Use instead of . (CHISE_Feature_Table): Use instead of . 2003-08-17 MORIOKA Tomohiko * chise.c (chise_open_attribute_table): New prototype. (chise_close_attribute_table): New prototype. (chise_get_attribute_table): New prototype. * chise.h (chise_open_attribute_table): Deleted. (chise_close_attribute_table): Deleted. (chise_get_attribute_table): Deleted. 2003-08-17 MORIOKA Tomohiko * chise.c (struct CHISE_DS): Definition of members are moved from chise.h. * chise.h (struct CHISE_DS): Omit definition of members. 2003-08-17 MORIOKA Tomohiko * sample.c (main): Modify for new API. * chise.c (chise_open_data_source): Interface change; allocate a CHISE_DS object and return it. (chise_ds_close): Renamed from `chise_close_data_source'; destroy the specified CHISE_DS object. (chise_ds_open_decoding_table): Renamed from `chise_open_decoding_table' and changed the interface. (chise_dt_close): Renamed from `chise_close_decoding_table'. (chise_ds_open_feature_table): Renamed from `chise_open_feature_table' and changed the interface. (chise_ft_close): Renamed from `chise_close_feature_table'. (chise_open_attribute_table): Interface change; allocate a CHISE_Attribute_Table object and return it; require pointer for data source object instead of db_dir. (chise_close_attribute_table): Destroy the specified CHISE_Attribute_Table object. * chise.h (struct CHISE_DS): Change type of location from to . (chise_open_data_source): Change interface. (chise_ds_close): Renamed from `chise_close_data_source'. (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp' to `db'. (chise_ds_open_decoding_table): Renamed from `chise_open_decoding_table' and changed the interface. (chise_dt_close): Renamed from `chise_close_decoding_table'. (chise_ds_open_feature_table): Renamed from `chise_open_feature_table' and changed the interface. (chise_ft_close): Renamed from `chise_close_feature_table'. (chise_open_attribute_table): Change interface. 2003-08-12 MORIOKA Tomohiko * configure.in: Update version to 0.2.0. * Makefile.in (ABI_VERSION): New variable. (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool. 2003-08-12 MORIOKA Tomohiko * sample.c (main): Use instead of to define `dt_daikanwa'; use instead of to define `ft_ideographic_structure' and `ft_ascii'. * chise.c (chise_open_decoding_table): Use instead of as the type of the first argument. (chise_open_feature_table): Use instead of as the type of the first argument. (chise_ft_iterate): Modify for the structure `CHISE_Feature_Table'. (chise_open_attribute_table): Use instead of as the type of the first argument; modify for the structure . (chise_close_attribute_table): Modify for the structure . (chise_get_attribute_table): Likewise. (chise_put_attribute_table): Likewise. * chise.h (CHISE_Attribute_Table): Define as a structure. (chise_open_decoding_table): Use instead of as the type of the first argument. (chise_open_feature_table): Use instead of as the type of the first argument. (chise_open_attribute_table): Use instead of as the type of the first argument. 2003-08-11 MORIOKA Tomohiko * chise.h (chise_dt_put_char): New prototype. 2003-08-10 MORIOKA Tomohiko * chise.c (chise_dt_put_char): New function. (chise_put_attribute_table): New function. 2003-08-10 MORIOKA Tomohiko * chise.c (chise_format_char_id): New function. (chise_ft_get_value): Use `chise_format_char_id'. 2003-08-09 MORIOKA Tomohiko * chise.h: Define `_CHISE_H'. 2003-08-09 MORIOKA Tomohiko * sample.c (test_map_func): New function. (main): Add sample of `chise_ft_iterate'. * chise.c (chise_char_id_parse_c_string): New function. (chise_dt_get_char): Use `chise_char_id_parse_c_string'. (chise_ft_iterate): New function. * chise.h (chise_ft_iterate): New function. 2003-08-06 MORIOKA Tomohiko * chise.c (chise_ft_get_value): Use escape forms for some special characters. 2003-08-06 MORIOKA Tomohiko * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa". * chise.c (chise_open_attribute_table): Encode '/' and '%' in argument `feature' for file name. 2003-07-12 MORIOKA Tomohiko * chise.c, chise.h: Move strnlen related code from chise.h to chise.c. 2003-07-08 MORIOKA Tomohiko * Makefile.in (CFLAGS): Refer @CFLAGS@. * configure.in: Add check code for Fink. 2003-07-08 MORIOKA Tomohiko * Makefile.in (LIBTOOL): New variable. (distclean): New target. * configure.in: Check about libtool. 2003-07-08 MORIOKA Tomohiko * Makefile.in: Use libtool. 2003-07-07 MORIOKA Tomohiko * chise.c: Include "config.h" when HAVE_CONFIG_H is defined. * chise.h (strnlen): New inline function when HAVE_STRNLEN is not defined [based on Izumi MIYAZAKI 's patch]. * Makefile: Deleted. * configure: New file. * Makefile.in, config.h.in, configure.in: New files. 2003-03-12 MORIOKA Tomohiko * chise.c (chise_dt_get_char): Use `chise_value_data' instead of `chise_value_to_c_string'; use `strnlen' and `chise_value_size' instead of `strlen'; fix problem about control characters. * chise.h (chise_value_data): New inline function. 2003-03-10 MORIOKA Tomohiko * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'. 2003-03-06 MORIOKA Tomohiko * sample.c: Add comments. 2003-03-06 MORIOKA Tomohiko * sample.c: Use . (db_dir): Use "/usr/local/lib/chise/char-db". * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/. 2003-03-05 MORIOKA Tomohiko * Makefile, chise.c, chise.h, sample.c: New files.