(chise-tex-encode-region-for-utf-8-jis): Support Thai script.
authortomo <tomo>
Wed, 14 Jan 2009 16:53:52 +0000 (16:53 +0000)
committertomo <tomo>
Wed, 14 Jan 2009 16:53:52 +0000 (16:53 +0000)
chise2otf/elisp/chise-tex.el

index b144689..cd6ea49 100644 (file)
                  ;;  (insert (decode-char '=jis-x0208-1983 ret)))
                  ((eq (char-ucs chr) #x012B)
                   (delete-char)
-                  (insert "\\={\\i}"))
+                  (insert "\\={\\i}")
+                  )
+                 ((setq ret (encode-char chr 'thai-tis620))
+                  (delete-char)
+                  (insert (format "\\ThaiTIS{%X}" (logior ret #x80)))
+                  )
                  ((and (not (eq (char-ucs chr) #x0439))
                        (not (eq (char-ucs chr) #x0451))
                        (setq ret (char-feature chr '=decomposition))