aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/language/devan-util.el
diff options
context:
space:
mode:
authorKenichi Handa2004-04-16 12:51:06 +0000
committerKenichi Handa2004-04-16 12:51:06 +0000
commit6b61353c0a0320ee15bb6488149735381fed62ec (patch)
treee69adba60e504a5a37beb556ad70084de88a7aab /lisp/language/devan-util.el
parentdc6a28319312fe81f7a1015e363174022313f0bd (diff)
downloademacs-6b61353c0a0320ee15bb6488149735381fed62ec.tar.gz
emacs-6b61353c0a0320ee15bb6488149735381fed62ec.zip
Sync to HEAD
Diffstat (limited to 'lisp/language/devan-util.el')
-rw-r--r--lisp/language/devan-util.el23
1 files changed, 10 insertions, 13 deletions
diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el
index 4e3fbc9a257..64dbf576af3 100644
--- a/lisp/language/devan-util.el
+++ b/lisp/language/devan-util.el
@@ -85,6 +85,7 @@
85 (devanagari-compose-region (point-min) (point-max)) 85 (devanagari-compose-region (point-min) (point-max))
86 (buffer-string))) 86 (buffer-string)))
87 87
88;;;###autoload
88(defun devanagari-post-read-conversion (len) 89(defun devanagari-post-read-conversion (len)
89 (save-excursion 90 (save-excursion
90 (save-restriction 91 (save-restriction
@@ -586,19 +587,14 @@ preferred rule from the sanskrit fonts." )
586 (setq preceding-r t) 587 (setq preceding-r t)
587 (goto-char (+ 2 (point)))) 588 (goto-char (+ 2 (point))))
588 ;; translate the rest characters into glyphs 589 ;; translate the rest characters into glyphs
589 (while (not (eobp)) 590 (while (re-search-forward dev-char-glyph-regexp nil t)
590 (if (looking-at dev-char-glyph-regexp) 591 (setq match-str (match-string 0))
591 (let ((end (match-end 0))) 592 (setq glyph-str
592 (setq match-str (match-string 0) 593 (concat glyph-str
593 glyph-str 594 (gethash match-str dev-char-glyph-hash)))
594 (concat glyph-str 595 ;; count the number of consonant-glyhs.
595 (gethash match-str dev-char-glyph-hash))) 596 (if (string-match devanagari-consonant match-str)
596 ;; count the number of consonant-glyhs. 597 (setq cons-num (1+ cons-num))))
597 (if (string-match devanagari-consonant match-str)
598 (setq cons-num (1+ cons-num)))
599 (goto-char end))
600 (setq glyph-str (concat glyph-str (string (following-char))))
601 (forward-char 1)))
602 ;; preceding-r must be attached before the anuswar if exists. 598 ;; preceding-r must be attached before the anuswar if exists.
603 (if preceding-r 599 (if preceding-r
604 (if last-modifier 600 (if last-modifier
@@ -652,4 +648,5 @@ preferred rule from the sanskrit fonts." )
652 648
653(provide 'devan-util) 649(provide 'devan-util)
654 650
651;;; arch-tag: 9bc4d6e3-f2b9-4110-886e-ff9b66b7eebc
655;;; devan-util.el ends here 652;;; devan-util.el ends here