1 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * chise.h (chise_ds_open_feature_table): Abolished.
4 (chise_ft_close): Likewise.
6 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
8 * sample.c: Update for the latest API.
10 * chise.c (struct CHISE_DS): Add new member `subtype' and
12 (chise_open_data_source): Add new arguments `subtype' and
14 (chise_ds_get_feature): Delete arguments `real_subtype',
15 `accessmask', `modemask'.
16 (chise_ds_get_ccs): Likewise.
17 (struct CHISE_Feature_Table): Add new member `name' and `access'.
18 (chise_ds_open_feature_table): Delete arguments `real_subtype',
19 `accessmask', `modemask'.
20 (chise_ft_close): Release `table->name'.
21 (chise_char_load_feature_value): Setup `table->db'.
22 (chise_char_gets_feature_value): Likewise.
23 (chise_char_feature_value_iterate): Return an integer value; setup
25 (struct CHISE_CCS_Table): Add new member `name' and `access'.
26 (chise_ds_open_ccs_table): Delete arguments `real_subtype',
27 `accessmask', `modemask'.
28 (chise_ccst_close): Release `table->name'.
29 (chise_ccs_sync): New function.
30 (chise_ccs_decode): Setup `ccs->db'.
31 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char';
34 * chise.h (chise_open_data_source): Add new arguments `subtype'
36 (chise_ds_get_feature): Delete arguments `real_subtype',
37 `accessmask', `modemask'.
38 (chise_char_feature_value_iterate): Return an integer value.
39 (chise_char_feature_str_iterate): Comment out.
40 (chise_ds_open_feature_table): Delete arguments `real_subtype',
41 `accessmask', `modemask'.
42 (chise_ds_get_ccs): Delete arguments `real_subtype', `accessmask',
44 (chise_ccs_set_decoded_char): Renamed from `chise_ccst_put_char'.
45 (chise_ccs_sync): New prototype.
46 (chise_ds_open_ccs_table): Abolished.
47 (int chise_ccst_close): Abolished.
49 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
51 * sample.c (test_map_func): Modify for
52 chise_char_feature_value_iterate.
53 (main): Rename `dt_*' to `ccs_*'; use `chise_ds_get_ccs' instead
54 of `chise_ds_open_decoding_table'; use `chise_ccs_decode' instead
55 of `chise_dt_get_char'; don't use `chise_dt_close'; use `use
56 `chise_ds_get_feature' instead of `chise_ds_open_feature_table';
57 use `chise_char_gets_feature_value' instead of
58 `chise_ft_get_value'; use `chise_char_feature_value_iterate'
59 instead of `chise_ft_iterate'; don't use `chise_ft_close'.
61 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
63 * chise.c: Include "chise-name.h".
64 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
65 (chise_open_data_source): Setup ds->feature_names and
67 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
68 (chise_ds_get_feature): New function.
69 (chise_ds_get_ccs): New function.
70 (chise_char_load_feature_value): Renamed from
71 `chise_ft_get_value'; modify interface.
72 (chise_char_gets_feature_value): New function.
73 (chise_char_feature_value_iterate): Renamed from
74 `chise_ft_iterate'; modify interface.
75 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
76 (chise_ds_open_ccs_table): Renamed from
77 `chise_ds_open_decoding_table'.
78 (chise_ccst_close): Renamed from `chise_dt_close'.
79 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
80 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
82 * chise.h (CHISE_Feature): New type.
83 (chise_ds_get_feature): New prototype.
84 (chise_char_load_feature_value): Renamed from
85 `chise_ft_get_value'; modify interface.
86 (chise_char_gets_feature_value): New prototype.
87 (chise_char_feature_value_iterate): Renamed from
88 `chise_ft_iterate'; modify interface.
89 (chise_char_feature_str_iterate): New prototype.
90 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
91 (CHISE_CCS): New type.
92 (chise_ds_get_ccs): New prototype.
93 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
94 (chise_ds_open_ccs_table): Renamed from
95 `chise_ds_open_decoding_table'.
96 (chise_ccst_close): Renamed from `chise_dt_close'.
97 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
98 (chise_decode_char): Deleted.
99 (chise_get_feature): Deleted.
101 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
103 * name.c: Include "chise-name.h".
104 (chise_name_table_put): Use <const unsigned char*> instead of
105 <unsigned char*> for key.
106 (chise_name_table_get): Likewise.
108 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
109 instead of <unsigned char*> for key.
110 (chise_name_table_get): Likewise.
112 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
114 * Makefile.in (HEADERS): New variable.
115 (OBJS): New variable.
116 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
117 (chise.lo): Depends on config.h.
118 (name.lo): New target.
119 (install.h): Refer $(HEADERS).
121 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
123 * chise-name.h, name.c: New files.
125 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
127 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
128 CHISE_Attribute_Table>.
129 (chise_put_attribute_table): New prototype.
130 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
131 instead of <DB*> as the type of member `db'.
132 (chise_ds_open_decoding_table): New implementation.
133 (chise_dt_close): Likewise.
134 (chise_dt_get_char): Modify for new implementation of <struct
135 CHISE_Decoding_Table>.
136 (chise_dt_put_char): Likewise.
137 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
138 of <DB*> as the type of member `db'.
139 (chise_ds_open_feature_table): New implementation.
140 (chise_ft_close): Likewise.
141 (chise_ft_get_value): Modify for new implementation of <struct
142 CHISE_Feature_Table>.
143 (chise_open_attribute_table): Use db_dir instead of ds as the
144 first argument; modify for new implementation of
145 <CHISE_Attribute_Table>.
146 (chise_close_attribute_table): Modify for new implementation of
147 <CHISE_Attribute_Table>.
148 (chise_get_attribute_table): Likewise.
149 (chise_put_attribute_table): Likewise.
151 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
153 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
154 (struct CHISE_Decoding_Table): New structure.
155 (chise_ds_open_decoding_table): Cast the return value to
156 <CHISE_Decoding_Table*>.
157 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
158 (chise_dt_get_char): Likewise.
159 (struct CHISE_Feature_Table): New structure.
160 (chise_ds_open_feature_table): Cast the return value to
161 <CHISE_Feature_Table*>.
162 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
163 (chise_ft_get_value): Likewise.
165 * chise.h (CHISE_Attribute_Table): Deleted.
166 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
167 of <CHISE_Attribute_Table>.
168 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
169 <CHISE_Attribute_Table>.
171 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
173 * chise.c (chise_open_attribute_table): New prototype.
174 (chise_close_attribute_table): New prototype.
175 (chise_get_attribute_table): New prototype.
177 * chise.h (chise_open_attribute_table): Deleted.
178 (chise_close_attribute_table): Deleted.
179 (chise_get_attribute_table): Deleted.
181 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
183 * chise.c (struct CHISE_DS): Definition of members are moved from
186 * chise.h (struct CHISE_DS): Omit definition of members.
188 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
190 * sample.c (main): Modify for new API.
192 * chise.c (chise_open_data_source): Interface change; allocate a
193 CHISE_DS object and return it.
194 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
195 the specified CHISE_DS object.
196 (chise_ds_open_decoding_table): Renamed from
197 `chise_open_decoding_table' and changed the interface.
198 (chise_dt_close): Renamed from `chise_close_decoding_table'.
199 (chise_ds_open_feature_table): Renamed from
200 `chise_open_feature_table' and changed the interface.
201 (chise_ft_close): Renamed from `chise_close_feature_table'.
202 (chise_open_attribute_table): Interface change; allocate a
203 CHISE_Attribute_Table object and return it; require pointer for
204 data source object instead of db_dir.
205 (chise_close_attribute_table): Destroy the specified
206 CHISE_Attribute_Table object.
208 * chise.h (struct CHISE_DS): Change type of location from <char*>
210 (chise_open_data_source): Change interface.
211 (chise_ds_close): Renamed from `chise_close_data_source'.
212 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
214 (chise_ds_open_decoding_table): Renamed from
215 `chise_open_decoding_table' and changed the interface.
216 (chise_dt_close): Renamed from `chise_close_decoding_table'.
217 (chise_ds_open_feature_table): Renamed from
218 `chise_open_feature_table' and changed the interface.
219 (chise_ft_close): Renamed from `chise_close_feature_table'.
220 (chise_open_attribute_table): Change interface.
222 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
224 * configure.in: Update version to 0.2.0.
226 * Makefile.in (ABI_VERSION): New variable.
227 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
229 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
231 * sample.c (main): Use <CHISE_Decoding_Table> instead of
232 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
233 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
234 `ft_ideographic_structure' and `ft_ascii'.
236 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
237 instead of <CHISE_Decoding_Table**> as the type of the first
239 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
240 <CHISE_Feature_Table**> as the type of the first argument.
241 (chise_ft_iterate): Modify for the structure
242 `CHISE_Feature_Table'.
243 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
244 of <CHISE_Attribute_Table **> as the type of the first argument;
245 modify for the structure <CHISE_Feature_Table>.
246 (chise_close_attribute_table): Modify for the structure
247 <CHISE_Feature_Table>.
248 (chise_get_attribute_table): Likewise.
249 (chise_put_attribute_table): Likewise.
251 * chise.h (CHISE_Attribute_Table): Define as a structure.
252 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
253 of <CHISE_Decoding_Table**> as the type of the first argument.
254 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
255 <CHISE_Feature_Table**> as the type of the first argument.
256 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
257 of <CHISE_Attribute_Table**> as the type of the first argument.
259 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
261 * chise.h (chise_dt_put_char): New prototype.
263 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
265 * chise.c (chise_dt_put_char): New function.
266 (chise_put_attribute_table): New function.
268 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
270 * chise.c (chise_format_char_id): New function.
271 (chise_ft_get_value): Use `chise_format_char_id'.
273 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
275 * chise.h: Define `_CHISE_H'.
277 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * sample.c (test_map_func): New function.
280 (main): Add sample of `chise_ft_iterate'.
282 * chise.c (chise_char_id_parse_c_string): New function.
283 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
284 (chise_ft_iterate): New function.
286 * chise.h (chise_ft_iterate): New function.
288 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
290 * chise.c (chise_ft_get_value): Use escape forms for some special
293 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
295 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
297 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
298 argument `feature' for file name.
300 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
302 * chise.c, chise.h: Move strnlen related code from chise.h to
305 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
307 * Makefile.in (CFLAGS): Refer @CFLAGS@.
309 * configure.in: Add check code for Fink.
311 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
313 * Makefile.in (LIBTOOL): New variable.
314 (distclean): New target.
316 * configure.in: Check about libtool.
318 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
320 * Makefile.in: Use libtool.
322 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
324 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
326 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
327 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
332 * configure: New file.
334 * Makefile.in, config.h.in, configure.in: New files.
336 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
338 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
339 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
340 instead of `strlen'; fix problem about control characters.
342 * chise.h (chise_value_data): New inline function.
344 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
346 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
348 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
350 * sample.c: Add comments.
352 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
354 * sample.c: Use <chise.h>.
355 (db_dir): Use "/usr/local/lib/chise/char-db".
357 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
359 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
361 * Makefile, chise.c, chise.h, sample.c: New files.