aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-04-12 11:41:39 +0300
committerEli Zaretskii2014-04-12 11:41:39 +0300
commitac387dd13eaa4249a54dd1c3a72f3efed2ee7ce9 (patch)
tree7847726f4fdea83649e2ebbb09ce105cbf6ad021
parent2e611da66e0192a8a63437dbc8f116314cadb71d (diff)
downloademacs-ac387dd13eaa4249a54dd1c3a72f3efed2ee7ce9.tar.gz
emacs-ac387dd13eaa4249a54dd1c3a72f3efed2ee7ce9.zip
Fix bug #17243 with case table entries for Coptic letters
lisp/international/characters.el <standard-case-table>: Add entries for letters from the Coptic block u+2C80-u+2CFF. (Bug#17243)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/international/characters.el15
2 files changed, 20 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ccf81c9c35..94a3f61c1c4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-04-12 Eli Zaretskii <eliz@gnu.org>
2
3 * international/characters.el <standard-case-table>: Add entries
4 for letters from the Coptic block u+2C80-u+2CFF. (Bug#17243)
5
12014-04-12 Leo Liu <sdl.web@gmail.com> 62014-04-12 Leo Liu <sdl.web@gmail.com>
2 7
3 * progmodes/octave.el (completion-table-with-cache): Define if not 8 * progmodes/octave.el (completion-table-with-cache): Define if not
diff --git a/lisp/international/characters.el b/lisp/international/characters.el
index 54ab362df04..e76fef9fd3e 100644
--- a/lisp/international/characters.el
+++ b/lisp/international/characters.el
@@ -791,6 +791,21 @@ with L, LRE, or LRO Unicode bidi character type.")
791 (modify-category-entry (+ c 26) ?l) 791 (modify-category-entry (+ c 26) ?l)
792 (setq c (1+ c))) 792 (setq c (1+ c)))
793 793
794 ;; Coptic
795 (let ((pair-ranges '((#x2C80 . #x2CE2)
796 (#x2CEB . #x2CF2))))
797 (dolist (elt pair-ranges)
798 (let ((from (car elt)) (to (cdr elt)))
799 (while (< from to)
800 (set-case-syntax-pair from (1+ from) tbl)
801 ;; There's no Coptic category. However, Coptic letters that
802 ;; are part of the Greek block above get the Greek category,
803 ;; and those in this block are derived from Greek letters,
804 ;; so let's be consistent about their category.
805 (modify-category-entry from ?g)
806 (modify-category-entry (1+ from) ?g)
807 (setq from (+ from 2))))))
808
794 ;; Fullwidth Latin 809 ;; Fullwidth Latin
795 (setq c #xff21) 810 (setq c #xff21)
796 (while (<= c #xff3a) 811 (while (<= c #xff3a)