update.
[chise/est.git] / ChangeLog
1 2010-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * cwiki-common.el:
4         - Set `file-name-coding-system' to 'utf-8-mcs-er.
5         - Add settings to assign genres of Ruimoku.
6         (www-get-feature-value): Modify for non-character genres.
7         (www-uri-decode-object): Use `www-uri-decode-feature-name' for
8         objects of `feature' genre.
9
10         * cwiki-view.el (www-display-object-desc): Fix problem when
11         `object' is not a character.
12         (www-batch-view): Support general genres.
13
14 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * cwiki-common.el (www-get-genre): New function.
17         (www-get-feature-value): Renamed from `www-char-feature'.
18         (www-uri-decode-object): Renamed from `www-uri-decode-char'; add
19         new argument `genre'.
20
21         * cwiki-view.el (www-display-object-desc): Renamed from
22         `www-display-char-desc'; add new argument `genre'.
23
24         * cwiki-add.el (www-add-display-char-desc): Use
25         `www-uri-decode-object' instead of `www-uri-decode-char'.
26
27         * cwiki-set.el (www-parse-string-as-space-separated-char-list):
28         Use `www-uri-decode-object' instead of `www-uri-decode-char'.
29         (www-parse-string-as-space-separated-ids): Likewise.
30         (www-set-display-char-desc): Likewise; use `www-get-feature-value'
31         instead of `www-char-feature'.
32
33         * cwiki-edit.el (www-edit-display-feature-input-box): Use
34         `www-get-feature-value' instead of `www-char-feature'.
35         (www-edit-display-char-desc): Use `www-uri-decode-object' instead
36         of `www-uri-decode-char'.
37
38 2010-09-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * cwiki-add.el: New file.
41
42 2010-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * cwiki-view.el (www-display-char-desc): Use
45         `chise-wiki-displayed-features' instead of `displayed-features'.
46
47         * cwiki-common.el (chise-wiki-displayed-features): New variable.
48         (char-feature-name-at-domain): Fix problem when `domain' is nil.
49         (char-feature-name-domain): New function.
50         (www-uri-make-feature-name-url): New function.
51         (www-format-props-to-string): Fix problem when :len's value is
52         string.
53         (www-format-eval-unit):
54         - When :feature is specified, prefer FEATURE@DOMAIN to FEATURE.
55         - When :feature is specified in value related format functions,
56           add the displayed feature-name to
57           `chise-wiki-displayed-features'.
58         - Support `name-url' and `domain-name'.
59
60 2010-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * cwiki-view.el (www-display-feature-desc): Fix problem to display
63         non-ASCII characters in property `format'.
64
65 2010-04-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * cwiki-view.el (www-display-char-desc): Use `www-feature-format'.
68         (www-display-feature-desc): Ditto.
69
70         * cwiki-common.el (www-feature-format): New function.
71         (www-format-eval-unit): Support `:feature' property for `value'
72         related functions and `name' function.
73
74 2010-04-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * cwiki-common.el (www-feature-value-format): Search ancestors'
77         property if own property is not found.
78         (char-feature-name-parent): New function.
79         (www-format-feature-name*): Search ancestors' property if own
80         property is not found.
81
82 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
83
84         * cwiki-edit.el (www-edit-display-feature-desc): Display and
85         support editing of property `format'.
86
87         * cwiki-common.el (find-previous-defined-code-point): Fix problem
88         with `=ucs'.
89
90         * cwiki-view.el (www-display-feature-desc): Add edit button for
91         `format'.
92
93 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * cwiki-common.el (www-feature-value-format): Add
96         `(prev-char) (next-char)' into default format of CCS feature.
97         (get-previous-code-point): New function.
98         (get-next-code-point): New function.
99         (find-previous-defined-code-point): New function.
100         (find-next-defined-code-point): New function.
101         (www-format-eval-unit): Support `prev-char' and `next-char'.
102
103 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * cwiki-view.el (www-display-char-desc): Don't display "add
106         feature" button when running with simple mode.
107
108 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * cwiki-set.el (www-set-display-feature-desc): Refer
111         `chise-wiki-view-url'.
112
113 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * cwiki-view.el (www-display-feature-desc): Add new optional
116         argument `simple'; display "Edit" and "New Account" buttons when
117         running with simple mode; display "Simple" button when running
118         with edit mode.
119         (www-batch-view): Modify for `www-display-feature-desc' to support
120         mode.
121
122 2010-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * cwiki-view.el (www-display-char-desc): Use <div> instead of <p>
125         to display feature in top-level.
126
127 2010-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * cwiki-set.el (chise-wiki-view-url): Use "view.cgi" instead of
130         "../view.cgi".
131
132         * cwiki-edit.el (chise-wiki-view-url): Use "view.cgi" instead of
133         "../view.cgi".
134
135         * cwiki-view.el (chise-wiki-edit-url): Use "edit.cgi" instead of
136         "edit/edit.cgi".
137         (chise-wiki-add-url): Use "add.cgi" instead of "edit/add.cgi".
138         (www-display-char-desc): Add new optional argument `simple';
139         display "Edit" and "New Account" buttons when running with simple
140         mode; display "Simple" button when running with edit mode.
141         (www-batch-view): Modify to support mode.
142
143         * cwiki-common.el (chise-wiki-edit-url): Changed to "edit.cgi".
144         (www-format-value): Add new optional argument `without-edit';
145         modify for `www-format-apply-value'.
146         (www-format-apply-value): Add new optional argument
147         `without-edit'; modify for `www-format-eval-list'.
148         (www-format-eval-feature-value): Add new optional arguments
149         `without-tags' and `without-edit'; modify for
150         `www-format-apply-value' and `www-format-eval-list'.
151         (www-format-eval-unit):
152         - Add new optional arguments `without-tags' and `without-edit';
153           modify for `www-format-eval-feature-value',
154           `www-format-apply-value' and `www-format-eval-list'.
155         - specify 'without-tags and 'without-edit for
156           `www-format-eval-list' in href part of `link'.
157         (www-format-eval-list): Add new optional arguments `without-tags'
158         and `without-edit'; modify for `www-format-eval-unit'.
159
160 2010-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * cwiki-common.el (www-format-eval-unit): Treat `string' as a
163         format specifier of feature-value.
164
165 2010-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * cwiki-common.el (www-format-props-to-string): When `:len' is
168         specified, treat `:zero-padding' is specified.
169
170 2010-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * cwiki-common.el (www-uri-encode-char): Use `=ruimoku-v6'.
173         (www-format-encode-string): Display `=ruimoku-v6' characters.
174
175         * cwiki-glyph.el (www-glyph-generate-png): Support `=ruimoku-v6'.
176         (www-glyph-display-png): Support RUI6-hhhh;
177
178 2010-04-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * cwiki-common.el (www-uri-encode-char): Accept `=>zinbun-oracle'.
181         (www-format-encode-string):
182         - Display &A-ZOB-dddd;.
183         - Support `ideographic-combination'(合文) and
184           `ideographic-structure'.
185
186 2010-04-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * cwiki-view.el (www-batch-view): Accept
189         "?char=&ENTITY-REFERENCE;".
190
191 2010-03-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * cwiki-view.el (www-display-char-desc): Use
194         `char-feature-name-sans-versions' to avoid domain `$rev=latest'
195         when sort feature-names.
196
197 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * cwiki-common.el (www-format-value-as-domain-list): New function.
200         (www-format-apply-value): Support `space-separated-domain-list'.
201         (char-GlyphWiki-id): Try to avoid uHHHH-{u|us}.
202
203 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * cwiki-common.el (coded-charset-GlyphWiki-id-alist): Add setting
206         for `=ucs@jis', `=jis-x0208@1978/-4pr' and `=jis-x0208@1978'.
207         (char-GlyphWiki-id): Use `char-feature' instead of `encode-char'.
208
209 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * cwiki-view.el (www-display-char-desc): Add input form for CHISE
212         IDS-Find.
213
214 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * cwiki-view.el (www-display-char-desc): Try to display glyph of
217         GlyphWiki and link it.
218
219         * cwiki-common.el (coded-charset-GlyphWiki-id-alist): New
220         variable.
221         (char-GlyphWiki-id): New function.
222
223 2010-03-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * cwiki-set.el (www-parse-string-as-kangxi-radical): New function.
226         (www-feature-parse-string): Support format `kangxi-radical'.
227
228         * cwiki-common.el (www-format-value-as-kangxi-radical): New
229         function.
230         (www-format-apply-value): Support format `kangxi-radical'.
231         (www-format-eval-unit): Support `kangxi-radical' as a value
232         format.
233
234 2010-03-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * cwiki-common.el (www-format-value-default): New function.
237         (www-format-encode-string):
238         - Prefer `=gt' to `=cns11643-{1..7}'.
239         - Display &(G-)GT-Kddddd; entity references.
240         (www-format-apply-value):
241         - New implementation for format `string'.
242         - Use `www-format-value-default' for default format.
243
244         * cwiki-glyph.el (www-glyph-generate-png): Support `=gt-k'.
245         (www-glyph-display-png): Support GT-Kddddd.
246
247         * cwiki-set.el (www-parse-string-default): New implementation.
248         (www-set-display-feature-desc):
249         - New argument `format'.
250         - Display `value-format'.
251         (www-batch-set): Modify for the API change to set feature's
252         property.
253
254         * cwiki-view.el (www-display-char-desc): Display parents in the
255         header.
256         (www-display-feature-desc): Use `www-format-value' with default
257         format instead of `www-xml-format-list' and
258         `www-format-encode-string'.
259
260         * cwiki-edit.el (www-edit-display-feature-input-box): Add new
261         optional argument `value'.
262         (www-edit-display-feature-desc):
263         - Use `www-edit-display-feature-input-box' instead of
264           `www-edit-display-input-box'.
265         - Display `value-format'.
266
267 2010-03-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * cwiki-view.el (www-display-feature-desc): Display [edit] button
270         of `value-format'.
271
272 2010-03-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * cwiki-common.el (www-xml-format-unit): Escape `&'.
275
276 2010-03-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * cwiki-common.el (www-format-encode-string): Display
279         &U-hhhhhhhh;.
280         (www-xml-format-props): Encode property value.
281         (www-xml-format-unit): Encode string.
282
283         * cwiki-edit.el (www-edit-display-feature-input-box): Escape <">.
284
285         * cwiki-view.el (www-display-feature-desc): Modify design of
286         [edit] button.
287
288 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * cwiki-set.el (www-xml-to-stext-unit): Support
291         <link><ref>...</ref>...</link>.
292
293         * cwiki-common.el (www-xml-format-unit): Support tag style `ref'
294         in `link'.
295
296         * cwiki-view.el (www-display-feature-desc): Display `value-format'
297         and `format'.
298
299 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * cwiki-common.el (www-format-feature-name-as-metadata): New
302         function.
303         (www-format-feature-name*): Use
304         `www-format-feature-name-as-metadata' for metadata features.
305
306 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * cwiki-set.el (www-xml-parse-string): New function.
309         (www-xml-to-stext-props): New function.
310         (www-xml-to-stext-unit): New function.
311         (www-xml-to-stext-list): New function.
312         (www-stext-parse-xml-string): New function.
313         (www-parse-string-as-wiki-text): Use `www-stext-parse-xml-string'.
314
315         * cwiki-edit.el (www-edit-display-char-feature-default): Abolish.
316         (www-edit-display-char-feature-as-ucs): Abolish.
317         (www-edit-display-input-box): Add the first argument `object';
318         modify for `www-format-apply-value'.
319         (www-edit-display-feature-input-box): Modify input boxes; modify
320         for `www-format-value'.
321         (www-edit-display-feature-desc): Modify for
322         `www-edit-display-input-box'.
323
324         * cwiki-common.el (www-format-value): Add the first argument
325         `object' and the second argument `feature-name'; change argument
326         `variable' to be optional; modify for `www-format-apply-value'.
327         (www-format-apply-value): Add the first argument `object' and the
328         second argument `feature-name'; support format `wiki-text'.
329         (www-format-eval-feature-value): Modify for
330         `www-format-apply-value'.
331         (www-format-eval-unit): Likewise.
332         (www-xml-format-props): New function.
333         (www-xml-format-unit): New function.
334         (www-xml-format-list): New function.
335
336 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * cwiki-set.el (www-set-display-char-desc):
339         - Setup property `additional-features' of feature `$object' when
340           feature value is stored.
341         - Mount additional-features.
342
343         * cwiki-view.el (www-char-display-feature-default): Abolished.
344         (www-char-display-feature-as-ucs): Abolished.
345         (www-display-char-desc): Mount additional-features.
346
347         * cwiki-common.el (www-feature-type): Support `*node' and
348         `*sources'.
349         (www-feature-value-format): Return `wiki-text' for type `stext'.
350         (www-format-apply-value): Don't set `default' even if a format is
351         not supported in this function.
352
353 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * cwiki-set.el (www-parse-string-as-wiki-text): New function
356         [currently just a stub].
357         (www-feature-parse-string): Use `www-parse-string-as-wiki-text'.
358         (www-set-display-char-desc): Use
359         `char-feature-name-sans-versions'.
360
361         * cwiki-edit.el (www-edit-display-feature-input-box): New
362         function.
363         (www-edit-display-char-desc): Use
364         `www-edit-display-feature-input-box'.
365
366         * cwiki-view.el (www-display-char-desc): Use
367         `char-feature-name-sans-versions'.
368
369         * cwiki-common.el (char-feature-name-sans-versions): New function.
370
371 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * cwiki-set.el (www-set-display-char-desc): Store new value into
374         FEATURE@$rev=latest; don't display `$rev=latest' domain features.
375
376         * cwiki-edit.el (www-edit-display-char-feature-default): Use
377         `www-char-feature' instead of `char-feature'.
378         (www-edit-display-char-feature-as-ucs): Likewise.
379         (www-edit-display-char-desc): Likewise; replace value of char-spec
380         with value of `www-char-feature'.
381
382         * cwiki-view.el (www-char-display-feature-default): Use
383         `www-char-feature' instead of `char-feature'.
384         (www-char-display-feature-as-ucs): Likewise.
385         (www-display-char-desc): Ignore `$rev=latest' domain features.
386
387         * cwiki-common.el (char-feature-name-at-domain): New function.
388         (www-char-feature): New function.
389         (www-format-encode-string): Use `www-char-feature' instead of
390         `char-feature'.
391         (www-format-eval-feature-value): Likewise.
392         (www-format-eval-unit): Likewise.
393
394 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * cwiki-set.el (www-parse-string-default): New function.
397         (www-feature-parse-string):
398         - Support new format `string'.
399         - Use `www-parse-string-default' for `default'.
400
401 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * cwiki-common.el (chise-wiki-glyph-cgi-url): New variable.
404         (www-uri-encode-char): Support `=>>gt'.
405         (www-format-encode-string):
406         - Use GT, Big5 and Big5-CDP fonts.
407         - Use http://www.unicode.org/cgi-bin/refglyph?24-hhhh to display
408           `=ucs@unicode' glyphs.
409         - Display &MCS-hhhhhhhh; with using child's glyph.
410
411         * cwiki-glyph.el: New file.
412
413 2010-03-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * cwiki-common.el (chise-wiki-bitmap-glyphs-url): Renamed from
416         `chise-wiki-glyphs-url'.
417         (www-format-encode-string):
418         - Use `chise-wiki-bitmap-glyphs-url' instead of
419           `chise-wiki-glyphs-url'.
420         - Display &JC3-hhhh; and &ZOB-dddd;.
421
422 2010-03-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * cwiki-edit.el (www-edit-display-feature-desc): Use
425         `www-format-feature-name*' instead of `www-format-feature-name'.
426
427         * cwiki-common.el (www-uri-decode-char):
428         - Accept `:' again.
429         - Prefer `=>jis-x0208' and `=>jis-x0213-1' to `=big5' and
430           `=big5-cdp'.
431         - Fix problem when no CCSes are found.
432         (www-format-feature-name*): New function.
433         (www-format-feature-name): Use `www-format-feature-name*'.
434
435 2010-03-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
436
437         * cwiki-set.el (www-parse-string-as-space-separated-char-list):
438         Expect `string' to be encoded as URI.
439         (www-parse-string-as-space-separated-ids): Likewise.
440         (www-feature-parse-string): Likewise.
441         (www-set-display-char-desc): Expect `uri-char' to be encoded as
442         URI.
443         (www-set-display-feature-desc): Fix problem when `name@lang' is
444         not existed.
445         (www-batch-set): Don't use `decode-uri-string' for value of `char'
446         and feature-value.
447
448         * cwiki-edit.el (www-edit-display-char-desc): Expect `uri-char' to
449         be encoded as URI.
450         (www-batch-edit): Don't use `decode-uri-string' for value of
451         `char'.
452
453         * cwiki-view.el (www-display-char-desc): Expect `uri-char' to be
454         encoded as URI; encode `uri-char' if it is a non-encoded
455         character.
456         (www-batch-view): Don't use `decode-uri-string' for value of
457         `char'.
458
459         * cwiki-common.el (www-uri-decode-char): Expect char-rep to be
460         encoded as URI.
461         (www-uri-encode-char): Encode UCS characters as %XX encoding.
462         (www-format-feature-name-as-CCS): Insert space between
463         prefix (..., ===>, ==>, =>, =>>, =>>>, ..., =) and main-name.
464         (www-html-display-text): Don't escape "&" except "&GT-".
465
466 2010-03-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * cwiki-set.el (www-parse-string-as-space-separated-ids): New
469         function.
470         (www-parse-string-as-ku-ten): New function.
471         (www-feature-parse-string): Support `space-separated-ids' and
472         `ku-ten'.
473
474 2010-03-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * cwiki-common.el (www-feature-value-format): Return
477         'space-separated-ids for `structure' type features.
478         (www-format-value-as-ids): New function.
479         (www-format-apply-value): Use `www-format-value-as-ids' for format
480         `space-separated-ids'.
481
482 2010-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * cwiki-common.el, cwiki-edit.el, cwiki-set.el, cwiki-view.el: New
485         files.