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