Function: pakistan--define-quail-rules
pakistan--define-quail-rules is a byte-compiled function defined in
pakistan.el.gz.
Signature
(pakistan--define-quail-rules RULES &optional PREFIX PACKAGE)
Documentation
Define translations for urdu-custom input method as determined by RULES.
PACKAGE determines the input method and defaults to urdu-custom. RULES is
the list of rules to define, see quail-defrule for details. If non-nil
PREFIX is a string that is prefixed to each string in RULES. PREFIX can be a
symbol in which case it is looked up in pakistan-urdu-prefixes to obtain the
string.
Source Code
;; Defined in /usr/src/emacs/lisp/leim/quail/pakistan.el.gz
;;;;;; Helper functions
(defun pakistan--define-quail-rules (rules &optional prefix package)
"Define translations for `urdu-custom' input method as determined by RULES.
PACKAGE determines the input method and defaults to `urdu-custom'. RULES is
the list of rules to define, see `quail-defrule' for details. If non-nil
PREFIX is a string that is prefixed to each string in RULES. PREFIX can be a
symbol in which case it is looked up in `pakistan-urdu-prefixes' to obtain the
string."
(setq package (or package "urdu-custom"))
(when (and prefix (symbolp prefix))
(setq prefix (car (alist-get prefix pakistan-urdu-prefixes))))
(dolist (rule rules)
(quail-defrule (concat prefix (car rule)) (cadr rule) package)))