]> git.eshelyaron.com Git - emacs.git/commitdiff
language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.
authorKenichi Handa <handa@etlken>
Tue, 10 Aug 2010 01:20:58 +0000 (10:20 +0900)
committerKenichi Handa <handa@etlken>
Tue, 10 Aug 2010 01:20:58 +0000 (10:20 +0900)
lisp/ChangeLog
lisp/language/hebrew.el

index c242b6feb78eb13f9b63b23794f86b97ba32b1f6..41492031d8280e4a229252cee1c040250a3af054 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-10  Kenichi Handa  <handa@m17n.org>
+
+       * language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the
+       composable pattern.
+
 2010-08-09  Kenichi Handa  <handa@m17n.org>
 
        * language/hebrew.el: Exclude U+05BD (Hebrew MAQAF) from the
index 589412ad38524623c83c8efb259eb8c8334ae878..24ddfb2c11f6a4444fca36d69827b07d3554b3ff 100644 (file)
@@ -237,16 +237,23 @@ Bidirectional editing is supported.")))
          (setq idx (1+ idx))))))
     gstring))
 
-(let ((pattern1 "[\u05D0-\u05F2][\u0591-\u05BD\u05BF\u05C1-\u05C5\u05C7]+")
-      (pattern2 "[\u05D0-\u05F2]\u200D[\u0591-\u05BD\u05BF\u05C1-\u05C5\u05C7]+"))
+(let* ((base "[\u05D0-\u05F2]")
+       (combining "[\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7]+")
+       (pattern1 (concat base combining))
+       (pattern2 (concat base "\u200D" combining)))
   (set-char-table-range
    composition-function-table '(#x591 . #x5C7)
    (list (vector pattern2 3 'hebrew-shape-gstring)
         (vector pattern2 2 'hebrew-shape-gstring)
         (vector pattern1 1 'hebrew-shape-gstring)
         [nil 0 hebrew-shape-gstring]))
+  ;; Exclude non-combining characters.
+  (set-char-table-range
+   composition-function-table #x5BE nil)
   (set-char-table-range
    composition-function-table #x5C0 nil)
+  (set-char-table-range
+   composition-function-table #x5C3 nil)
   (set-char-table-range
    composition-function-table #x5C6 nil))