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