;; [consonant/nukta] - [matra/halant] - [preceding-r] - [anuswar].
(defvar dev-glyph-glyph
- '(("\\e$,4"'\e(B\\e$,4"&\e(B" . "\\e$,4"(\e(B")
- ("\\e$,4"'\e(B\\e$,4"$\e(B" . "\\e$,4"(\e(B")
- ("\e$,4"*\e(B\\e$,4"&\e(B" . "\e$,4"+\e(B")
- ("\e$,4"*\e(B\\e$,4"'\e(B" . "\e$,4",\e(B")
- ("\e$,4"*\e(B\\e$,4"'\e(B\\e$,4"&\e(B" . "\e$,4"-\e(B")
- ("\e$,4"2\e(B\\e$,4"&\e(B" . "\e$,4"3\e(B")
- ("\e$,4"2\e(B\\e$,4"'\e(B" . "\e$,4"4\e(B")
- ("\e$,4"2\e(B\\e$,4"'\e(B\\e$,4"&\e(B" . "\e$,4"5\e(B")
- ("\e$,4"#\e(B\\e$,4"6\e(B" . "\e$,4"7\e(B")
- ("\e$,4"%\e(B\\e$,4"6\e(B" . "\e$,4"8\e(B")
- ;;("\e$,4"6\e(B" . "\e$,4"9\e(B")
- ("\e$,4"#\e(B\\e$,4":\e(B" . "\e$,4";\e(B")
- ("\e$,4"%\e(B\\e$,4":\e(B" . "\e$,4"<\e(B")
- ;;("\e$,4":\e(B" . "\e$,4"=\e(B")
- ("\\e$,4"@\e(B\\e$,4"&\e(B" . "\\e$,4"A\e(B")
- ("\\e$,4"@\e(B\\e$,4"'\e(B" . "\\e$,4"B\e(B")
- ("\\e$,4"@\e(B\\e$,4"'\e(B\\e$,4"&\e(B" . "\\e$,4"C\e(B")
- ("\\e$,4"D\e(B\\e$,4"&\e(B" . "\\e$,4"E\e(B")
- ("\\e$,4"D\e(B\\e$,4"'\e(B" . "\\e$,4"F\e(B")
- ("\\e$,4"D\e(B\\e$,4"'\e(B\\e$,4"&\e(B" . "\\e$,4"G\e(B")
- ("\\e$,4"H\e(B\\e$,4"&\e(B" . "\\e$,4"I\e(B")
- ("\\e$,4"H\e(B\\e$,4"'\e(B" . "\\e$,4"J\e(B")
- ("\\e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&\e(B" . "\\e$,4\"E\e(B")
+ ("\\e$,4\"D\e(B\\e$,4\"'\e(B" . "\\e$,4\"F\e(B")
+ ("\\e$,4\"D\e(B\\e$,4\"'\e(B\\e$,4\"&\e(B" . "\\e$,4\"G\e(B")
+ ("\\e$,4\"H\e(B\\e$,4\"&\e(B" . "\\e$,4\"I\e(B")
+ ("\\e$,4\"H\e(B\\e$,4\"'\e(B" . "\\e$,4\"J\e(B")
+ ("\\e$,4\"H\e(B\\e$,4\"'\e(B\\e$,4\"&\e(B" . "\\e$,4\"K\e(B")
+ ("\\e$,4\"L\e(B\\e$,4\"&\e(B" . "\\e$,4\"M\e(B")
+ ("\\e$,4\"L\e(B\\e$,4\"'\e(B" . "\\e$,4\"N\e(B")
+ ("\\e$,4\"L\e(B\\e$,4\"'\e(B\\e$,4\"&\e(B" . "\\e$,4\"O\e(B")
))
(defvar dev-glyph-glyph-hash
(let* ((hash (makehash 'equal)))
;; yet another glyph-to-glyph conversions.
(defvar dev-glyph-glyph-2
- '(("\e$,4"*\e(B" . "\e$,4".\e(B")
- ("\e$,4"+\e(B" . "\e$,4"/\e(B")
- ("\e$,4",\e(B" . "\e$,4"0\e(B")
- ("\e$,4"-\e(B" . "\e$,4"1\e(B")))
+ '(("\e$,4\"*\e(B" . "\e$,4\".\e(B")
+ ("\e$,4\"+\e(B" . "\e$,4\"/\e(B")
+ ("\e$,4\",\e(B" . "\e$,4\"0\e(B")
+ ("\e$,4\"-\e(B" . "\e$,4\"1\e(B")))
(defvar dev-glyph-glyph-2-hash
(let* ((hash (makehash 'equal)))
(mapc (function (lambda (x) (puthash (car x) (cdr x) hash)))
(if preceding-r
(if last-modifier
(setq glyph-str (concat (substring glyph-str 0 -1)
- "\e$,4"'\e(B" (substring glyph-str -1)))
- (setq glyph-str (concat glyph-str "\e$,4"'\e(B"))))
- (if last-halant (setq glyph-str (concat glyph-str "\e$,4""\e(B")))
+ "\e$,4\"'\e(B" (substring glyph-str -1)))
+ (setq glyph-str (concat glyph-str "\e$,4\"'\e(B"))))
+ (if last-halant (setq glyph-str (concat glyph-str "\e$,4\"\"\e(B")))
;;; *** glyph-to-glyph conversion ***
(when (string-match dev-glyph-glyph-regexp glyph-str)
(setq glyph-str
dev-glyph-glyph-2-hash)
nil t glyph-str))))
;;; *** glyph reordering ***
- (while (setq split-pos (string-match "\e$,4""\e(B\\|.$" glyph-str))
+ (while (setq split-pos (string-match "\e$,4\"\"\e(B\\|.$" glyph-str))
(setq glyph-block (substring glyph-str 0 (1+ split-pos)))
(setq glyph-str (substring glyph-str (1+ split-pos)))
(setq