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