1 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
4 CHISE_Attribute_Table>.
5 (chise_put_attribute_table): New prototype.
6 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
7 instead of <DB*> as the type of member `db'.
8 (chise_ds_open_decoding_table): New implementation.
9 (chise_dt_close): Likewise.
10 (chise_dt_get_char): Modify for new implementation of <struct
11 CHISE_Decoding_Table>.
12 (chise_dt_put_char): Likewise.
13 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
14 of <DB*> as the type of member `db'.
15 (chise_ds_open_feature_table): New implementation.
16 (chise_ft_close): Likewise.
17 (chise_ft_get_value): Modify for new implementation of <struct
19 (chise_open_attribute_table): Use db_dir instead of ds as the
20 first argument; modify for new implementation of
21 <CHISE_Attribute_Table>.
22 (chise_close_attribute_table): Modify for new implementation of
23 <CHISE_Attribute_Table>.
24 (chise_get_attribute_table): Likewise.
25 (chise_put_attribute_table): Likewise.
27 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
29 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
30 (struct CHISE_Decoding_Table): New structure.
31 (chise_ds_open_decoding_table): Cast the return value to
32 <CHISE_Decoding_Table*>.
33 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
34 (chise_dt_get_char): Likewise.
35 (struct CHISE_Feature_Table): New structure.
36 (chise_ds_open_feature_table): Cast the return value to
37 <CHISE_Feature_Table*>.
38 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
39 (chise_ft_get_value): Likewise.
41 * chise.h (CHISE_Attribute_Table): Deleted.
42 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
43 of <CHISE_Attribute_Table>.
44 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
45 <CHISE_Attribute_Table>.
47 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
49 * chise.c (chise_open_attribute_table): New prototype.
50 (chise_close_attribute_table): New prototype.
51 (chise_get_attribute_table): New prototype.
53 * chise.h (chise_open_attribute_table): Deleted.
54 (chise_close_attribute_table): Deleted.
55 (chise_get_attribute_table): Deleted.
57 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
59 * chise.c (struct CHISE_DS): Definition of members are moved from
62 * chise.h (struct CHISE_DS): Omit definition of members.
64 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
66 * sample.c (main): Modify for new API.
68 * chise.c (chise_open_data_source): Interface change; allocate a
69 CHISE_DS object and return it.
70 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
71 the specified CHISE_DS object.
72 (chise_ds_open_decoding_table): Renamed from
73 `chise_open_decoding_table' and changed the interface.
74 (chise_dt_close): Renamed from `chise_close_decoding_table'.
75 (chise_ds_open_feature_table): Renamed from
76 `chise_open_feature_table' and changed the interface.
77 (chise_ft_close): Renamed from `chise_close_feature_table'.
78 (chise_open_attribute_table): Interface change; allocate a
79 CHISE_Attribute_Table object and return it; require pointer for
80 data source object instead of db_dir.
81 (chise_close_attribute_table): Destroy the specified
82 CHISE_Attribute_Table object.
84 * chise.h (struct CHISE_DS): Change type of location from <char*>
86 (chise_open_data_source): Change interface.
87 (chise_ds_close): Renamed from `chise_close_data_source'.
88 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
90 (chise_ds_open_decoding_table): Renamed from
91 `chise_open_decoding_table' and changed the interface.
92 (chise_dt_close): Renamed from `chise_close_decoding_table'.
93 (chise_ds_open_feature_table): Renamed from
94 `chise_open_feature_table' and changed the interface.
95 (chise_ft_close): Renamed from `chise_close_feature_table'.
96 (chise_open_attribute_table): Change interface.
98 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
100 * configure.in: Update version to 0.2.0.
102 * Makefile.in (ABI_VERSION): New variable.
103 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
105 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
107 * sample.c (main): Use <CHISE_Decoding_Table> instead of
108 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
109 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
110 `ft_ideographic_structure' and `ft_ascii'.
112 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
113 instead of <CHISE_Decoding_Table**> as the type of the first
115 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
116 <CHISE_Feature_Table**> as the type of the first argument.
117 (chise_ft_iterate): Modify for the structure
118 `CHISE_Feature_Table'.
119 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
120 of <CHISE_Attribute_Table **> as the type of the first argument;
121 modify for the structure <CHISE_Feature_Table>.
122 (chise_close_attribute_table): Modify for the structure
123 <CHISE_Feature_Table>.
124 (chise_get_attribute_table): Likewise.
125 (chise_put_attribute_table): Likewise.
127 * chise.h (CHISE_Attribute_Table): Define as a structure.
128 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
129 of <CHISE_Decoding_Table**> as the type of the first argument.
130 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
131 <CHISE_Feature_Table**> as the type of the first argument.
132 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
133 of <CHISE_Attribute_Table**> as the type of the first argument.
135 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
137 * chise.h (chise_dt_put_char): New prototype.
139 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
141 * chise.c (chise_dt_put_char): New function.
142 (chise_put_attribute_table): New function.
144 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
146 * chise.c (chise_format_char_id): New function.
147 (chise_ft_get_value): Use `chise_format_char_id'.
149 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
151 * chise.h: Define `_CHISE_H'.
153 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
155 * sample.c (test_map_func): New function.
156 (main): Add sample of `chise_ft_iterate'.
158 * chise.c (chise_char_id_parse_c_string): New function.
159 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
160 (chise_ft_iterate): New function.
162 * chise.h (chise_ft_iterate): New function.
164 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
166 * chise.c (chise_ft_get_value): Use escape forms for some special
169 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
171 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
173 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
174 argument `feature' for file name.
176 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
178 * chise.c, chise.h: Move strnlen related code from chise.h to
181 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
183 * Makefile.in (CFLAGS): Refer @CFLAGS@.
185 * configure.in: Add check code for Fink.
187 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
189 * Makefile.in (LIBTOOL): New variable.
190 (distclean): New target.
192 * configure.in: Check about libtool.
194 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
196 * Makefile.in: Use libtool.
198 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
200 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
202 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
203 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
208 * configure: New file.
210 * Makefile.in, config.h.in, configure.in: New files.
212 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
214 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
215 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
216 instead of `strlen'; fix problem about control characters.
218 * chise.h (chise_value_data): New inline function.
220 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
222 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
224 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
226 * sample.c: Add comments.
228 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
230 * sample.c: Use <chise.h>.
231 (db_dir): Use "/usr/local/lib/chise/char-db".
233 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
235 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
237 * Makefile, chise.c, chise.h, sample.c: New files.