Function: viet-decode-viqr-region
viet-decode-viqr-region is an autoloaded, interactive and
byte-compiled function defined in viet-util.el.gz.
Signature
(viet-decode-viqr-region FROM TO)
Documentation
Convert VIQR mnemonics of the current region to Vietnamese characters.
When called from a program, expects two arguments, positions (integers or markers) specifying the stretch of the region.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/language/viet-util.el.gz
;;;###autoload
(defun viet-decode-viqr-region (from to)
"Convert `VIQR' mnemonics of the current region to Vietnamese characters.
When called from a program, expects two arguments,
positions (integers or markers) specifying the stretch of the region."
(interactive "r")
(save-restriction
(narrow-to-region from to)
(goto-char (point-min))
(while (re-search-forward viqr-regexp nil t)
(let* ((viqr (buffer-substring (match-beginning 0) (match-end 0)))
(ch (car (rassoc viqr viet-viqr-alist))))
(if ch
(progn
(delete-region (match-beginning 0) (match-end 0))
(insert ch)))))))