aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2010-08-10 10:20:58 +0900
committerKenichi Handa2010-08-10 10:20:58 +0900
commit2948599b87eef32145ec30e4ebb688178c494b5a (patch)
tree5699f10b0df079dcb356f835cfc76eb94e9a7a82
parent231e5e5f5094153e396b07b301ba753b2e10ba3b (diff)
downloademacs-2948599b87eef32145ec30e4ebb688178c494b5a.tar.gz
emacs-2948599b87eef32145ec30e4ebb688178c494b5a.zip
language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/language/hebrew.el11
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c242b6feb78..41492031d82 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-08-10 Kenichi Handa <handa@m17n.org>
2
3 * language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the
4 composable pattern.
5
12010-08-09 Kenichi Handa <handa@m17n.org> 62010-08-09 Kenichi Handa <handa@m17n.org>
2 7
3 * language/hebrew.el: Exclude U+05BD (Hebrew MAQAF) from the 8 * language/hebrew.el: Exclude U+05BD (Hebrew MAQAF) from the
diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el
index 589412ad385..24ddfb2c11f 100644
--- a/lisp/language/hebrew.el
+++ b/lisp/language/hebrew.el
@@ -237,17 +237,24 @@ Bidirectional editing is supported.")))
237 (setq idx (1+ idx)))))) 237 (setq idx (1+ idx))))))
238 gstring)) 238 gstring))
239 239
240(let ((pattern1 "[\u05D0-\u05F2][\u0591-\u05BD\u05BF\u05C1-\u05C5\u05C7]+") 240(let* ((base "[\u05D0-\u05F2]")
241 (pattern2 "[\u05D0-\u05F2]\u200D[\u0591-\u05BD\u05BF\u05C1-\u05C5\u05C7]+")) 241 (combining "[\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7]+")
242 (pattern1 (concat base combining))
243 (pattern2 (concat base "\u200D" combining)))
242 (set-char-table-range 244 (set-char-table-range
243 composition-function-table '(#x591 . #x5C7) 245 composition-function-table '(#x591 . #x5C7)
244 (list (vector pattern2 3 'hebrew-shape-gstring) 246 (list (vector pattern2 3 'hebrew-shape-gstring)
245 (vector pattern2 2 'hebrew-shape-gstring) 247 (vector pattern2 2 'hebrew-shape-gstring)
246 (vector pattern1 1 'hebrew-shape-gstring) 248 (vector pattern1 1 'hebrew-shape-gstring)
247 [nil 0 hebrew-shape-gstring])) 249 [nil 0 hebrew-shape-gstring]))
250 ;; Exclude non-combining characters.
251 (set-char-table-range
252 composition-function-table #x5BE nil)
248 (set-char-table-range 253 (set-char-table-range
249 composition-function-table #x5C0 nil) 254 composition-function-table #x5C0 nil)
250 (set-char-table-range 255 (set-char-table-range
256 composition-function-table #x5C3 nil)
257 (set-char-table-range
251 composition-function-table #x5C6 nil)) 258 composition-function-table #x5C6 nil))
252 259
253(provide 'hebrew) 260(provide 'hebrew)