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