From 8278dac173d5a0615df2b7d2371fa1a7cb21dbfa Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 12 Jan 2005 04:24:06 +0000 Subject: [PATCH] (chise-tex-encode-region-for-jis): Add setting for KS character. --- chise2otf/elisp/chise-tex.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chise2otf/elisp/chise-tex.el b/chise2otf/elisp/chise-tex.el index 8cb81a3..57527a1 100644 --- a/chise2otf/elisp/chise-tex.el +++ b/chise2otf/elisp/chise-tex.el @@ -1,6 +1,6 @@ ;;; chise-tex.el --- Coding-system based chise2otf like tool -;; Copyright (C) 2004 MORIOKA Tomohiko +;; Copyright (C) 2004,2005 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Keywords: OTF package, pTeX, CHISE, Multiscript, Multilingual @@ -104,6 +104,13 @@ ;; (if (eq (char-before) ?《) ;; (insert " ")) (insert (format "\\UCSjis{%04X}" ret))) + ((and (encode-char chr '=ks-x1001) + (setq ret (or (encode-char chr '=ucs@ks) + (char-ucs chr)))) + (delete-char) + ;; (if (eq (char-before) ?《) + ;; (insert " ")) + (insert (format "\\UCSks{%04X}" ret))) ((setq ret (encode-char chr '=ucs-hangul)) (delete-char) ;; (if (eq (char-before) ?《) -- 1.7.10.4