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