Function: tibetan-compose-string
tibetan-compose-string is an autoloaded and byte-compiled function
defined in tibet-util.el.gz.
Signature
(tibetan-compose-string STR)
Documentation
Compose Tibetan string STR.
Source Code
;; Defined in /usr/src/emacs/lisp/language/tibet-util.el.gz
;;;###autoload
(defun tibetan-compose-string (str)
"Compose Tibetan string STR."
(let ((idx 0))
;; `འ' is included in the pattern for subjoined consonants
;; because we treat it specially in tibetan-add-components.
;; (This feature is removed by Tomabechi 2000/06/08)
(while (setq idx (string-match tibetan-composable-pattern str idx))
(let ((from idx)
(to (match-end 0))
components)
(if (eq (string-match tibetan-precomposition-rule-regexp str idx) idx)
(setq idx (match-end 0)
components
(list (string-to-char
(cdr
(assoc (match-string 0 str)
tibetan-precomposition-rule-alist)))))
(setq components (list (aref str idx))
idx (1+ idx)))
(while (< idx to)
(tibetan-add-components components (aref str idx))
(setq idx (1+ idx)))
(compose-string str from to components))))
str)