1 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4 - `chise_open_data_source' is renamed to `CHISE_DS_open'.
5 - `chise_ds_close' is renamed to `CHISE_DS_close'.
7 * name.c: Modify to avoid warning.
9 * chise-name.h (chise_make_name_table): Modify to avoid warning.
11 * chise.c (strnlen): Separated to sysdep.h; include sysdep.h
13 (CHISE_Attribute_Table_open): Renamed from
14 `chise_open_attribute_table'.
15 (CHISE_Attribute_Table_close): Renamed from
16 `chise_close_attribute_table'.
17 (chise_attribute_table_get): Renamed from
18 `chise_get_attribute_table'.
19 (chise_attribute_table_put): Renamed from
20 `chise_put_attribute_table'.
21 (CHISE_DS_open): Renamed from `chise_open_data_source'.
22 (CHISE_DS_close): Renamed from `chise_ds_close'.
23 (chise_feature_setup_db): New function.
24 (chise_char_load_feature_value): Use `chise_feature_setup_db'.
25 (chise_char_gets_feature_value): Likewise.
26 (chise_char_feature_value_iterate): Likewise.
28 * Makefile.in (CFLAGS): Add -Wall and -Wmissing-prototypes.
29 (chise.lo): Add dependency on sysdep.h.
31 * chise.h (CHISE_DS_open): Renamed from `chise_open_data_source'.
32 (CHISE_DS_close): Renamed from `chise_ds_close'.
34 * sysdep.h: New file [separate from chise.c].
36 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
38 * chise.h (chise_ds_open_feature_table): Abolished.
39 (chise_ft_close): Likewise.
41 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
43 * sample.c: Update for the latest API.
45 * chise.c (struct CHISE_DS): Add new member `subtype' and
47 (chise_open_data_source): Add new arguments `subtype' and
49 (chise_ds_get_feature): Delete arguments `real_subtype',
50 `accessmask', `modemask'.
51 (chise_ds_get_ccs): Likewise.
52 (struct CHISE_Feature_Table): Add new member `name' and `access'.
53 (chise_ds_open_feature_table): Delete arguments `real_subtype',
54 `accessmask', `modemask'.
55 (chise_ft_close): Release `table->name'.
56 (chise_char_load_feature_value): Setup `table->db'.
57 (chise_char_gets_feature_value): Likewise.
58 (chise_char_feature_value_iterate): Return an integer value; setup
60 (struct CHISE_CCS_Table): Add new member `name' and `access'.
61 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
62 `accessmask', `modemask'.
63 (chise_ccst_close): Release `table->name'.
64 (chise_ccs_sync): New function.
65 (chise_ccs_decode): Setup `ccs->db'.
66 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
69 * chise.h (chise_open_data_source): Add new arguments `subtype'
71 (chise_ds_get_feature): Delete arguments `real_subtype',
72 `accessmask', `modemask'.
73 (chise_char_feature_value_iterate): Return an integer value.
74 (chise_char_feature_str_iterate): Comment out.
75 (chise_ds_open_feature_table): Delete arguments `real_subtype',
76 `accessmask', `modemask'.
77 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
79 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
80 (chise_ccs_sync): New prototype.
81 (chise_ds_open_ccs_table): Abolished.
82 (int chise_ccst_close): Abolished.
84 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
86 * sample.c (test_map_func): Modify for
87 chise_char_feature_value_iterate.
88 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
89 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
90 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
91 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
92 use `chise_char_gets_feature_value' instead of
93 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
94 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
96 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
98 * chise.c: Include "chise-name.h".
99 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
100 (chise_open_data_source): Setup ds->feature_names and
102 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
103 (chise_ds_get_feature): New function.
104 (chise_ds_get_ccs): New function.
105 (chise_char_load_feature_value): Renamed from
106 `chise_ft_get_value'; modify interface.
107 (chise_char_gets_feature_value): New function.
108 (chise_char_feature_value_iterate): Renamed from
109 `chise_ft_iterate'; modify interface.
110 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
111 (chise_ds_open_ccs_table): Renamed from
112 `chise_ds_open_decoding_table'.
113 (chise_ccst_close): Renamed from `chise_dt_close'.
114 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
115 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
117 * chise.h (CHISE_Feature): New type.
118 (chise_ds_get_feature): New prototype.
119 (chise_char_load_feature_value): Renamed from
120 `chise_ft_get_value'; modify interface.
121 (chise_char_gets_feature_value): New prototype.
122 (chise_char_feature_value_iterate): Renamed from
123 `chise_ft_iterate'; modify interface.
124 (chise_char_feature_str_iterate): New prototype.
125 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
126 (CHISE_CCS): New type.
127 (chise_ds_get_ccs): New prototype.
128 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
129 (chise_ds_open_ccs_table): Renamed from
130 `chise_ds_open_decoding_table'.
131 (chise_ccst_close): Renamed from `chise_dt_close'.
132 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
133 (chise_decode_char): Deleted.
134 (chise_get_feature): Deleted.
136 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
138 * name.c: Include "chise-name.h".
139 (chise_name_table_put): Use <const unsigned char*> instead of
140 <unsigned char*> for key.
141 (chise_name_table_get): Likewise.
143 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
144 instead of <unsigned char*> for key.
145 (chise_name_table_get): Likewise.
147 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
149 * Makefile.in (HEADERS): New variable.
150 (OBJS): New variable.
151 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
152 (chise.lo): Depends on config.h.
153 (name.lo): New target.
154 (install.h): Refer $(HEADERS).
156 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
158 * chise-name.h, name.c: New files.
160 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
162 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
163 CHISE_Attribute_Table>.
164 (chise_put_attribute_table): New prototype.
165 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
166 instead of <DB*> as the type of member `db'.
167 (chise_ds_open_decoding_table): New implementation.
168 (chise_dt_close): Likewise.
169 (chise_dt_get_char): Modify for new implementation of <struct
170 CHISE_Decoding_Table>.
171 (chise_dt_put_char): Likewise.
172 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
173 of <DB*> as the type of member `db'.
174 (chise_ds_open_feature_table): New implementation.
175 (chise_ft_close): Likewise.
176 (chise_ft_get_value): Modify for new implementation of <struct
177 CHISE_Feature_Table>.
178 (chise_open_attribute_table): Use db_dir instead of ds as the
179 first argument; modify for new implementation of
180 <CHISE_Attribute_Table>.
181 (chise_close_attribute_table): Modify for new implementation of
182 <CHISE_Attribute_Table>.
183 (chise_get_attribute_table): Likewise.
184 (chise_put_attribute_table): Likewise.
186 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
188 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
189 (struct CHISE_Decoding_Table): New structure.
190 (chise_ds_open_decoding_table): Cast the return value to
191 <CHISE_Decoding_Table*>.
192 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
193 (chise_dt_get_char): Likewise.
194 (struct CHISE_Feature_Table): New structure.
195 (chise_ds_open_feature_table): Cast the return value to
196 <CHISE_Feature_Table*>.
197 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
198 (chise_ft_get_value): Likewise.
200 * chise.h (CHISE_Attribute_Table): Deleted.
201 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
202 of <CHISE_Attribute_Table>.
203 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
204 <CHISE_Attribute_Table>.
206 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
208 * chise.c (chise_open_attribute_table): New prototype.
209 (chise_close_attribute_table): New prototype.
210 (chise_get_attribute_table): New prototype.
212 * chise.h (chise_open_attribute_table): Deleted.
213 (chise_close_attribute_table): Deleted.
214 (chise_get_attribute_table): Deleted.
216 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
218 * chise.c (struct CHISE_DS): Definition of members are moved from
221 * chise.h (struct CHISE_DS): Omit definition of members.
223 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
225 * sample.c (main): Modify for new API.
227 * chise.c (chise_open_data_source): Interface change; allocate a
228 CHISE_DS object and return it.
229 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
230 the specified CHISE_DS object.
231 (chise_ds_open_decoding_table): Renamed from
232 `chise_open_decoding_table' and changed the interface.
233 (chise_dt_close): Renamed from `chise_close_decoding_table'.
234 (chise_ds_open_feature_table): Renamed from
235 `chise_open_feature_table' and changed the interface.
236 (chise_ft_close): Renamed from `chise_close_feature_table'.
237 (chise_open_attribute_table): Interface change; allocate a
238 CHISE_Attribute_Table object and return it; require pointer for
239 data source object instead of db_dir.
240 (chise_close_attribute_table): Destroy the specified
241 CHISE_Attribute_Table object.
243 * chise.h (struct CHISE_DS): Change type of location from <char*>
245 (chise_open_data_source): Change interface.
246 (chise_ds_close): Renamed from `chise_close_data_source'.
247 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
249 (chise_ds_open_decoding_table): Renamed from
250 `chise_open_decoding_table' and changed the interface.
251 (chise_dt_close): Renamed from `chise_close_decoding_table'.
252 (chise_ds_open_feature_table): Renamed from
253 `chise_open_feature_table' and changed the interface.
254 (chise_ft_close): Renamed from `chise_close_feature_table'.
255 (chise_open_attribute_table): Change interface.
257 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
259 * configure.in: Update version to 0.2.0.
261 * Makefile.in (ABI_VERSION): New variable.
262 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
264 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * sample.c (main): Use <CHISE_Decoding_Table> instead of
267 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
268 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
269 `ft_ideographic_structure' and `ft_ascii'.
271 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
272 instead of <CHISE_Decoding_Table**> as the type of the first
274 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
275 <CHISE_Feature_Table**> as the type of the first argument.
276 (chise_ft_iterate): Modify for the structure
277 `CHISE_Feature_Table'.
278 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
279 of <CHISE_Attribute_Table **> as the type of the first argument;
280 modify for the structure <CHISE_Feature_Table>.
281 (chise_close_attribute_table): Modify for the structure
282 <CHISE_Feature_Table>.
283 (chise_get_attribute_table): Likewise.
284 (chise_put_attribute_table): Likewise.
286 * chise.h (CHISE_Attribute_Table): Define as a structure.
287 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
288 of <CHISE_Decoding_Table**> as the type of the first argument.
289 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
290 <CHISE_Feature_Table**> as the type of the first argument.
291 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
292 of <CHISE_Attribute_Table**> as the type of the first argument.
294 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
296 * chise.h (chise_dt_put_char): New prototype.
298 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
300 * chise.c (chise_dt_put_char): New function.
301 (chise_put_attribute_table): New function.
303 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
305 * chise.c (chise_format_char_id): New function.
306 (chise_ft_get_value): Use `chise_format_char_id'.
308 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
310 * chise.h: Define `_CHISE_H'.
312 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
314 * sample.c (test_map_func): New function.
315 (main): Add sample of `chise_ft_iterate'.
317 * chise.c (chise_char_id_parse_c_string): New function.
318 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
319 (chise_ft_iterate): New function.
321 * chise.h (chise_ft_iterate): New function.
323 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
325 * chise.c (chise_ft_get_value): Use escape forms for some special
328 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
330 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
332 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
333 argument `feature' for file name.
335 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
337 * chise.c, chise.h: Move strnlen related code from chise.h to
340 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
342 * Makefile.in (CFLAGS): Refer @CFLAGS@.
344 * configure.in: Add check code for Fink.
346 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
348 * Makefile.in (LIBTOOL): New variable.
349 (distclean): New target.
351 * configure.in: Check about libtool.
353 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
355 * Makefile.in: Use libtool.
357 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
359 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
361 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
362 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
367 * configure: New file.
369 * Makefile.in, config.h.in, configure.in: New files.
371 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
373 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
374 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
375 instead of `strlen'; fix problem about control characters.
377 * chise.h (chise_value_data): New inline function.
379 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
381 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
383 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
385 * sample.c: Add comments.
387 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
389 * sample.c: Use <chise.h>.
390 (db_dir): Use "/usr/local/lib/chise/char-db".
392 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
394 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
396 * Makefile, chise.c, chise.h, sample.c: New files.