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