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