1 2003-08-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
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'.
13 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
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
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'.
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.
53 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
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.
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.
64 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
66 * Makefile.in (HEADERS): 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).
73 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
75 * chise-name.h, name.c: New files.
77 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
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
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.
103 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
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.
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>.
123 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
125 * chise.c (chise_open_attribute_table): New prototype.
126 (chise_close_attribute_table): New prototype.
127 (chise_get_attribute_table): New prototype.
129 * chise.h (chise_open_attribute_table): Deleted.
130 (chise_close_attribute_table): Deleted.
131 (chise_get_attribute_table): Deleted.
133 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
135 * chise.c (struct CHISE_DS): Definition of members are moved from
138 * chise.h (struct CHISE_DS): Omit definition of members.
140 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
142 * sample.c (main): Modify for new API.
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.
160 * chise.h (struct CHISE_DS): Change type of location from <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'
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.
174 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
176 * configure.in: Update version to 0.2.0.
178 * Makefile.in (ABI_VERSION): New variable.
179 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
181 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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'.
188 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
189 instead of <CHISE_Decoding_Table**> as the type of the first
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.
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.
211 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
213 * chise.h (chise_dt_put_char): New prototype.
215 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
217 * chise.c (chise_dt_put_char): New function.
218 (chise_put_attribute_table): New function.
220 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
222 * chise.c (chise_format_char_id): New function.
223 (chise_ft_get_value): Use `chise_format_char_id'.
225 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
227 * chise.h: Define `_CHISE_H'.
229 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
231 * sample.c (test_map_func): New function.
232 (main): Add sample of `chise_ft_iterate'.
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.
238 * chise.h (chise_ft_iterate): New function.
240 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
242 * chise.c (chise_ft_get_value): Use escape forms for some special
245 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
247 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
249 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
250 argument `feature' for file name.
252 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
254 * chise.c, chise.h: Move strnlen related code from chise.h to
257 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
259 * Makefile.in (CFLAGS): Refer @CFLAGS@.
261 * configure.in: Add check code for Fink.
263 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
265 * Makefile.in (LIBTOOL): New variable.
266 (distclean): New target.
268 * configure.in: Check about libtool.
270 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
272 * Makefile.in: Use libtool.
274 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
276 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
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
284 * configure: New file.
286 * Makefile.in, config.h.in, configure.in: New files.
288 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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.
294 * chise.h (chise_value_data): New inline function.
296 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
298 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
300 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
302 * sample.c: Add comments.
304 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
306 * sample.c: Use <chise.h>.
307 (db_dir): Use "/usr/local/lib/chise/char-db".
309 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
311 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
313 * Makefile, chise.c, chise.h, sample.c: New files.