(CHISE_DS_open): Renamed from `chise_open_data_source'.
[chise/libchise.git] / ChangeLog
1 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chise.h (chise_ds_open_feature_table): Abolished.
4         (chise_ft_close): Likewise.
5
6 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * sample.c: Update for the latest API.
9
10         * chise.c (struct CHISE_DS): Add new member `subtype' and
11         `modemask'.
12         (chise_open_data_source): Add new arguments `subtype' and
13         `modemask'.
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
24         `feature->db'.
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';
32         setup `ccs->db'.
33
34         * chise.h (chise_open_data_source): Add new arguments `subtype'
35         and `modemask'.
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',
43         `modemask'.
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.
48
49 2003-08-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
50
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'.
60
61 2003-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
62
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
66         ds->ccs_names.
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'.
81
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.
100
101 2003-08-20  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
102
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.
107
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.
111
112 2003-08-16  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
113
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).
120
121 2003-08-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
122
123         * chise-name.h, name.c: New files.
124
125 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
126
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.
150
151 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
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.
164
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>.
170
171 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
172
173         * chise.c (chise_open_attribute_table): New prototype.
174         (chise_close_attribute_table): New prototype.
175         (chise_get_attribute_table): New prototype.
176
177         * chise.h (chise_open_attribute_table): Deleted.
178         (chise_close_attribute_table): Deleted.
179         (chise_get_attribute_table): Deleted.
180
181 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
182
183         * chise.c (struct CHISE_DS): Definition of members are moved from
184         chise.h.
185
186         * chise.h (struct CHISE_DS): Omit definition of members.
187
188 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
189
190         * sample.c (main): Modify for new API.
191
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.
207
208         * chise.h (struct CHISE_DS): Change type of location from <char*>
209         to <unsigned 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'
213         to `db'.
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.
221
222 2003-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
223
224         * configure.in: Update version to 0.2.0.
225
226         * Makefile.in (ABI_VERSION): New variable.
227         (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
228
229 2003-08-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
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'.
235
236         * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
237         instead of <CHISE_Decoding_Table**> as the type of the first
238         argument.
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.
250
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.
258
259 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * chise.h (chise_dt_put_char): New prototype.
262
263 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
264
265         * chise.c (chise_dt_put_char): New function.
266         (chise_put_attribute_table): New function.
267
268 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
269
270         * chise.c (chise_format_char_id): New function.
271         (chise_ft_get_value): Use `chise_format_char_id'.
272
273 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
274
275         * chise.h: Define `_CHISE_H'.
276
277 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * sample.c (test_map_func): New function.
280         (main): Add sample of `chise_ft_iterate'.
281
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.
285
286         * chise.h (chise_ft_iterate): New function.
287
288 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * chise.c (chise_ft_get_value): Use escape forms for some special
291         characters.
292
293 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
296
297         * chise.c (chise_open_attribute_table): Encode '/' and '%' in
298         argument `feature' for file name.
299
300 2003-07-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
301
302         * chise.c, chise.h: Move strnlen related code from chise.h to
303         chise.c.
304
305 2003-07-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
306
307         * Makefile.in (CFLAGS): Refer @CFLAGS@.
308
309         * configure.in: Add check code for Fink.
310
311 2003-07-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * Makefile.in (LIBTOOL): New variable.
314         (distclean): New target.
315
316         * configure.in: Check about libtool.
317
318 2003-07-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * Makefile.in: Use libtool.
321
322 2003-07-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
325
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
328         patch].
329
330         * Makefile: Deleted.
331
332         * configure: New file.
333
334         * Makefile.in, config.h.in, configure.in: New files.
335
336 2003-03-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
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.
341
342         * chise.h (chise_value_data): New inline function.
343
344 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
347
348 2003-03-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * sample.c: Add comments.
351
352 2003-03-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * sample.c: Use <chise.h>.
355         (db_dir): Use "/usr/local/lib/chise/char-db".
356
357         * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
358
359 2003-03-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
360
361         * Makefile, chise.c, chise.h, sample.c: New files.
362