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