changeset 90280:f596623ad9fd

(ethio-fidel-to-tex-buffer) (ethio-tex-to-fidel-buffer, ethio-composition-function) ("ethiopic-tex"): Support new characters in Unicode 4.1.
author Kenichi Handa <handa@m17n.org>
date Fri, 20 Jan 2006 07:36:01 +0000
parents ede12d80b3a5
children d3b6ae880dce
files lisp/language/ethio-util.el
diffstat 1 files changed, 65 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/ethio-util.el	Fri Jan 20 07:31:04 2006 +0000
+++ b/lisp/language/ethio-util.el	Fri Jan 20 07:36:01 2006 +0000
@@ -5,9 +5,9 @@
 ;; Copyright (C) 1997, 1998, 1999, 2001, 2004, 2005
 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
 ;;   Registration Number H14PRO021
-;; Copyright (C) 2005
+;; Copyright (C) 2005, 2006
 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
-;;   Registration Number: H15PRO 110
+;;   Registration Number: H15PRO110
 
 ;; Keywords: mule, multilingual, Ethiopic
 
@@ -796,7 +796,7 @@
     ;; Special treatment for geminated characters.
     ;; Geminated characters la", etc. change into \geminateG{\laG}, etc.
     (goto-char (point-min))
-    (while (search-forward "" nil t)
+    (while (re-search-forward "፟\\|" nil t)
       (setq comp (find-composition (match-beginning 0)))
       (if (null comp)
 	  (replace-match "\\\\geminateG{}" t)
@@ -845,7 +845,7 @@
     ;; compose geminated characters
     (goto-char (point-min))
     (while (re-search-forward "\\\\geminateG{\\(\\ce?\\)}" nil t)
-      (replace-match "\\1"))
+      (replace-match "\\1፟"))
 
     ;; remove redundant braces, if any
     (goto-char (point-min))
@@ -1021,7 +1021,7 @@
 ;;;###autoload
 (defun ethio-composition-function (pos &optional string)
   (setq pos (1- pos))
-  (let ((pattern "\\ce"))
+  (let ((pattern "\\ce\\(፟\\|\\)"))
     (if string
 	(if (and (>= pos 0)
 		 (eq (string-match pattern string pos) pos))
@@ -2008,6 +2008,66 @@
  ("\\lquoteG" ?) ("\\lquoteG" "«")
  ("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