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