Function: tibetan-tibetan-to-transcription
tibetan-tibetan-to-transcription is an autoloaded and byte-compiled
function defined in tibet-util.el.gz.
Signature
(tibetan-tibetan-to-transcription STR)
Documentation
Transcribe Tibetan string STR and return the corresponding Roman string.
Source Code
;; Defined in /usr/src/emacs/lisp/language/tibet-util.el.gz
;;; Functions for Tibetan <-> Tibetan-transcription.
;;;###autoload
(defun tibetan-tibetan-to-transcription (str)
"Transcribe Tibetan string STR and return the corresponding Roman string."
(let (;; Accumulate transcriptions here in reverse order.
(trans nil)
(len (length str))
(i 0)
ch this-trans)
(while (< i len)
(let ((idx (string-match tibetan-precomposition-rule-regexp str i)))
(if (eq idx i)
;; Ith character and the followings matches precomposable
;; Tibetan sequence.
(setq i (match-end 0)
this-trans
(car (rassoc
(cdr (assoc (match-string 0 str)
tibetan-precomposition-rule-alist))
tibetan-precomposed-transcription-alist)))
(setq ch (substring str i (1+ i))
i (1+ i)
this-trans
(car (or (rassoc ch tibetan-consonant-transcription-alist)
(rassoc ch tibetan-vowel-transcription-alist)
(rassoc ch tibetan-subjoined-transcription-alist)))))
(setq trans (cons this-trans trans))))
(apply 'concat (nreverse trans))))