* lisp/international/titdic-cnv.el (tsang-quick-converter): Simplify

Merge branches which only differed in the `charset` property of the
strings they intended to return, since that info gets lost later
on anyway.
This commit is contained in:
Stefan Monnier 2021-01-27 12:35:19 -05:00
parent 89327ce68d
commit 2d8daac122

View file

@ -375,7 +375,7 @@ SPC, 6, 3, 4, or 7 specifying a tone (SPC:陰平, 6:陽平, 3:上聲, 4:去聲,
;; Arg DOCSTRING
(let ((doc (concat tit-prompt "\n"))
(comments (if tit-comments
(mapconcat 'identity (nreverse tit-comments) "\n")))
(mapconcat #'identity (nreverse tit-comments) "\n")))
(doc-ext (nth 2 (assoc package quail-cxterm-package-ext-info))))
(if comments
(setq doc (concat doc "\n" comments "\n")))
@ -737,12 +737,10 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
;; method is for inputting CNS characters.
(defun tsang-quick-converter (dicbuf tsang-p big5-p)
(let ((fulltitle (if tsang-p (if big5-p "倉頡" "倉頡")
(if big5-p "簡易" "簡易")))
(let ((fulltitle (if tsang-p "倉頡" "簡易"))
dic)
(goto-char (point-max))
(if big5-p
(insert (format "\"中文輸入【%s】BIG5
(insert (format "\"中文輸入【%s】%s
漢語%s輸入鍵盤
@ -753,19 +751,7 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
[Z ] [X ] [C ] [V ] [B ] [N ] [M ]
\\\\<quail-translation-docstring>\"\n"
fulltitle fulltitle))
(insert (format "\"中文輸入【%s】CNS
漢語%s輸入鍵盤
[Q ] [W ] [E ] [R ] [T 廿] [Y ] [U ] [I ] [O ] [P ]
[A ] [S ] [D ] [F ] [G ] [H ] [J ] [L ]
[Z ] [X ] [C ] [V ] [B ] [N ] [M ]
\\\\<quail-translation-docstring>\"\n"
fulltitle fulltitle)))
fulltitle (if big5-p "BIG5" "CNS") fulltitle))
(insert " '((\".\" . quail-next-translation-block)
(\",\" . quail-prev-translation-block))
nil nil)\n\n")
@ -953,7 +939,7 @@ method `chinese-tonepy' with which you must specify tones by digits
(= (length (aref trans i)) 1))
(setq i (1+ i)))
(if (= i len)
(setq trans (mapconcat 'identity trans "")))))
(setq trans (mapconcat #'identity trans "")))))
(setq dic (cons (cons key trans) dic)))
table)))
(setq dic (sort dic (lambda (x y) (string< (car x) (car y)))))