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