diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-11-11 00:39:53 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-11-11 00:39:53 +0900 |
commit | 4dd1f56f29fc598a8339a345c2f8945250600602 (patch) | |
tree | af341efedffe027e533b1bcc0dbf270532e48285 /lisp/language | |
parent | 4c49ec7f865bdad1629d2f125f71f4e506b258f2 (diff) | |
parent | 810fa21d26453f898de9747ece7205dfe6de9d08 (diff) | |
download | emacs-4dd1f56f29fc598a8339a345c2f8945250600602.tar.gz emacs-4dd1f56f29fc598a8339a345c2f8945250600602.tar.bz2 emacs-4dd1f56f29fc598a8339a345c2f8945250600602.zip |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'lisp/language')
-rw-r--r-- | lisp/language/burmese.el | 2 | ||||
-rw-r--r-- | lisp/language/cyril-util.el | 2 | ||||
-rw-r--r-- | lisp/language/ethio-util.el | 4 | ||||
-rw-r--r-- | lisp/language/ind-util.el | 12 | ||||
-rw-r--r-- | lisp/language/japan-util.el | 4 | ||||
-rw-r--r-- | lisp/language/japanese.el | 23 | ||||
-rw-r--r-- | lisp/language/khmer.el | 2 | ||||
-rw-r--r-- | lisp/language/korea-util.el | 2 | ||||
-rw-r--r-- | lisp/language/lao.el | 10 | ||||
-rw-r--r-- | lisp/language/misc-lang.el | 20 | ||||
-rw-r--r-- | lisp/language/sinhala.el | 2 | ||||
-rw-r--r-- | lisp/language/thai-word.el | 13 | ||||
-rw-r--r-- | lisp/language/tibet-util.el | 12 | ||||
-rw-r--r-- | lisp/language/tibetan.el | 4 | ||||
-rw-r--r-- | lisp/language/tv-util.el | 12 |
15 files changed, 66 insertions, 58 deletions
diff --git a/lisp/language/burmese.el b/lisp/language/burmese.el index ade3566717b..96ba7752684 100644 --- a/lisp/language/burmese.el +++ b/lisp/language/burmese.el @@ -24,7 +24,7 @@ ;;; Commentary: ;; The murderous generals say to call it "Myanmar". -;; We will call it "Burma". -- rms, Chief GNUisance. +;; We will call it "Burma". -- rms, Chief GNUisance. ;;; Code: diff --git a/lisp/language/cyril-util.el b/lisp/language/cyril-util.el index 04e681d743d..e404288ddca 100644 --- a/lisp/language/cyril-util.el +++ b/lisp/language/cyril-util.el @@ -60,7 +60,7 @@ If the argument is nil, we return the display table to its standard state." (list (let* ((completion-ignore-case t)) (completing-read - "Cyrillic language (default nil): " + (format-prompt "Cyrillic language" "nil") cyrillic-language-alist nil t nil nil nil)))) (or standard-display-table diff --git a/lisp/language/ethio-util.el b/lisp/language/ethio-util.el index dc385b07d3e..2de6602ced1 100644 --- a/lisp/language/ethio-util.el +++ b/lisp/language/ethio-util.el @@ -2098,6 +2098,10 @@ mark." ;; The ethiopic-tex package is not used for keyboard input, therefore ;; not registered with the register-input-method function. +;; Local Variables: +;; checkdoc-symbol-words: ("-->") +;; End: + (provide 'ethio-util) ;;; ethio-util.el ends here diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el index 8d4b2a826e6..6f579f23833 100644 --- a/lisp/language/ind-util.el +++ b/lisp/language/ind-util.el @@ -487,7 +487,7 @@ c trans-c)) (defun indian-make-hash (table trans-table) - "Indian Transliteration Hash for decode/encode" + "Indian Transliteration Hash for decode/encode." (let* ((encode-hash (make-hash-table :test 'equal)) (decode-hash (make-hash-table :test 'equal)) (hashtbls (cons encode-hash decode-hash)) @@ -809,11 +809,11 @@ ;; only Devanagari is supported now. (concat "[" (char-to-string #x0900) "-" (char-to-string #x097f) "]") - "Regexp that matches to conversion") + "Regexp that matches to conversion.") (defun indian-ucs-to-iscii-region (from to) - "Converts the indian UCS characters in the region to ISCII. -Returns new end position." + "Convert the indian UCS characters in the region to ISCII. +Return new end position." (interactive "r") ;; only Devanagari is supported now. (save-excursion @@ -828,8 +828,8 @@ Returns new end position." (point-max)))) (defun indian-iscii-to-ucs-region (from to) - "Converts the ISCII characters in the region to UCS. -Returns new end position." + "Convert the ISCII characters in the region to UCS. +Return new end position." (interactive "r") ;; only Devanagari is supported now. (save-excursion diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el index f3e3590645b..cad34e99046 100644 --- a/lisp/language/japan-util.el +++ b/lisp/language/japan-util.el @@ -108,7 +108,7 @@ HANKAKU-KATAKANA belongs to `japanese-jisx0201-kana'.") ;; cp932-2-byte (#x2015 ?-) (#xFF5E ?~) (#xFF0D ?-)) "Japanese JISX0208 and CP932 symbol character table. - Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL +Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL belongs to `japanese-jisx0208' or `cp932', ASCII belongs to `ascii', and HANKAKU belongs to `japanese-jisx0201-kana'.") @@ -145,7 +145,7 @@ and HANKAKU belongs to `japanese-jisx0201-kana'.") (?p . ?p) (?q . ?q) (?r . ?r) (?s . ?s) (?t . ?t) (?u . ?u) (?v . ?v) (?w . ?w) (?x . ?x) (?y . ?y) (?z . ?z)) "Japanese JISX0208 alpha numeric character table. -Each element is of the form (ALPHA-NUMERIC . ASCII), where ALPHA-NUMERIC +Each element is of the form (ALPHANUMERIC . ASCII), where ALPHANUMERIC belongs to `japanese-jisx0208', ASCII belongs to `ascii'.") ;; Put properties 'jisx0208 and 'ascii to each Japanese alpha numeric diff --git a/lisp/language/japanese.el b/lisp/language/japanese.el index bd8ef6ec857..d9bd42093a0 100644 --- a/lisp/language/japanese.el +++ b/lisp/language/japanese.el @@ -264,29 +264,6 @@ eucJP-ms is defined in <http://www.opengroup.or.jp/jvc/cde/appendix.html>." (define-translation-table 'unicode-to-jisx0213 (char-table-extra-slot table 0))) -(defun compose-gstring-for-variation-glyph (gstring _direction) - "Compose glyph-string GSTRING for graphic display. -GSTRING must have two glyphs; the first is a glyph for a han character, -and the second is a glyph for a variation selector." - (let* ((font (lgstring-font gstring)) - (han (lgstring-char gstring 0)) - (vs (lgstring-char gstring 1)) - (glyphs (font-variation-glyphs font han)) - (g0 (lgstring-glyph gstring 0)) - (g1 (lgstring-glyph gstring 1))) - (catch 'tag - (dolist (elt glyphs) - (if (= (car elt) vs) - (progn - (lglyph-set-code g0 (cdr elt)) - (lglyph-set-from-to g0 (lglyph-from g0) (lglyph-to g1)) - (lgstring-set-glyph gstring 1 nil) - (throw 'tag gstring))))))) - -(let ((elt '([".." 1 compose-gstring-for-variation-glyph]))) - (set-char-table-range composition-function-table '(#xFE00 . #xFE0F) elt) - (set-char-table-range composition-function-table '(#xE0100 . #xE01EF) elt)) - (provide 'japanese) ;;; japanese.el ends here diff --git a/lisp/language/khmer.el b/lisp/language/khmer.el index 471af401656..12737edc73f 100644 --- a/lisp/language/khmer.el +++ b/lisp/language/khmer.el @@ -21,6 +21,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. +;;; Commentary: + ;;; Code: (set-language-info-alist diff --git a/lisp/language/korea-util.el b/lisp/language/korea-util.el index b999eff662f..121a4c542e7 100644 --- a/lisp/language/korea-util.el +++ b/lisp/language/korea-util.el @@ -29,7 +29,7 @@ ;;;###autoload (defvar default-korean-keyboard - (purecopy (if (string-match "3" (or (getenv "HANGUL_KEYBOARD_TYPE") "")) + (purecopy (if (string-search "3" (or (getenv "HANGUL_KEYBOARD_TYPE") "")) "3" "")) "The kind of Korean keyboard for Korean (Hangul) input method. diff --git a/lisp/language/lao.el b/lisp/language/lao.el index c699d57c15a..93849461eae 100644 --- a/lisp/language/lao.el +++ b/lisp/language/lao.el @@ -59,11 +59,11 @@ (let* ((chars (car l)) (len (length chars)) ;; Replace `c', `t', `v' to consonant, tone, and vowel. - (regexp (mapconcat #'(lambda (c) - (cond ((= c ?c) consonant) - ((= c ?t) tone) - ((= c ?v) vowel-upper-lower) - (t (string c)))) + (regexp (mapconcat (lambda (c) + (cond ((= c ?c) consonant) + ((= c ?t) tone) + ((= c ?v) vowel-upper-lower) + (t (string c)))) (cdr l) "")) ;; Element of composition-function-table. (elt (list (vector regexp 1 #'lao-composition-function) diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el index a2ca678b2be..c8a4821abf7 100644 --- a/lisp/language/misc-lang.el +++ b/lisp/language/misc-lang.el @@ -192,7 +192,25 @@ thin (i.e. 1-dot width) space." composition-function-table #x13437 (list (vector "\U00013437[\U00013000-\U0001343F]+" - 0 #'egyptian-shape-grouping)))) + 0 #'egyptian-shape-grouping))) + ;; "Normal" hieroglyphs, for fonts that don't support the above + ;; controls, but do shape sequences of hieroglyphs without the + ;; controls. + ;; FIXME: As of late 2021, Egyptian Hieroglyph Format Controls are + ;; not yet supported in existing fonts and/or shaping engines, but + ;; some fonts do provide ligatures with which texts in Egyptian + ;; Hieroglyphs are correctly displayed. If and when these format + ;; controls are supported, as described in section 11.4 "Egyptian + ;; Hieroglyphs" of the Unicode Standard, the five lines below (which + ;; allow composition of hieroglyphs without formatting controls + ;; around) can be removed, and the entry in etc/HELLO can be + ;; restored to: + ;; Egyptian Hieroglyphs (𓂋𓏤𓈖𓆎𓅓𓏏𓊖) 𓅓𓊵𓏏𓊪, 𓇍𓇋𓂻𓍘𓇋 + (set-char-table-range + composition-function-table + '(#x13000 . #x1342E) + (list (vector "[\U00013000-\U0001342E]+" + 0 #'font-shape-gstring)))) (provide 'misc-lang) diff --git a/lisp/language/sinhala.el b/lisp/language/sinhala.el index 89392ad6c50..bf320506001 100644 --- a/lisp/language/sinhala.el +++ b/lisp/language/sinhala.el @@ -21,6 +21,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. +;;; Commentary: + ;;; Code: (set-language-info-alist diff --git a/lisp/language/thai-word.el b/lisp/language/thai-word.el index 5d0389c28df..d12064958e1 100644 --- a/lisp/language/thai-word.el +++ b/lisp/language/thai-word.el @@ -64,7 +64,6 @@ ;; the sale, use or other dealings in this Software without prior ;; written authorization of the copyright holder. - ;;; Commentary: ;; This file implements an algorithm to find Thai word breaks using a @@ -76,6 +75,8 @@ ;; which means that you can easily index the list character by ;; character. +;;; Code: + (defvar thai-word-table (let ((table (list 'thai-words))) (dolist (elt @@ -10740,8 +10741,8 @@ (defun thai-update-word-table (file &optional append) - "Update Thai word table by replacing the current word list with -FILE. If called with a prefix argument, FILE is appended instead to + "Update Thai word table by replacing the current word list with FILE. +If called with a prefix argument, FILE is appended instead to the current word list." (interactive "FThai word table file: \nP") (let ((buf (generate-new-buffer "*thai-work*")) @@ -11041,20 +11042,20 @@ If COUNT is negative, move point forward (- COUNT) words." (defun thai-kill-word (arg) - "Like kill-word but pay attention to Thai word boundaries. + "Like `kill-word' but pay attention to Thai word boundaries. With argument, do this that many times." (interactive "p") (kill-region (point) (progn (thai-forward-word arg) (point)))) (defun thai-backward-kill-word (arg) - "Like backward-kill-word but pay attention to Thai word boundaries." + "Like `backward-kill-word' but pay attention to Thai word boundaries." (interactive "p") (thai-kill-word (- arg))) (defun thai-transpose-words (arg) - "Like transpose-words but pay attention to Thai word boundaries." + "Like `transpose-words' but pay attention to Thai word boundaries." (interactive "*p") (transpose-subr 'thai-forward-word arg)) diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el index ddf4a0c0fb1..1f7a1edcad3 100644 --- a/lisp/language/tibet-util.el +++ b/lisp/language/tibet-util.el @@ -281,8 +281,9 @@ The returned string has no composition information." ;;;###autoload (defun tibetan-decompose-region (from to) "Decompose Tibetan text in the region FROM and TO. -This is different from decompose-region because precomposed Tibetan characters -are decomposed into normal Tibetan character sequences." +This is different from `decompose-region' because precomposed +Tibetan characters are decomposed into normal Tibetan character +sequences." (interactive "r") (save-restriction (narrow-to-region from to) @@ -301,8 +302,9 @@ are decomposed into normal Tibetan character sequences." ;;;###autoload (defun tibetan-decompose-string (str) "Decompose Tibetan string STR. -This is different from decompose-string because precomposed Tibetan characters -are decomposed into normal Tibetan character sequences." +This is different from `decompose-string' because precomposed +Tibetan characters are decomposed into normal Tibetan character +sequences." (let ((new "") (len (length str)) (idx 0) @@ -332,7 +334,7 @@ See also the documentation of the function `tibetan-decompose-region'." ;;;###autoload (defun tibetan-compose-buffer () "Composes Tibetan character components in the buffer. -See also docstring of the function tibetan-compose-region." +See also docstring of the function `tibetan-compose-region'." (interactive) (make-local-variable 'tibetan-decomposed) (tibetan-compose-region (point-min) (point-max)) diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el index 48c7638948c..dc37fc90ac2 100644 --- a/lisp/language/tibetan.el +++ b/lisp/language/tibetan.el @@ -593,8 +593,8 @@ from an input method is converted to the corresponding precomposed glyph.") (setq temp (concat temp "\\|" (car (car l)))) (setq l (cdr l))) (concat temp "\\)"))) - "Regexp string to match a sequence of Tibetan consonantic components, i.e., -one base consonant and one or more subjoined consonants. + "Regexp string to match a sequence of Tibetan consonantic components. +That is, one base consonant and one or more subjoined consonants. The result of matching is to be used for indexing alist when the component sequence is converted to the corresponding precomposed glyph. This also matches some punctuation characters which need conversion.") diff --git a/lisp/language/tv-util.el b/lisp/language/tv-util.el index 207d76f47c1..b0527060db0 100644 --- a/lisp/language/tv-util.el +++ b/lisp/language/tv-util.el @@ -21,12 +21,13 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -;;; Code +;;; Commentary: -;; Regexp matching with a sequence of Tai Viet characters. -(defconst tai-viet-re "[\xaa80-\xaac2\xaadb-\xaadf]+") +;;; Code: + +(defconst tai-viet-re "[\xaa80-\xaac2\xaadb-\xaadf]+" + "Regexp matching with a sequence of Tai Viet characters.") -;; Char-table of information about glyph type of Tai Viet characters. (defconst tai-viet-glyph-info (let ((table (make-char-table nil)) (specials '((right-overhang . "ꪊꪋꪌꪍꪏꪓꪖꪜꪞꪡꪤꪨ") @@ -43,7 +44,8 @@ (chars (cdr elt))) (dotimes (i (length chars)) (aset table (aref chars i) category)))) - table)) + table) + "Char-table of information about glyph type of Tai Viet characters.") (defun tai-viet-compose-string (from to string) "Compose Tai Viet characters in STRING between indices FROM and TO." |