1 2003-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * chise.c: Include "chise-name.h".
4 (CHISE_DS): Add new members `feature_names' and `ccs_names'.
5 (chise_open_data_source): Setup ds->feature_names and
7 (chise_ds_close): Release ds->feature_names and ds->ccs_names.
8 (chise_ds_get_feature): New function.
9 (chise_ds_get_ccs): New function.
10 (chise_char_load_feature_value): Renamed from
11 `chise_ft_get_value'; modify interface.
12 (chise_char_gets_feature_value): New function.
13 (chise_char_feature_value_iterate): Renamed from
14 `chise_ft_iterate'; modify interface.
15 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
16 (chise_ds_open_ccs_table): Renamed from
17 `chise_ds_open_decoding_table'.
18 (chise_ccst_close): Renamed from `chise_dt_close'.
19 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
20 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
22 * chise.h (CHISE_Feature): New type.
23 (chise_ds_get_feature): New prototype.
24 (chise_char_load_feature_value): Renamed from
25 `chise_ft_get_value'; modify interface.
26 (chise_char_gets_feature_value): New prototype.
27 (chise_char_feature_value_iterate): Renamed from
28 `chise_ft_iterate'; modify interface.
29 (chise_char_feature_str_iterate): New prototype.
30 (CHISE_CCS_Table): Renamed from `CHISE_Decoding_Table'.
31 (CHISE_CCS): New type.
32 (chise_ds_get_ccs): New prototype.
33 (chise_ccs_decode): Renamed from `chise_dt_get_char'.
34 (chise_ds_open_ccs_table): Renamed from
35 `chise_ds_open_decoding_table'.
36 (chise_ccst_close): Renamed from `chise_dt_close'.
37 (chise_ccst_put_char): Renamed from `chise_dt_put_char'.
38 (chise_decode_char): Deleted.
39 (chise_get_feature): Deleted.
41 2003-08-20 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
43 * name.c: Include "chise-name.h".
44 (chise_name_table_put): Use <const unsigned char*> instead of
45 <unsigned char*> for key.
46 (chise_name_table_get): Likewise.
48 * chise-name.h (chise_name_table_put): Use <const unsigned char*>
49 instead of <unsigned char*> for key.
50 (chise_name_table_get): Likewise.
52 2003-08-16 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
54 * Makefile.in (HEADERS): New variable.
56 (libchise.la): Refer $(OBJS); add --mode=link for libtool.
57 (chise.lo): Depends on config.h.
58 (name.lo): New target.
59 (install.h): Refer $(HEADERS).
61 2003-08-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
63 * chise-name.h, name.c: New files.
65 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
67 * chise.c (CHISE_Attribute_Table): Use <DB> instead of <struct
68 CHISE_Attribute_Table>.
69 (chise_put_attribute_table): New prototype.
70 (struct CHISE_Decoding_Table): Use <CHISE_Attribute_Table*>
71 instead of <DB*> as the type of member `db'.
72 (chise_ds_open_decoding_table): New implementation.
73 (chise_dt_close): Likewise.
74 (chise_dt_get_char): Modify for new implementation of <struct
75 CHISE_Decoding_Table>.
76 (chise_dt_put_char): Likewise.
77 (struct CHISE_Feature_Table): Use <CHISE_Attribute_Table*> instead
78 of <DB*> as the type of member `db'.
79 (chise_ds_open_feature_table): New implementation.
80 (chise_ft_close): Likewise.
81 (chise_ft_get_value): Modify for new implementation of <struct
83 (chise_open_attribute_table): Use db_dir instead of ds as the
84 first argument; modify for new implementation of
85 <CHISE_Attribute_Table>.
86 (chise_close_attribute_table): Modify for new implementation of
87 <CHISE_Attribute_Table>.
88 (chise_get_attribute_table): Likewise.
89 (chise_put_attribute_table): Likewise.
91 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
93 * chise.c (CHISE_Attribute_Table): Moved from chise.h.
94 (struct CHISE_Decoding_Table): New structure.
95 (chise_ds_open_decoding_table): Cast the return value to
96 <CHISE_Decoding_Table*>.
97 (chise_dt_close): Cast back to <CHISE_Attribute_Table*>.
98 (chise_dt_get_char): Likewise.
99 (struct CHISE_Feature_Table): New structure.
100 (chise_ds_open_feature_table): Cast the return value to
101 <CHISE_Feature_Table*>.
102 (chise_ft_close): Cast back to <CHISE_Attribute_Table*>.
103 (chise_ft_get_value): Likewise.
105 * chise.h (CHISE_Attribute_Table): Deleted.
106 (CHISE_Decoding_Table): Use <struct CHISE_Decoding_Table> instead
107 of <CHISE_Attribute_Table>.
108 (CHISE_Feature_Table): Use <struct CHISE_Feature_Table> instead of
109 <CHISE_Attribute_Table>.
111 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
113 * chise.c (chise_open_attribute_table): New prototype.
114 (chise_close_attribute_table): New prototype.
115 (chise_get_attribute_table): New prototype.
117 * chise.h (chise_open_attribute_table): Deleted.
118 (chise_close_attribute_table): Deleted.
119 (chise_get_attribute_table): Deleted.
121 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
123 * chise.c (struct CHISE_DS): Definition of members are moved from
126 * chise.h (struct CHISE_DS): Omit definition of members.
128 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
130 * sample.c (main): Modify for new API.
132 * chise.c (chise_open_data_source): Interface change; allocate a
133 CHISE_DS object and return it.
134 (chise_ds_close): Renamed from `chise_close_data_source'; destroy
135 the specified CHISE_DS object.
136 (chise_ds_open_decoding_table): Renamed from
137 `chise_open_decoding_table' and changed the interface.
138 (chise_dt_close): Renamed from `chise_close_decoding_table'.
139 (chise_ds_open_feature_table): Renamed from
140 `chise_open_feature_table' and changed the interface.
141 (chise_ft_close): Renamed from `chise_close_feature_table'.
142 (chise_open_attribute_table): Interface change; allocate a
143 CHISE_Attribute_Table object and return it; require pointer for
144 data source object instead of db_dir.
145 (chise_close_attribute_table): Destroy the specified
146 CHISE_Attribute_Table object.
148 * chise.h (struct CHISE_DS): Change type of location from <char*>
150 (chise_open_data_source): Change interface.
151 (chise_ds_close): Renamed from `chise_close_data_source'.
152 (struct CHISE_Attribute_Table): Add new member `ds'; rename `dbp'
154 (chise_ds_open_decoding_table): Renamed from
155 `chise_open_decoding_table' and changed the interface.
156 (chise_dt_close): Renamed from `chise_close_decoding_table'.
157 (chise_ds_open_feature_table): Renamed from
158 `chise_open_feature_table' and changed the interface.
159 (chise_ft_close): Renamed from `chise_close_feature_table'.
160 (chise_open_attribute_table): Change interface.
162 2003-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
164 * configure.in: Update version to 0.2.0.
166 * Makefile.in (ABI_VERSION): New variable.
167 (libchise.la): Specify $(ABI_VERSION) as -version-info of libtool.
169 2003-08-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
171 * sample.c (main): Use <CHISE_Decoding_Table> instead of
172 <CHISE_Decoding_Table*> to define `dt_daikanwa'; use
173 <CHISE_Feature_Table> instead of <CHISE_Feature_Table*> to define
174 `ft_ideographic_structure' and `ft_ascii'.
176 * chise.c (chise_open_decoding_table): Use <CHISE_Decoding_Table*>
177 instead of <CHISE_Decoding_Table**> as the type of the first
179 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
180 <CHISE_Feature_Table**> as the type of the first argument.
181 (chise_ft_iterate): Modify for the structure
182 `CHISE_Feature_Table'.
183 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
184 of <CHISE_Attribute_Table **> as the type of the first argument;
185 modify for the structure <CHISE_Feature_Table>.
186 (chise_close_attribute_table): Modify for the structure
187 <CHISE_Feature_Table>.
188 (chise_get_attribute_table): Likewise.
189 (chise_put_attribute_table): Likewise.
191 * chise.h (CHISE_Attribute_Table): Define as a structure.
192 (chise_open_decoding_table): Use <CHISE_Decoding_Table*> instead
193 of <CHISE_Decoding_Table**> as the type of the first argument.
194 (chise_open_feature_table): Use <CHISE_Feature_Table*> instead of
195 <CHISE_Feature_Table**> as the type of the first argument.
196 (chise_open_attribute_table): Use <CHISE_Attribute_Table*> instead
197 of <CHISE_Attribute_Table**> as the type of the first argument.
199 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
201 * chise.h (chise_dt_put_char): New prototype.
203 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
205 * chise.c (chise_dt_put_char): New function.
206 (chise_put_attribute_table): New function.
208 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
210 * chise.c (chise_format_char_id): New function.
211 (chise_ft_get_value): Use `chise_format_char_id'.
213 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
215 * chise.h: Define `_CHISE_H'.
217 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
219 * sample.c (test_map_func): New function.
220 (main): Add sample of `chise_ft_iterate'.
222 * chise.c (chise_char_id_parse_c_string): New function.
223 (chise_dt_get_char): Use `chise_char_id_parse_c_string'.
224 (chise_ft_iterate): New function.
226 * chise.h (chise_ft_iterate): New function.
228 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
230 * chise.c (chise_ft_get_value): Use escape forms for some special
233 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
235 * sample.c (main): Rename "ideograph-daikanwa" to "=daikanwa".
237 * chise.c (chise_open_attribute_table): Encode '/' and '%' in
238 argument `feature' for file name.
240 2003-07-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
242 * chise.c, chise.h: Move strnlen related code from chise.h to
245 2003-07-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
247 * Makefile.in (CFLAGS): Refer @CFLAGS@.
249 * configure.in: Add check code for Fink.
251 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
253 * Makefile.in (LIBTOOL): New variable.
254 (distclean): New target.
256 * configure.in: Check about libtool.
258 2003-07-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
260 * Makefile.in: Use libtool.
262 2003-07-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * chise.c: Include "config.h" when HAVE_CONFIG_H is defined.
266 * chise.h (strnlen): New inline function when HAVE_STRNLEN is not
267 defined [based on Izumi MIYAZAKI <imiyazaki@bun.kyoto-u.ac.jp>'s
272 * configure: New file.
274 * Makefile.in, config.h.in, configure.in: New files.
276 2003-03-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
278 * chise.c (chise_dt_get_char): Use `chise_value_data' instead of
279 `chise_value_to_c_string'; use `strnlen' and `chise_value_size'
280 instead of `strlen'; fix problem about control characters.
282 * chise.h (chise_value_data): New inline function.
284 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
286 * chise.c (chise_dt_get_char): Fix problem about `?\CHAR'.
288 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
290 * sample.c: Add comments.
292 2003-03-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
294 * sample.c: Use <chise.h>.
295 (db_dir): Use "/usr/local/lib/chise/char-db".
297 * Makefile: Install chise.h; setup /usr/local/lib/chise/char-db/.
299 2003-03-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
301 * Makefile, chise.c, chise.h, sample.c: New files.