Set category of Coptic characters be 'g' (Greek).
authorEli Zaretskii <eliz@gnu.org>
Sat, 12 Apr 2014 08:49:05 +0000 (11:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Apr 2014 08:49:05 +0000 (11:49 +0300)
lisp/ChangeLog
lisp/international/characters.el

index 94a3f61..78865ed 100644 (file)
@@ -2,6 +2,7 @@
 
        * international/characters.el <standard-case-table>: Add entries
        for letters from the Coptic block u+2C80-u+2CFF.  (Bug#17243)
+       Set category of Coptic characters be 'g' (Greek).
 
 2014-04-12  Leo Liu  <sdl.web@gmail.com>
 
index e76fef9..63b2b4f 100644 (file)
@@ -798,13 +798,12 @@ with L, LRE, or LRO Unicode bidi character type.")
       (let ((from (car elt)) (to (cdr elt)))
        (while (< from to)
          (set-case-syntax-pair from (1+ from) tbl)
-         ;; There's no Coptic category.  However, Coptic letters that
-         ;; are part of the Greek block above get the Greek category,
-         ;; and those in this block are derived from Greek letters,
-         ;; so let's be consistent about their category.
-         (modify-category-entry from ?g)
-         (modify-category-entry (1+ from) ?g)
          (setq from (+ from 2))))))
+  ;; There's no Coptic category.  However, Coptic letters that are
+  ;; part of the Greek block above get the Greek category, and those
+  ;; in this block are derived from Greek letters, so let's be
+  ;; consistent about their category.
+  (modify-category-entry '(#x2C80 . #x2CFF) ?g)
 
   ;; Fullwidth Latin
   (setq c #xff21)