value)
(www-format-value-as-S-exp value)))
+(defun www-format-value-as-kangxi-radical (value)
+ (if (and (integerp value)
+ (<= 0 value)
+ (<= value 214))
+ (www-format-encode-string
+ (format "%c" (ideographic-radical value)))
+ (www-format-value-as-S-exp value)))
+
(defun www-format-value (object feature-name
&optional value format without-tags)
(unless value
without-tags))
((eq format 'ku-ten)
(www-format-value-as-kuten value))
+ ((eq format 'kangxi-radical)
+ (www-format-value-as-kangxi-radical value))
((eq format 'space-separated-char-list)
(www-format-value-as-char-list value without-tags))
((eq format 'space-separated-ids)
((null exp) "")
((consp exp)
(cond
- ((memq (car exp) '(value decimal hex HEX ku-ten S-exp default))
+ ((memq (car exp) '(value decimal hex HEX ku-ten kangxi-radical
+ S-exp default))
(if (eq (car exp) 'value)
(www-format-eval-feature-value char feature-name
(plist-get (nth 1 exp) :format)