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