2007-10-12 21:06:27 +00:00
|
|
|
|
;;; ethio-util.el --- utilities for Ethiopic -*- coding: utf-8; -*-
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
2010-01-13 08:35:10 +00:00
|
|
|
|
;; Copyright (C) 1997, 1998, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
2005-05-16 07:03:28 +00:00
|
|
|
|
;; Free Software Foundation, Inc.
|
2008-01-07 01:33:37 +00:00
|
|
|
|
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
2010-01-13 08:35:10 +00:00
|
|
|
|
;; 2006, 2007, 2008, 2009, 2010
|
2005-05-16 07:03:28 +00:00
|
|
|
|
;; National Institute of Advanced Industrial Science and Technology (AIST)
|
|
|
|
|
;; Registration Number H14PRO021
|
2006-01-20 07:36:01 +00:00
|
|
|
|
;; Copyright (C) 2005, 2006
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; National Institute of Advanced Industrial Science and Technology (AIST)
|
2006-01-20 07:36:01 +00:00
|
|
|
|
;; Registration Number: H15PRO110
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; Keywords: mule, multilingual, Ethiopic
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
2008-05-06 04:29:13 +00:00
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2008-05-06 04:29:13 +00:00
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
2008-05-06 04:29:13 +00:00
|
|
|
|
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
2001-02-28 12:41:46 +00:00
|
|
|
|
;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
2001-07-16 12:23:00 +00:00
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;; Code:
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(require 'robin)
|
|
|
|
|
|
1998-06-20 02:59:51 +00:00
|
|
|
|
;; Information for exiting Ethiopic environment.
|
|
|
|
|
(defvar exit-ethiopic-environment-data nil)
|
|
|
|
|
|
1998-08-10 06:42:41 +00:00
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun setup-ethiopic-environment-internal ()
|
1998-06-20 02:59:51 +00:00
|
|
|
|
(let ((key-bindings '((" " . ethio-insert-space)
|
|
|
|
|
([?\S- ] . ethio-insert-ethio-space)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; ([?\C-'] . ethio-gemination)
|
2001-02-28 12:41:46 +00:00
|
|
|
|
([f3] . ethio-fidel-to-sera-buffer)
|
|
|
|
|
([S-f3] . ethio-fidel-to-sera-region)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
([C-f3] . ethio-fidel-to-sera-marker)
|
1998-06-20 02:59:51 +00:00
|
|
|
|
([f4] . ethio-sera-to-fidel-buffer)
|
|
|
|
|
([S-f4] . ethio-sera-to-fidel-region)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
([C-f4] . ethio-sera-to-fidel-marker)
|
2001-02-28 12:41:46 +00:00
|
|
|
|
([S-f5] . ethio-toggle-punctuation)
|
|
|
|
|
([S-f6] . ethio-modify-vowel)
|
|
|
|
|
([S-f7] . ethio-replace-space)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; ([S-f8] . ethio-input-special-character) ; deprecated
|
2001-02-28 12:41:46 +00:00
|
|
|
|
([C-f9] . ethio-toggle-space)
|
|
|
|
|
([S-f9] . ethio-replace-space) ; as requested
|
|
|
|
|
))
|
1998-06-20 02:59:51 +00:00
|
|
|
|
kb)
|
|
|
|
|
(while key-bindings
|
|
|
|
|
(setq kb (car (car key-bindings)))
|
|
|
|
|
(setq exit-ethiopic-environment-data
|
|
|
|
|
(cons (cons kb (global-key-binding kb))
|
|
|
|
|
exit-ethiopic-environment-data))
|
|
|
|
|
(global-set-key kb (cdr (car key-bindings)))
|
|
|
|
|
(setq key-bindings (cdr key-bindings))))
|
|
|
|
|
|
2002-08-15 00:46:09 +00:00
|
|
|
|
(add-hook 'find-file-hook 'ethio-find-file)
|
|
|
|
|
(add-hook 'write-file-functions 'ethio-write-file)
|
1998-06-20 02:59:51 +00:00
|
|
|
|
(add-hook 'after-save-hook 'ethio-find-file))
|
|
|
|
|
|
|
|
|
|
(defun exit-ethiopic-environment ()
|
2003-01-09 14:13:48 +00:00
|
|
|
|
"Exit Ethiopic language environment."
|
1998-06-20 02:59:51 +00:00
|
|
|
|
(while exit-ethiopic-environment-data
|
|
|
|
|
(global-set-key (car (car exit-ethiopic-environment-data))
|
|
|
|
|
(cdr (car exit-ethiopic-environment-data)))
|
|
|
|
|
(setq exit-ethiopic-environment-data
|
|
|
|
|
(cdr exit-ethiopic-environment-data)))
|
|
|
|
|
|
2002-08-15 00:46:09 +00:00
|
|
|
|
(remove-hook 'find-file-hook 'ethio-find-file)
|
|
|
|
|
(remove-hook 'write-file-functions 'ethio-write-file)
|
1998-06-20 02:59:51 +00:00
|
|
|
|
(remove-hook 'after-save-hook 'ethio-find-file))
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;
|
|
|
|
|
;; ETHIOPIC UTILITY FUNCTIONS
|
|
|
|
|
;;
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; If the filename ends in ".sera", editing is done in fidel
|
|
|
|
|
;; but file I/O is done in SERA.
|
|
|
|
|
;;
|
|
|
|
|
;; If the filename ends in ".java", editing is done in fidel
|
2003-02-04 13:24:35 +00:00
|
|
|
|
;; but file I/O is done in the \uXXXX style, where XXXX is
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; the Unicode codepoint for the Ethiopic character.
|
|
|
|
|
;;
|
|
|
|
|
;; If the filename ends in ".tex", editing is done in fidel
|
|
|
|
|
;; but file I/O is done in EthioTeX format.
|
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; users' preference
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
(defvar ethio-primary-language 'tigrigna
|
|
|
|
|
"*Symbol that defines the primary language in SERA --> FIDEL conversion.
|
|
|
|
|
The value should be one of: `tigrigna', `amharic' or `english'.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-secondary-language 'english
|
|
|
|
|
"*Symbol that defines the secondary language in SERA --> FIDEL conversion.
|
|
|
|
|
The value should be one of: `tigrigna', `amharic' or `english'.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-use-colon-for-colon nil
|
|
|
|
|
"*Non-nil means associate ASCII colon with Ethiopic colon.
|
|
|
|
|
If nil, associate ASCII colon with Ethiopic word separator, i.e., two
|
|
|
|
|
vertically stacked dots. All SERA <--> FIDEL converters refer this
|
|
|
|
|
variable.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-use-three-dot-question nil
|
|
|
|
|
"*Non-nil means associate ASCII question mark with Ethiopic old style question mark (three vertically stacked dots).
|
2005-06-16 16:16:38 +00:00
|
|
|
|
If nil, associate ASCII question mark with Ethiopic stylized question
|
1997-04-05 02:40:11 +00:00
|
|
|
|
mark. All SERA <--> FIDEL converters refer this variable.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-quote-vowel-always nil
|
|
|
|
|
"*Non-nil means always put an apostrophe before an isolated vowel (except at word initial) in FIDEL --> SERA conversion.
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If nil, put an apostrophe only between a 6th-form consonant and an
|
1997-04-05 02:40:11 +00:00
|
|
|
|
isolated vowel.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-W-sixth-always nil
|
|
|
|
|
"*Non-nil means convert the Wu-form of a 12-form consonant to \"W'\" instead of \"Wu\" in FIDEL --> SERA conversion.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-numeric-reduction 0
|
|
|
|
|
"*Degree of reduction in converting Ethiopic digits into Arabic digits.
|
|
|
|
|
Should be 0, 1 or 2.
|
|
|
|
|
For example, ({10}{9}{100}{80}{7}) is converted into:
|
|
|
|
|
`10`9`100`80`7 if `ethio-numeric-reduction' is 0,
|
|
|
|
|
`109100807 if `ethio-numeric-reduction' is 1,
|
|
|
|
|
`10900807 if `ethio-numeric-reduction' is 2.")
|
|
|
|
|
|
|
|
|
|
(defvar ethio-java-save-lowercase nil
|
|
|
|
|
"*Non-nil means save Ethiopic characters in lowercase hex numbers to Java files.
|
|
|
|
|
If nil, use uppercases.")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-prefer-amharic-p ()
|
|
|
|
|
(or (eq ethio-primary-language 'amharic)
|
|
|
|
|
(and (not (eq ethio-primary-language 'tigrigna))
|
|
|
|
|
(eq ethio-secondary-language 'amharic))))
|
|
|
|
|
|
|
|
|
|
(defun ethio-prefer-amharic (arg)
|
|
|
|
|
(if arg
|
|
|
|
|
(progn
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "'a" ?አ)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "a" "አ")
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "'A" ?ኣ)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "A" "ኣ"))
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "'A" ?አ)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "A" "አ")
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "'a" ?ኣ)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "a" "ኣ")))
|
|
|
|
|
|
|
|
|
|
(defun ethio-use-colon-for-colon (arg)
|
|
|
|
|
(if arg
|
|
|
|
|
(progn
|
|
|
|
|
(robin-modify-package "ethiopic-sera" ":" ?፥)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "`:" ?፡))
|
|
|
|
|
(robin-modify-package "ethiopic-sera" " : " ?፡)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" ":" "፡")
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "-:" ?፥)))
|
|
|
|
|
|
|
|
|
|
(defun ethio-use-three-dot-question (arg)
|
|
|
|
|
(if arg
|
|
|
|
|
(progn
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "?" ?፧)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "`?" ??))
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "?" ??)
|
|
|
|
|
(robin-modify-package "ethiopic-sera" "`?" ?፧)))
|
|
|
|
|
|
|
|
|
|
(defun ethio-adjust-robin ()
|
|
|
|
|
(ethio-prefer-amharic (ethio-prefer-amharic-p))
|
|
|
|
|
(ethio-use-colon-for-colon ethio-use-colon-for-colon)
|
|
|
|
|
(ethio-use-three-dot-question ethio-use-three-dot-question))
|
|
|
|
|
|
|
|
|
|
(add-hook 'robin-activate-hook 'ethio-adjust-robin)
|
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;
|
|
|
|
|
;; SERA to FIDEL
|
|
|
|
|
;;
|
2003-02-04 13:24:35 +00:00
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;;###autoload
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-sera-to-fidel-buffer (&optional secondary force)
|
|
|
|
|
"Convert the current buffer from SERA to FIDEL.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
The variable `ethio-primary-language' specifies the primary
|
|
|
|
|
language and `ethio-secondary-language' specifies the secondary.
|
|
|
|
|
|
|
|
|
|
If the 1st optional argument SECONDARY is non-nil, assume the
|
|
|
|
|
buffer begins with the secondary language; otherwise with the
|
|
|
|
|
primary language.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 2nd optional argument FORCE is non-nil, perform conversion
|
1997-04-05 02:40:11 +00:00
|
|
|
|
even if the buffer is read-only.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
See also the descriptions of the variables
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
`ethio-use-colon-for-colon' and `ethio-use-three-dot-question'."
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(interactive "P")
|
|
|
|
|
(ethio-sera-to-fidel-region (point-min) (point-max) secondary force))
|
|
|
|
|
|
|
|
|
|
;; To avoid byte-compiler warnings. It should never be set globally.
|
|
|
|
|
(defvar ethio-sera-being-called-by-w3)
|
|
|
|
|
;; This variable will be bound by some third-party package.
|
|
|
|
|
(defvar sera-being-called-by-w3)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-sera-to-fidel-region (begin end &optional secondary force)
|
|
|
|
|
"Convert the characters in region from SERA to FIDEL.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
The variable `ethio-primary-language' specifies the primary
|
|
|
|
|
language and `ethio-secondary-language' specifies the secondary.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 3rd argument SECONDARY is given and non-nil, assume the
|
|
|
|
|
region begins with the secondary language; otherwise with the
|
|
|
|
|
primary language.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 4th argument FORCE is given and non-nil, perform
|
|
|
|
|
conversion even if the buffer is read-only.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
See also the descriptions of the variables
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
`ethio-use-colon-for-colon' and `ethio-use-three-dot-question'."
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(interactive "r\nP")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(if (and buffer-read-only
|
|
|
|
|
(not force)
|
|
|
|
|
(not (y-or-n-p "Buffer is read-only. Force to convert? ")))
|
|
|
|
|
(error ""))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
(let ((ethio-primary-language ethio-primary-language)
|
|
|
|
|
(ethio-secondary-language ethio-secondary-language)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; The above two variables may be changed temporarily by tilde
|
|
|
|
|
;; escapes during conversion. We bind them to the variables
|
|
|
|
|
;; of the same names so that the original values are restored
|
|
|
|
|
;; when this function exits.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(buffer-read-only nil)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(lang (if secondary ethio-secondary-language ethio-primary-language))
|
|
|
|
|
ret)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(ethio-use-colon-for-colon ethio-use-colon-for-colon)
|
|
|
|
|
(ethio-use-three-dot-question ethio-use-three-dot-question)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region begin end)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (not (eobp))
|
|
|
|
|
(setq ret
|
|
|
|
|
(cond
|
|
|
|
|
((eq lang 'amharic)
|
|
|
|
|
(ethio-prefer-amharic t)
|
|
|
|
|
(ethio-sera-to-fidel-region-ethio 'amharic))
|
|
|
|
|
((eq lang 'tigrigna)
|
|
|
|
|
(ethio-prefer-amharic nil)
|
|
|
|
|
(ethio-sera-to-fidel-region-ethio 'tigrigna))
|
|
|
|
|
(t
|
|
|
|
|
(ethio-sera-to-fidel-region-noethio))))
|
|
|
|
|
(setq lang
|
|
|
|
|
(if (eq ret 'toggle)
|
|
|
|
|
(if (eq lang ethio-primary-language)
|
|
|
|
|
ethio-secondary-language
|
|
|
|
|
ethio-primary-language)
|
|
|
|
|
ret)))))
|
|
|
|
|
|
|
|
|
|
;; Restore user's preference.
|
|
|
|
|
(ethio-adjust-robin))
|
|
|
|
|
|
|
|
|
|
(defun ethio-sera-to-fidel-region-noethio ()
|
|
|
|
|
"Return next language as symbol: amharic, tigrigna, toggle or nil."
|
|
|
|
|
(let (lflag)
|
|
|
|
|
(cond
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; No more "\", i.e. nothing to do.
|
|
|
|
|
((not (search-forward "\\" nil 0))
|
|
|
|
|
nil)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Hereafter point is put after a "\".
|
|
|
|
|
;; First delete that "\", then check the following chars.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; A language flag.
|
|
|
|
|
((progn (delete-char -1) (setq lflag (ethio-process-language-flag)))
|
|
|
|
|
lflag)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; "\\" : leave the second "\" and continue in the same language.
|
|
|
|
|
((= (following-char) ?\\)
|
|
|
|
|
(forward-char 1)
|
|
|
|
|
nil)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; "\ " : delete the following " " and toggle the language.
|
|
|
|
|
((= (following-char) 32)
|
|
|
|
|
(delete-char 1)
|
|
|
|
|
'toggle)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; A "\" but not a special sequence: simply toggle the language.
|
|
|
|
|
(t
|
|
|
|
|
'toggle))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-sera-to-fidel-region-ethio (lang)
|
|
|
|
|
"Return next language as symbol: amharic, tigrigna, toggle or nil."
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region
|
|
|
|
|
(point)
|
|
|
|
|
(if (re-search-forward "\\(`[1-9][0-9]*\\)\\|[\\<&]" nil t)
|
|
|
|
|
(match-beginning 0)
|
|
|
|
|
(point-max)))
|
|
|
|
|
(robin-convert-region (point-min) (point-max) "ethiopic-sera")
|
|
|
|
|
(goto-char (point-max)))
|
|
|
|
|
|
|
|
|
|
(let (lflag)
|
|
|
|
|
(cond
|
|
|
|
|
((= (following-char) ?`)
|
|
|
|
|
(delete-char 1)
|
|
|
|
|
(ethio-process-digits)
|
|
|
|
|
lang)
|
|
|
|
|
|
|
|
|
|
((looking-at "[<&]")
|
|
|
|
|
(if (or (and (boundp 'ethio-sera-being-called-by-w3)
|
|
|
|
|
ethio-sera-being-called-by-w3)
|
|
|
|
|
(and (boundp 'sera-being-called-by-w3)
|
|
|
|
|
sera-being-called-by-w3))
|
|
|
|
|
(search-forward (if (= (following-char) ?<) ">" ";") nil 0)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(forward-char 1))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((eobp)
|
|
|
|
|
nil)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Now we must be looking at a "\".
|
|
|
|
|
;; First delete that "\", then check the following chars.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((progn (delete-char 1) (= (following-char) 32))
|
|
|
|
|
(delete-char 1)
|
|
|
|
|
'toggle)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((looking-at "[,.;:'`?\\]+")
|
|
|
|
|
(goto-char (match-end 0))
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((/= (following-char) ?~)
|
|
|
|
|
'toggle)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Now we must be looking at a "~".
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((setq lflag (ethio-process-language-flag))
|
|
|
|
|
lflag)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Delete the following "~" and check the following chars.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((progn (delete-char 1) (looking-at "! ?"))
|
|
|
|
|
(replace-match "")
|
|
|
|
|
(if (re-search-forward "\\\\~! ?" nil 0)
|
|
|
|
|
(replace-match ""))
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((looking-at "-: ?")
|
|
|
|
|
(replace-match "")
|
|
|
|
|
(ethio-use-colon-for-colon t)
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((looking-at "`: ?")
|
|
|
|
|
(replace-match "")
|
|
|
|
|
(ethio-use-colon-for-colon nil)
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((looking-at "`| ?")
|
|
|
|
|
(replace-match "")
|
|
|
|
|
(ethio-use-three-dot-question t)
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
((looking-at "\\? ?")
|
|
|
|
|
(replace-match "")
|
|
|
|
|
(ethio-use-three-dot-question nil)
|
|
|
|
|
lang)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Unknown tilde escape. Recover the deleted chars.
|
|
|
|
|
(t
|
|
|
|
|
(insert "\\~")
|
|
|
|
|
lang))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
(defun ethio-process-language-flag nil
|
|
|
|
|
"Process a language flag of the form \"~lang\" or \"~lang1~lang2\".
|
|
|
|
|
|
|
|
|
|
If looking at \"~lang1~lang2\", set `ethio-primary-language' and
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
`ethio-secondary-language' based on \"lang1\" and \"lang2\".
|
1997-04-05 02:40:11 +00:00
|
|
|
|
Then delete the language flag \"~lang1~lang2\" from the buffer.
|
|
|
|
|
Return value is the new primary language.
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If looking at \"~lang\", delete that language flag \"~lang\" from
|
|
|
|
|
the buffer and return that language. In this case
|
|
|
|
|
`ethio-primary-language' and `ethio-secondary-language' are left
|
|
|
|
|
unchanged.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
If an unsupported language flag is found, just return nil without
|
|
|
|
|
changing anything."
|
|
|
|
|
|
|
|
|
|
(let (lang1 lang2)
|
|
|
|
|
(cond
|
|
|
|
|
|
|
|
|
|
;; ~lang1~lang2
|
|
|
|
|
((and (looking-at
|
|
|
|
|
"~\\([a-z][a-z][a-z]?\\)~\\([a-z][a-z][a-z]?\\)[ \t\n\\]")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(setq lang1 (ethio-flag-to-language (match-string 1)))
|
|
|
|
|
(setq lang2 (ethio-flag-to-language (match-string 2))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(setq ethio-primary-language lang1
|
|
|
|
|
ethio-secondary-language lang2)
|
|
|
|
|
(delete-region (point) (match-end 2))
|
|
|
|
|
(if (= (following-char) 32)
|
|
|
|
|
(delete-char 1))
|
|
|
|
|
ethio-primary-language)
|
|
|
|
|
|
|
|
|
|
;; ~lang
|
|
|
|
|
((and (looking-at "~\\([a-z][a-z][a-z]?\\)[ \t\n\\]")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(setq lang1 (ethio-flag-to-language (match-string 1))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(delete-region (point) (match-end 1))
|
|
|
|
|
(if (= (following-char) 32)
|
|
|
|
|
(delete-char 1))
|
|
|
|
|
lang1)
|
|
|
|
|
|
|
|
|
|
;; otherwise
|
|
|
|
|
(t
|
|
|
|
|
nil))))
|
|
|
|
|
|
|
|
|
|
(defun ethio-flag-to-language (flag)
|
|
|
|
|
(cond
|
|
|
|
|
((or (string= flag "en") (string= flag "eng")) 'english)
|
|
|
|
|
((or (string= flag "ti") (string= flag "tir")) 'tigrigna)
|
|
|
|
|
((or (string= flag "am") (string= flag "amh")) 'amharic)
|
|
|
|
|
(t nil)))
|
2003-02-04 13:24:35 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-process-digits nil
|
1997-02-20 07:02:49 +00:00
|
|
|
|
"Convert Arabic digits to Ethiopic digits."
|
|
|
|
|
(let (ch z)
|
|
|
|
|
(while (and (>= (setq ch (following-char)) ?1)
|
|
|
|
|
(<= ch ?9))
|
|
|
|
|
(delete-char 1)
|
|
|
|
|
|
|
|
|
|
;; count up following zeros
|
|
|
|
|
(setq z 0)
|
|
|
|
|
(while (= (following-char) ?0)
|
|
|
|
|
(delete-char 1)
|
|
|
|
|
(setq z (1+ z)))
|
|
|
|
|
|
|
|
|
|
(cond
|
|
|
|
|
|
|
|
|
|
;; first digit is 10, 20, ..., or 90
|
|
|
|
|
((= (mod z 2) 1)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert (aref [?፲ ?፳ ?፴ ?፵ ?፶ ?፷ ?፸ ?፹ ?፺] (- ch ?1)))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(setq z (1- z)))
|
|
|
|
|
|
|
|
|
|
;; first digit is 2, 3, ..., or 9
|
|
|
|
|
((/= ch ?1)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert (aref [?፪ ?፫ ?፬ ?፭ ?፮ ?፯ ?፰ ?፱] (- ch ?2))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; single 1
|
|
|
|
|
((= z 0)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "፩")))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; 100
|
|
|
|
|
(if (= (mod z 4) 2)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "፻"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; 10000
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert-char ?፼ (/ z 4)))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(defun ethio-sera-to-fidel-marker (&optional force)
|
|
|
|
|
"Convert the regions surrounded by \"<sera>\" and \"</sera>\" from SERA to FIDEL.
|
|
|
|
|
Assume that each region begins with `ethio-primary-language'.
|
|
|
|
|
The markers \"<sera>\" and \"</sera>\" themselves are not deleted."
|
|
|
|
|
(interactive "P")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(if (and buffer-read-only
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(not force)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(not (y-or-n-p "Buffer is read-only. Force to convert? ")))
|
|
|
|
|
(error ""))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (search-forward "<sera>" nil t)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(ethio-sera-to-fidel-region
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(point)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if (search-forward "</sera>" nil t)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(match-beginning 0)
|
|
|
|
|
(point-max))
|
|
|
|
|
nil
|
|
|
|
|
'force))))
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; FIDEL to SERA
|
|
|
|
|
;;
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(defun ethio-language-to-flag (lang)
|
|
|
|
|
(cond
|
|
|
|
|
((eq lang 'english) "eng")
|
|
|
|
|
((eq lang 'tigrigna) "tir")
|
|
|
|
|
((eq lang 'amharic) "amh")
|
|
|
|
|
(t "")))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-fidel-to-sera-buffer (&optional secondary force)
|
|
|
|
|
"Replace all the FIDEL characters in the current buffer to the SERA format.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
The variable `ethio-primary-language' specifies the primary
|
|
|
|
|
language and `ethio-secondary-language' specifies the secondary.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 1st optional argument SECONDARY is non-nil, try to convert the
|
|
|
|
|
region so that it begins with the secondary language; otherwise with the
|
|
|
|
|
primary language.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 2nd optional argument FORCE is non-nil, convert even if the
|
1997-04-05 02:40:11 +00:00
|
|
|
|
buffer is read-only.
|
|
|
|
|
|
|
|
|
|
See also the descriptions of the variables
|
1997-09-01 07:19:05 +00:00
|
|
|
|
`ethio-use-colon-for-colon', `ethio-use-three-dot-question',
|
1997-04-05 02:40:11 +00:00
|
|
|
|
`ethio-quote-vowel-always' and `ethio-numeric-reduction'."
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(interactive "P")
|
|
|
|
|
(ethio-fidel-to-sera-region (point-min) (point-max) secondary force))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(defun ethio-fidel-to-sera-region (begin end &optional secondary force)
|
|
|
|
|
"Replace all the FIDEL characters in the region to the SERA format.
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
The variable `ethio-primary-language' specifies the primary
|
|
|
|
|
language and `ethio-secondary-language' specifies the secondary.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 3rd argument SECONDARY is given and non-nil, convert
|
|
|
|
|
the region so that it begins with the secondary language; otherwise with
|
|
|
|
|
the primary language.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
If the 4th argument FORCE is given and non-nil, convert even if the
|
1997-02-20 07:02:49 +00:00
|
|
|
|
buffer is read-only.
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
See also the descriptions of the variables
|
1997-09-01 07:19:05 +00:00
|
|
|
|
`ethio-use-colon-for-colon', `ethio-use-three-dot-question',
|
1997-04-05 02:40:11 +00:00
|
|
|
|
`ethio-quote-vowel-always' and `ethio-numeric-reduction'."
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(interactive "r\nP")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(if (and buffer-read-only
|
|
|
|
|
(not force)
|
|
|
|
|
(not (y-or-n-p "Buffer is read-only. Force to convert? ")))
|
|
|
|
|
(error ""))
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region begin end)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
|
(mode (if secondary
|
|
|
|
|
ethio-secondary-language
|
|
|
|
|
ethio-primary-language))
|
|
|
|
|
(flag (if (ethio-prefer-amharic-p) "\\~amh " "\\~tir "))
|
|
|
|
|
p ch)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(ethio-adjust-robin)
|
|
|
|
|
(unless (eq mode 'english)
|
|
|
|
|
(setq mode 'ethiopic))
|
|
|
|
|
(if (and (eq mode 'english) (looking-at "\\ce"))
|
|
|
|
|
(setq mode 'ethiopic))
|
|
|
|
|
(if (and (eq mode 'ethiopic) (looking-at "\\Ce"))
|
|
|
|
|
(setq mode 'english))
|
|
|
|
|
(insert (if (eq mode 'english) "\\~eng " flag))
|
|
|
|
|
|
|
|
|
|
(while (not (eobp))
|
|
|
|
|
|
|
|
|
|
(if (eq mode 'english)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(progn
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if (re-search-forward "\\(\\ce\\|\\\\\\)" nil 0)
|
|
|
|
|
(forward-char -1))
|
|
|
|
|
(cond
|
|
|
|
|
((eq (following-char) ?\\)
|
|
|
|
|
(insert "\\")
|
|
|
|
|
(forward-char 1))
|
|
|
|
|
((looking-at "\\ce")
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(insert flag)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(setq mode 'ethiopic))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; If we reach here, mode is ethiopic.
|
|
|
|
|
(setq p (point))
|
|
|
|
|
(if (re-search-forward "[a-z,.;:'`?\\<&]" nil 0)
|
|
|
|
|
(forward-char -1))
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region p (point))
|
|
|
|
|
(robin-invert-region (point-min) (point-max) "ethiopic-sera")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; ethio-quote-vowel-alwyas
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "'[eauio]" nil t)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(forward-char -2)
|
|
|
|
|
(setq ch (preceding-char))
|
|
|
|
|
(if (or (and (>= ch ?a) (<= ch ?z))
|
|
|
|
|
(and (>= ch ?A) (<= ch ?Z)))
|
|
|
|
|
(if (and (not ethio-quote-vowel-always)
|
|
|
|
|
(memq ch '(?e ?a ?u ?i ?o ?E ?A ?I)))
|
|
|
|
|
(delete-char 1))
|
|
|
|
|
(delete-char 1))))
|
|
|
|
|
|
|
|
|
|
;; ethio-W-sixth-always
|
|
|
|
|
(unless ethio-W-sixth-always
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (search-forward "W'" nil t)
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(insert "u")))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; ethio-numeric-reduction
|
|
|
|
|
(when (> ethio-numeric-reduction 0)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\([0-9]\\)`\\([0-9]\\)" nil t)
|
|
|
|
|
(replace-match "\\1\\2")
|
|
|
|
|
(forward-char -1)))
|
|
|
|
|
(when (= ethio-numeric-reduction 2)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\([0-9]\\)1\\(0+\\)" nil t)
|
|
|
|
|
(replace-match "\\1\\2")))
|
|
|
|
|
|
|
|
|
|
(goto-char (point-max)))
|
|
|
|
|
|
|
|
|
|
(cond
|
|
|
|
|
((looking-at "[a-z]")
|
|
|
|
|
(insert"\\~eng ")
|
|
|
|
|
(setq mode 'english))
|
|
|
|
|
((looking-at "[,.;:'`\\]+")
|
|
|
|
|
(insert "\\")
|
|
|
|
|
(goto-char (1+ (match-end 0))))
|
|
|
|
|
((= (following-char) ??)
|
|
|
|
|
(if ethio-use-three-dot-question
|
|
|
|
|
(insert "\\"))
|
|
|
|
|
(forward-char 1))
|
|
|
|
|
((looking-at "[<&]")
|
|
|
|
|
(if (or (and (boundp 'ethio-sera-being-called-by-w3)
|
|
|
|
|
ethio-sera-being-called-by-w3)
|
|
|
|
|
(and (boundp 'sera-being-called-by-w3)
|
|
|
|
|
sera-being-called-by-w3))
|
|
|
|
|
(search-forward (if (= (following-char) ?<) ">" "&") nil 0)
|
|
|
|
|
(forward-char 1)))))))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(defun ethio-fidel-to-sera-marker (&optional force)
|
|
|
|
|
"Convert the regions surrounded by \"<sera>\" and \"</sera>\" from FIDEL to SERA.
|
|
|
|
|
The markers \"<sera>\" and \"</sera>\" themselves are not deleted."
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(interactive "P")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(if (and buffer-read-only
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(not force)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(not (y-or-n-p "Buffer is read-only. Force to convert? ")))
|
|
|
|
|
(error ""))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (search-forward "<sera>" nil t)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(ethio-fidel-to-sera-region
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(point)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if (search-forward "</sera>" nil t)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(match-beginning 0)
|
|
|
|
|
(point-max))
|
|
|
|
|
nil
|
|
|
|
|
'force))))
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; vowel modification
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(defun ethio-modify-vowel nil
|
1997-02-20 07:02:49 +00:00
|
|
|
|
"Modify the vowel of the FIDEL that is under the cursor."
|
|
|
|
|
(interactive)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(ethio-adjust-robin)
|
|
|
|
|
(let ((consonant (ethio-get-consonant (following-char)))
|
|
|
|
|
vowel)
|
|
|
|
|
(if (null consonant)
|
|
|
|
|
(error "") ; not an Ethiopic char
|
|
|
|
|
(setq vowel (read-char "Modify vowel to: "))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(delete-char 1)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if (and (string= consonant "'") (= vowel ?W))
|
|
|
|
|
(insert ?ኧ)
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region (point) (point))
|
|
|
|
|
(insert consonant vowel)
|
|
|
|
|
(robin-convert-region (point-min) (point-max) "ethiopic-sera"))))))
|
|
|
|
|
|
|
|
|
|
(defun ethio-get-consonant (ch)
|
|
|
|
|
"Return the consonant part of CH's SERA spelling in ethiopic-sera."
|
|
|
|
|
(let ((sera (get-char-code-property ch 'ethiopic-sera)))
|
|
|
|
|
(cond
|
|
|
|
|
((null sera) nil)
|
|
|
|
|
((= ch ?ኧ) "'") ; Only this has two vowel letters.
|
|
|
|
|
(t (with-temp-buffer
|
|
|
|
|
(insert sera)
|
|
|
|
|
(if (memq (preceding-char) '(?e ?u ?i ?a ?o ?E ?I ?A ?'))
|
|
|
|
|
(delete-char -1))
|
|
|
|
|
(buffer-substring (point-min) (point-max)))))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; space replacement
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-replace-space (ch begin end)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
"Replace ASCII spaces with Ethiopic word separators in the region.
|
|
|
|
|
|
|
|
|
|
In the specified region, replace word separators surrounded by two
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
Ethiopic characters, depending on the first argument CH, which should
|
1997-04-05 02:40:11 +00:00
|
|
|
|
be 1, 2, or 3.
|
|
|
|
|
|
|
|
|
|
If CH = 1, word separator will be replaced with an ASCII space.
|
|
|
|
|
If CH = 2, with two ASCII spaces.
|
|
|
|
|
If CH = 3, with the Ethiopic colon-like word separator.
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
The 2nd and 3rd arguments BEGIN and END specify the region."
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(interactive "*cReplace spaces to: 1 (sg col), 2 (dbl col), 3 (Ethiopic)\nr")
|
|
|
|
|
(if (not (memq ch '(?1 ?2 ?3)))
|
|
|
|
|
(error ""))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region begin end)
|
|
|
|
|
|
|
|
|
|
(cond
|
|
|
|
|
((= ch ?1)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; an Ethiopic word separator --> an ASCII space
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (search-forward "፡" nil t)
|
|
|
|
|
(replace-match " "))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; two ASCII spaces between Ethiopic characters --> an ASCII space
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\(\\ce\\) \\(\\ce\\)" nil t)
|
|
|
|
|
(replace-match "\\1 \\2")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(forward-char -1)))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
((= ch ?2)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; An Ethiopic word separator --> two ASCII spaces
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (search-forward "፡" nil t)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(replace-match " "))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; An ASCII space between Ethiopic characters --> two ASCII spaces
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\(\\ce\\) \\(\\ce\\)" nil t)
|
|
|
|
|
(replace-match "\\1 \\2")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(forward-char -1)))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(t
|
|
|
|
|
;; One or two ASCII spaces between Ethiopic characters
|
|
|
|
|
;; --> An Ethiopic word separator
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\(\\ce\\) ?\\(\\ce\\)" nil t)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(replace-match "\\1፡\\2")
|
|
|
|
|
(forward-char -1))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; Three or more ASCII spaces between Ethiopic characters
|
|
|
|
|
;; --> An Ethiopic word separator + (N - 2) ASCII spaces
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "\\(\\ce\\) \\( +\\ce\\)" nil t)
|
|
|
|
|
(replace-match "\\1፡\\2")
|
|
|
|
|
(forward-char -1)))))))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;; special icons
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; This function is deprecated.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-input-special-character (arg)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
"This function is deprecated."
|
|
|
|
|
(interactive "*cInput number: 1.<2E><><EFBFBD><EFBFBD> 2.<2E><><EFBFBD><EFBFBD> 3.<2E><><EFBFBD><EFBFBD> 4.<2E><><EFBFBD><EFBFBD> 5.<2E><><EFBFBD><EFBFBD>")
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(cond
|
|
|
|
|
((= arg ?1)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
((= arg ?2)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
((= arg ?3)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
((= arg ?4)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
((= arg ?5)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(t
|
|
|
|
|
(error ""))))
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
;;
|
|
|
|
|
;; TeX support
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-fidel-to-tex-buffer nil
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
"Convert each fidel characters in the current buffer into a fidel-tex command."
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(interactive)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
|
comp ch)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Special treatment for geminated characters.
|
|
|
|
|
;; Geminated characters la", etc. change into \geminateG{\laG}, etc.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(goto-char (point-min))
|
2006-01-20 07:36:01 +00:00
|
|
|
|
(while (re-search-forward "፟\\|<7C><><EFBFBD><EFBFBD>" nil t)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(setq comp (find-composition (match-beginning 0)))
|
|
|
|
|
(if (null comp)
|
|
|
|
|
(replace-match "\\\\geminateG{}" t)
|
|
|
|
|
(decompose-region (car comp) (cadr comp))
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(insert "\\geminateG{")
|
|
|
|
|
(forward-char 1)
|
|
|
|
|
(insert "}")))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; Special Ethiopic punctuations.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "\\ce[»\\.\\?]\\|«\\ce" nil t)
|
|
|
|
|
(cond
|
|
|
|
|
((= (setq ch (preceding-char)) ?\»)
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(insert "\\rquoteG"))
|
|
|
|
|
((= ch ?.)
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(insert "\\dotG"))
|
|
|
|
|
((= ch ??)
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(insert "\\qmarkG"))
|
|
|
|
|
(t
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(delete-char -1)
|
|
|
|
|
(insert "\\lquoteG")
|
|
|
|
|
(forward-char 1))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
;; Ethiopic characters to TeX macros
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(robin-invert-region (point-min) (point-max) "ethiopic-tex")
|
|
|
|
|
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-tex-to-fidel-buffer nil
|
|
|
|
|
"Convert fidel-tex commands in the current buffer into fidel chars."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
|
(p) (ch))
|
|
|
|
|
|
|
|
|
|
;; TeX macros to Ethiopic characters
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(robin-convert-region (point-min) (point-max) "ethiopic-tex")
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
;; compose geminated characters
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "\\\\geminateG{\\(\\ce?\\)}" nil t)
|
2006-01-20 07:36:01 +00:00
|
|
|
|
(replace-match "\\1፟"))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;; remove redundant braces, if any
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "{\\(\\ce\\)}" nil t)
|
|
|
|
|
(replace-match "\\1"))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; Java support
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-fidel-to-java-buffer nil
|
|
|
|
|
"Convert Ethiopic characters into the Java escape sequences.
|
|
|
|
|
|
2006-06-09 22:44:55 +00:00
|
|
|
|
Each escape sequence is of the form \\uXXXX, where XXXX is the
|
1997-04-05 02:40:11 +00:00
|
|
|
|
character's codepoint (in hex) in Unicode.
|
|
|
|
|
|
|
|
|
|
If `ethio-java-save-lowercase' is non-nil, use [0-9a-f].
|
|
|
|
|
Otherwise, [0-9A-F]."
|
|
|
|
|
(let ((ucode))
|
|
|
|
|
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "[ሀ-፼]" nil t)
|
|
|
|
|
(setq ucode (preceding-char))
|
Replace Lisp calls to delete-backward-char by delete-char.
* bs.el, expand.el, ido.el, image-dired.el, lpr.el, pcomplete.el,
skeleton.el, term.el, time.el, wid-edit.el, woman.el,
calc/calc-graph.el, calc/calc-help.el, calc/calc-incom.el,
calc/calc.el, emacs-cl-extra.el, emacs-cl-loaddefs.el,
emulation/cua-rect.el, emulation/viper-ex.el, eshell/esh-test.el,
eshell/eshell.el, gnus/gnus-uu.el, gnus/nndoc.el, gnus/nnrss.el,
gnus/rfc2047.el, gnus/utf7.el, international/utf-7.el,
language/ethio-util.el, mh-e/mh-alias.el, mh-e/mh-search.el,
net/imap.el, net/rcirc.el, obsolete/complete.el, play/decipher.el,
progmodes/ada-mode.el, progmodes/cc-awk.el, progmodes/dcl-mode.el,
progmodes/ps-mode.el, progmodes/verilog-mode.el,
progmodes/vhdl-mode.el, textmodes/bibtex.el, textmodes/fill.el,
textmodes/reftex-auc.el, textmodes/rst.el, textmodes/sgml-mode.el,
textmodes/table.el, textmodes/texinfmt.el: Replace Lisp calls to
delete-backward-char by calls to delete-char.
2010-05-25 02:11:08 +00:00
|
|
|
|
(delete-char -1)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert
|
|
|
|
|
(format (if ethio-java-save-lowercase "\\u%4x" "\\u%4X")
|
|
|
|
|
ucode)))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-java-to-fidel-buffer nil
|
|
|
|
|
"Convert the Java escape sequences into corresponding Ethiopic characters."
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(let ((case-fold-search t)
|
|
|
|
|
(ucode))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "\\\\u\\([0-9a-f][0-9a-f][0-9a-f][0-9a-f]\\)" nil t)
|
|
|
|
|
(setq ucode (read (concat "#x" (match-string 1))))
|
|
|
|
|
(when (and (>= ucode #x1200) (<= ucode #x137f))
|
|
|
|
|
(replace-match (char-to-string ucode))))))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; file I/O hooks
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-find-file nil
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
"Transliterate file content into Ethiopic dependig on filename suffix."
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(cond
|
|
|
|
|
|
|
|
|
|
((string-match "\\.sera$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-sera-to-fidel-buffer nil 'force)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.html$" (buffer-file-name))
|
2004-04-16 12:51:06 +00:00
|
|
|
|
(let ((ethio-sera-being-called-by-w3 t))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-sera-to-fidel-marker 'force)
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "&[lr]aquo;" nil t)
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(if (= (char-after (1+ (match-beginning 0))) ?l)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(replace-match "«")
|
|
|
|
|
(replace-match "»")))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(set-buffer-modified-p nil))))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.tex$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-tex-to-fidel-buffer)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.java$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-java-to-fidel-buffer)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
(t
|
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun ethio-write-file nil
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
"Transliterate Ethiopic characters in ASCII depending on the file extension."
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(cond
|
|
|
|
|
|
|
|
|
|
((string-match "\\.sera$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-fidel-to-sera-buffer nil 'force)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(ethio-record-user-preference)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.html$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(let ((ethio-sera-being-called-by-w3 t))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(ethio-fidel-to-sera-marker 'force)
|
|
|
|
|
(goto-char (point-min))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(while (re-search-forward "[«»]" nil t)
|
|
|
|
|
(replace-match (if (= (preceding-char) ?«) "«" "»")))
|
|
|
|
|
(goto-char (point-min))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
(if (search-forward "<sera>" nil t)
|
|
|
|
|
(ethio-record-user-preference))
|
|
|
|
|
(set-buffer-modified-p nil))))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.tex$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-fidel-to-tex-buffer)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
((string-match "\\.java$" (buffer-file-name))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(ethio-fidel-to-java-buffer)
|
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
|
|
|
|
|
|
(t
|
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun ethio-record-user-preference nil
|
|
|
|
|
(insert (if ethio-use-colon-for-colon "\\~-: " "\\~`: ")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if ethio-use-three-dot-question "\\~`| " "\\~? ")))
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
1997-09-10 13:15:42 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Ethiopic word separator vs. ASCII space
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
(defvar ethio-prefer-ascii-space t)
|
|
|
|
|
(make-variable-buffer-local 'ethio-prefer-ascii-space)
|
|
|
|
|
|
|
|
|
|
(defun ethio-toggle-space nil
|
|
|
|
|
"Toggle ASCII space and Ethiopic separator for keyboard input."
|
|
|
|
|
(interactive)
|
|
|
|
|
(setq ethio-prefer-ascii-space
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(not ethio-prefer-ascii-space)))
|
1997-09-10 13:15:42 +00:00
|
|
|
|
|
|
|
|
|
(defun ethio-insert-space (arg)
|
|
|
|
|
"Insert ASCII spaces or Ethiopic word separators depending on context.
|
|
|
|
|
|
|
|
|
|
If the current word separator (indicated in mode-line) is the ASCII space,
|
|
|
|
|
insert an ASCII space. With ARG, insert that many ASCII spaces.
|
|
|
|
|
|
|
|
|
|
If the current word separator is the colon-like Ethiopic word
|
|
|
|
|
separator and the point is preceded by `an Ethiopic punctuation mark
|
|
|
|
|
followed by zero or more ASCII spaces', then insert also an ASCII
|
|
|
|
|
space. With ARG, insert that many ASCII spaces.
|
|
|
|
|
|
|
|
|
|
Otherwise, insert a colon-like Ethiopic word separator. With ARG, insert that
|
|
|
|
|
many Ethiopic word separators."
|
|
|
|
|
|
|
|
|
|
(interactive "*p")
|
|
|
|
|
(cond
|
|
|
|
|
(ethio-prefer-ascii-space
|
|
|
|
|
(insert-char 32 arg))
|
|
|
|
|
((save-excursion
|
|
|
|
|
(skip-chars-backward " ")
|
|
|
|
|
(memq (preceding-char)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
'(?፡ ?። ?፣ ?፤ ?፥ ?፦ ?፧ ?፨ ?<3F><EFBFBD><EFBFBD><EFBFBD> ?<3F><EFBFBD><EFBFBD><EFBFBD> ?<3F><EFBFBD><EFBFBD><EFBFBD> ?<3F><EFBFBD><EFBFBD><EFBFBD> ?<3F><EFBFBD><EFBFBD><EFBFBD>)))
|
1997-09-10 13:15:42 +00:00
|
|
|
|
(insert-char 32 arg))
|
|
|
|
|
(t
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert-char ?፡ arg))))
|
1997-09-10 13:15:42 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;;;###autoload
|
1997-09-10 13:15:42 +00:00
|
|
|
|
(defun ethio-insert-ethio-space (arg)
|
|
|
|
|
"Insert the Ethiopic word delimiter (the colon-like character).
|
|
|
|
|
With ARG, insert that many delimiters."
|
|
|
|
|
(interactive "*p")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(insert-char ?፡ arg))
|
1997-09-10 13:15:42 +00:00
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; Gemination
|
|
|
|
|
;;
|
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;;;###autoload
|
2007-12-25 10:53:18 +00:00
|
|
|
|
(defun ethio-composition-function (pos to font-object string)
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(setq pos (1- pos))
|
2006-01-20 07:36:01 +00:00
|
|
|
|
(let ((pattern "\\ce\\(፟\\|<7C><><EFBFBD><EFBFBD>\\)"))
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(if string
|
|
|
|
|
(if (and (>= pos 0)
|
|
|
|
|
(eq (string-match pattern string pos) pos))
|
|
|
|
|
(prog1 (match-end 0)
|
|
|
|
|
(compose-string string pos (match-end 0))))
|
|
|
|
|
(if (>= pos (point-min))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char pos)
|
|
|
|
|
(if (looking-at pattern)
|
|
|
|
|
(prog1 (match-end 0)
|
|
|
|
|
(compose-region pos (match-end 0)))))))))
|
|
|
|
|
|
|
|
|
|
;; This function is not used any more.
|
1997-09-10 13:15:42 +00:00
|
|
|
|
(defun ethio-gemination nil
|
|
|
|
|
"Compose the character before the point with the Ethiopic gemination mark.
|
2003-01-09 14:13:48 +00:00
|
|
|
|
If the character is already composed, decompose it and remove the gemination
|
1997-09-10 13:15:42 +00:00
|
|
|
|
mark."
|
|
|
|
|
(interactive "*")
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
(let ((ch (preceding-char)))
|
|
|
|
|
(cond
|
|
|
|
|
((and (= ch ?<3F><EFBFBD><EFBFBD><EFBFBD>) (find-composition (1- (point))))
|
|
|
|
|
(decompose-region (- (point) 2) (point)))
|
|
|
|
|
((and (>= ch #x1200) (<= ch #x137f))
|
|
|
|
|
(insert "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|
|
|
|
(compose-region (- (point) 2) (point)))
|
|
|
|
|
(t
|
|
|
|
|
(error "")))))
|
|
|
|
|
|
|
|
|
|
;;;
|
|
|
|
|
;;; Robin packages
|
|
|
|
|
;;;
|
|
|
|
|
|
|
|
|
|
(robin-define-package "ethiopic-sera"
|
|
|
|
|
"SERA transliteration system for Ethiopic."
|
|
|
|
|
|
|
|
|
|
("he" ?ሀ)
|
|
|
|
|
("hu" ?ሁ)
|
|
|
|
|
("hi" ?ሂ)
|
|
|
|
|
("ha" ?ሃ)
|
|
|
|
|
("hE" ?ሄ) ("hee" "ሄ")
|
|
|
|
|
("h" ?ህ)
|
|
|
|
|
("ho" ?ሆ)
|
|
|
|
|
|
|
|
|
|
("le" ?ለ) ("Le" "ለ")
|
|
|
|
|
("lu" ?ሉ) ("Lu" "ሉ")
|
|
|
|
|
("li" ?ሊ) ("Li" "ሊ")
|
|
|
|
|
("la" ?ላ) ("La" "ላ")
|
|
|
|
|
("lE" ?ሌ) ("LE" "ሌ") ("lee" "ሌ") ("Lee" "ሌ")
|
|
|
|
|
("l" ?ል) ("L" "ል")
|
|
|
|
|
("lo" ?ሎ) ("Lo" "ሎ")
|
|
|
|
|
("lWa" ?ሏ) ("LWa" "ሏ") ("lW" "ሏ") ("LW" "ሏ")
|
|
|
|
|
|
|
|
|
|
("He" ?ሐ)
|
|
|
|
|
("Hu" ?ሑ)
|
|
|
|
|
("Hi" ?ሒ)
|
|
|
|
|
("Ha" ?ሓ)
|
|
|
|
|
("HE" ?ሔ) ("Hee" "ሔ")
|
|
|
|
|
("H" ?ሕ)
|
|
|
|
|
("Ho" ?ሖ)
|
|
|
|
|
("HWa" ?ሗ) ("HW" "ሗ")
|
|
|
|
|
|
|
|
|
|
("me" ?መ) ("Me" "መ")
|
|
|
|
|
("mu" ?ሙ) ("Mu" "ሙ")
|
|
|
|
|
("mi" ?ሚ) ("Mi" "ሚ")
|
|
|
|
|
("ma" ?ማ) ("Ma" "ማ")
|
|
|
|
|
("mE" ?ሜ) ("ME" "ሜ") ("mee" "ሜ") ("Mee" "ሜ")
|
|
|
|
|
("m" ?ም) ("M" "ም")
|
|
|
|
|
("mo" ?ሞ) ("Mo" "ሞ")
|
|
|
|
|
("mWa" ?ሟ) ("MWa" "ሟ") ("mW" "ሟ") ("MW" "ሟ")
|
|
|
|
|
|
|
|
|
|
("`se" ?ሠ) ("sse" "ሠ") ("s2e" "ሠ")
|
|
|
|
|
("`su" ?ሡ) ("ssu" "ሡ") ("s2u" "ሡ")
|
|
|
|
|
("`si" ?ሢ) ("ssi" "ሢ") ("s2i" "ሢ")
|
|
|
|
|
("`sa" ?ሣ) ("ssa" "ሣ") ("s2a" "ሣ")
|
|
|
|
|
("`sE" ?ሤ) ("ssE" "ሤ") ("s2E" "ሤ")
|
|
|
|
|
("`see" "ሤ") ("ssee" "ሤ") ("s2ee" "ሤ")
|
|
|
|
|
("`s" ?ሥ) ("ss" "ሥ") ("s2" "ሥ")
|
|
|
|
|
("`so" ?ሦ) ("sso" "ሦ") ("s2o" "ሦ")
|
|
|
|
|
("`sWa" ?ሧ) ("ssWa" "ሧ") ("s2Wa" "ሧ")
|
|
|
|
|
("`sW" "ሧ") ("ssW" "ሧ") ("s2W" "ሧ")
|
|
|
|
|
|
|
|
|
|
("re" ?ረ) ("Re" "ረ")
|
|
|
|
|
("ru" ?ሩ) ("Ru" "ሩ")
|
|
|
|
|
("ri" ?ሪ) ("Ri" "ሪ")
|
|
|
|
|
("ra" ?ራ) ("Ra" "ራ")
|
|
|
|
|
("rE" ?ሬ) ("RE" "ሬ") ("ree" "ሬ") ("Ree" "ሬ")
|
|
|
|
|
("r" ?ር) ("R" "ር")
|
|
|
|
|
("ro" ?ሮ) ("Ro" "ሮ")
|
|
|
|
|
("rWa" ?ሯ) ("RWa" "ሯ") ("rW" "ሯ") ("RW" "ሯ")
|
|
|
|
|
|
|
|
|
|
("se" ?ሰ)
|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"ፈ")
|
|
|
|
|
("fu" ?ፉ) ("Fu" "ፉ")
|
|
|
|
|
("fi" ?ፊ) ("Fi" "ፊ")
|
|
|
|
|
("fa" ?ፋ) ("Fa" "ፋ")
|
|
|
|
|
("fE" ?ፌ) ("FE" "ፌ") ("fee" "ፌ") ("Fee" "ፌ")
|
|
|
|
|
("f" ?ፍ) ("F" "ፍ")
|
|
|
|
|
("fo" ?ፎ) ("Fo" "ፎ")
|
|
|
|
|
("fWa" ?ፏ) ("FWa" "ፏ") ("fW" "ፏ") ("FW" "ፏ")
|
|
|
|
|
|
|
|
|
|
("pe" ?ፐ)
|
|
|
|
|
("pu" ?ፑ)
|
|
|
|
|
("pi" ?ፒ)
|
|
|
|
|
("pa" ?ፓ)
|
|
|
|
|
("pE" ?ፔ) ("pee" "ፔ")
|
|
|
|
|
("p" ?ፕ)
|
|
|
|
|
("po" ?ፖ)
|
|
|
|
|
("pWa" ?ፗ) ("pW" "ፗ")
|
|
|
|
|
|
|
|
|
|
("rYa" ?ፘ) ("RYa" "ፘ") ("rY" "ፘ") ("RY" "ፘ")
|
|
|
|
|
("mYa" ?ፙ) ("MYa" "ፙ") ("mY" "ፙ") ("MY" "ፙ")
|
|
|
|
|
("fYa" ?ፚ) ("FYa" "ፚ") ("fY" "ፚ") ("FY" "ፚ")
|
|
|
|
|
|
|
|
|
|
(" : " ?፡) (":" "፡") ("`:" "፡")
|
|
|
|
|
("::" ?።) ("." "።")
|
|
|
|
|
("," ?፣)
|
|
|
|
|
(";" ?፤)
|
|
|
|
|
("-:" ?፥)
|
|
|
|
|
(":-" ?፦)
|
|
|
|
|
("`?" ?፧) ("??" "፧")
|
|
|
|
|
(":|:" ?፨) ("**" "፨")
|
|
|
|
|
|
|
|
|
|
;; Explicit syllable delimiter
|
|
|
|
|
("'" "")
|
|
|
|
|
|
|
|
|
|
;; Quick ASCII input
|
|
|
|
|
("''" "'")
|
|
|
|
|
(":::" ":")
|
|
|
|
|
(".." ".")
|
|
|
|
|
(",," ",")
|
|
|
|
|
(";;" ";")
|
|
|
|
|
|
|
|
|
|
("`1" ?፩)
|
|
|
|
|
("`2" ?፪)
|
|
|
|
|
("`3" ?፫)
|
|
|
|
|
("`4" ?፬)
|
|
|
|
|
("`5" ?፭)
|
|
|
|
|
("`6" ?፮)
|
|
|
|
|
("`7" ?፯)
|
|
|
|
|
("`8" ?፰)
|
|
|
|
|
("`9" ?፱)
|
|
|
|
|
("`10" ?፲)
|
|
|
|
|
("`20" ?፳)
|
|
|
|
|
("`30" ?፴)
|
|
|
|
|
("`40" ?፵)
|
|
|
|
|
("`50" ?፶)
|
|
|
|
|
("`60" ?፷)
|
|
|
|
|
("`70" ?፸)
|
|
|
|
|
("`80" ?፹)
|
|
|
|
|
("`90" ?፺)
|
|
|
|
|
("`100" ?፻)
|
|
|
|
|
("`10000" ?፼)
|
|
|
|
|
|
|
|
|
|
("`200" "፪፻")
|
|
|
|
|
("`300" "፫፻")
|
|
|
|
|
("`400" "፬፻")
|
|
|
|
|
("`500" "፭፻")
|
|
|
|
|
("`600" "፮፻")
|
|
|
|
|
("`700" "፯፻")
|
|
|
|
|
("`800" "፰፻")
|
|
|
|
|
("`900" "፱፻")
|
|
|
|
|
("`1000" "፲፻")
|
|
|
|
|
("`2000" "፳፻")
|
|
|
|
|
("`3000" "፴፻")
|
|
|
|
|
("`4000" "፵፻")
|
|
|
|
|
("`5000" "፶፻")
|
|
|
|
|
("`6000" "፷፻")
|
|
|
|
|
("`7000" "፸፻")
|
|
|
|
|
("`8000" "፹፻")
|
|
|
|
|
("`9000" "፺፻")
|
|
|
|
|
("`20000" "፪፼")
|
|
|
|
|
("`30000" "፫፼")
|
|
|
|
|
("`40000" "፬፼")
|
|
|
|
|
("`50000" "፭፼")
|
|
|
|
|
("`60000" "፮፼")
|
|
|
|
|
("`70000" "፯፼")
|
|
|
|
|
("`80000" "፰፼")
|
|
|
|
|
("`90000" "፱፼")
|
|
|
|
|
("`100000" "፲፼")
|
|
|
|
|
("`200000" "፳፼")
|
|
|
|
|
("`300000" "፴፼")
|
|
|
|
|
("`400000" "፵፼")
|
|
|
|
|
("`500000" "፶፼")
|
|
|
|
|
("`600000" "፷፼")
|
|
|
|
|
("`700000" "፸፼")
|
|
|
|
|
("`800000" "፹፼")
|
|
|
|
|
("`900000" "፺፼")
|
|
|
|
|
("`1000000" "፻፼")
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(register-input-method
|
|
|
|
|
"ethiopic-sera" "Ethiopic"
|
|
|
|
|
'robin-use-package "et" "An input method for Ethiopic.")
|
|
|
|
|
|
|
|
|
|
(robin-define-package "ethiopic-tex"
|
|
|
|
|
"TeX transliteration system for Ethiopic."
|
|
|
|
|
|
|
|
|
|
("\\heG" ?ሀ) ; U+1200 ..
|
|
|
|
|
("\\huG" ?ሁ)
|
|
|
|
|
("\\hiG" ?ሂ)
|
|
|
|
|
("\\haG" ?ሃ)
|
|
|
|
|
("\\hEG" ?ሄ)
|
|
|
|
|
("\\hG" ?ህ)
|
|
|
|
|
("\\hoG" ?ሆ)
|
|
|
|
|
;; reserved
|
|
|
|
|
("\\leG" ?ለ)
|
|
|
|
|
("\\luG" ?ሉ)
|
|
|
|
|
("\\liG" ?ሊ)
|
|
|
|
|
("\\laG" ?ላ)
|
|
|
|
|
("\\lEG" ?ሌ)
|
|
|
|
|
("\\lG" ?ል)
|
|
|
|
|
("\\loG" ?ሎ)
|
|
|
|
|
("\\lWaG" ?ሏ)
|
|
|
|
|
|
|
|
|
|
("\\HeG" ?ሐ) ; U+1210 ..
|
|
|
|
|
("\\HuG" ?ሑ)
|
|
|
|
|
("\\HiG" ?ሒ)
|
|
|
|
|
("\\HaG" ?ሓ)
|
|
|
|
|
("\\HEG" ?ሔ)
|
|
|
|
|
("\\HG" ?ሕ)
|
|
|
|
|
("\\HoG" ?ሖ)
|
|
|
|
|
("\\HWaG" ?ሗ)
|
|
|
|
|
("\\meG" ?መ)
|
|
|
|
|
("\\muG" ?ሙ)
|
|
|
|
|
("\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 ..
|
|
|
|
|
("\\spaceG" ?፡)
|
|
|
|
|
("\\periodG" ?።)
|
|
|
|
|
("\\commaG" ?፣)
|
|
|
|
|
("\\semicolonG" ?፤)
|
|
|
|
|
("\\colonG" ?፥)
|
|
|
|
|
("\\precolonG" ?፦)
|
|
|
|
|
("\\oldqmarkG" ?፧)
|
|
|
|
|
("\\pbreakG" ?፨)
|
|
|
|
|
("\\andG" ?፩)
|
|
|
|
|
("\\huletG" ?፪)
|
|
|
|
|
("\\sostG" ?፫)
|
|
|
|
|
("\\aratG" ?፬)
|
|
|
|
|
("\\amstG" ?፭)
|
|
|
|
|
("\\sadstG" ?፮)
|
|
|
|
|
("\\sabatG" ?፯)
|
|
|
|
|
|
|
|
|
|
("\\smntG" ?፰) ; U+1370 ..
|
|
|
|
|
("\\zeteNG" ?፱)
|
|
|
|
|
("\\asrG" ?፲)
|
|
|
|
|
("\\heyaG" ?፳)
|
|
|
|
|
("\\selasaG" ?፴)
|
|
|
|
|
("\\arbaG" ?፵)
|
|
|
|
|
("\\hemsaG" ?፶)
|
|
|
|
|
("\\slsaG" ?፷)
|
|
|
|
|
("\\sebaG" ?፸)
|
|
|
|
|
("\\semanyaG" ?፹)
|
|
|
|
|
("\\zeTanaG" ?፺)
|
|
|
|
|
("\\metoG" ?፻)
|
|
|
|
|
("\\asrxiG" ?፼)
|
|
|
|
|
;; reserved
|
|
|
|
|
;; reserved
|
|
|
|
|
;; reserved
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; private extension
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
("\\yWaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A00EF (was U+12EF)
|
|
|
|
|
|
|
|
|
|
("\\GWaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A011F (was U+131F)
|
|
|
|
|
|
|
|
|
|
("\\qqeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A0180 .. (was U+1380 ..)
|
|
|
|
|
("\\qquG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\qqiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\qqaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\qqEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\qqG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\qqoG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
("\\MWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\bWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\GWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\fWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\pWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
|
|
|
|
|
("\\kkeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A0190 .. (was U+1390 ..)
|
|
|
|
|
("\\kkuG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\kkiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\kkaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\kkEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\kkG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\kkoG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
("\\mWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\bWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\GWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\fWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\pWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
|
|
|
|
|
("\\XeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A01A0 .. (was U+13A0 ..)
|
|
|
|
|
("\\XuG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\XiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\XaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\XEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\XG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\XoG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
("\\mWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\bWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\GWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\fWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\pWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
|
|
|
|
|
("\\ggeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A01B0 .. (was U+13B0 ..)
|
|
|
|
|
("\\gguG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\ggiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\ggaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\ggEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\ggG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\ggoG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
("\\mWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\bWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\GWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\fWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\pWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
;; unused
|
|
|
|
|
|
|
|
|
|
("\\ornamentG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ; U+1A01C0 .. (was U+FDF0 ..)
|
|
|
|
|
("\\flandG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\iflandG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\africaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\iafricaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\wWeG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\wWiG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\wWaG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\wWEG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
("\\wWG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;; Gemination (<28><><EFBFBD><EFBFBD>) is handled in a special way.
|
|
|
|
|
("\\slaqG" ?<3F><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
|
|
|
|
|
;; Assign reverse conversion to Fidel chars.
|
|
|
|
|
;; Then override forward conversion with ASCII chars.
|
|
|
|
|
;; ASCII chars should not have reverse conversions.
|
|
|
|
|
("\\dotG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ("\\dotG" ".")
|
|
|
|
|
("\\lquoteG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ("\\lquoteG" "«")
|
|
|
|
|
("\\rquoteG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ("\\rquoteG" "»")
|
|
|
|
|
("\\qmarkG" ?<3F><EFBFBD><EFBFBD><EFBFBD>) ("\\qmarkG" "?")
|
2006-01-20 07:36:01 +00:00
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
;; New characters in Unicode 4.1.
|
|
|
|
|
;;
|
|
|
|
|
;; In forward conversion, these characters override the old private
|
|
|
|
|
;; extensions above. The old private extensions still keep their
|
|
|
|
|
;; reverse conversion.
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
("\\ornamentG" ?፠)
|
|
|
|
|
("\\yWaG" ?ዯ)
|
|
|
|
|
("\\GWaG" ?ጟ)
|
|
|
|
|
("\\MWeG" ?ᎀ)
|
|
|
|
|
("\\mWiG" ?ᎁ)
|
|
|
|
|
("\\mWEG" ?ᎂ)
|
|
|
|
|
("\\mWG" ?ᎃ)
|
|
|
|
|
("\\bWeG" ?ᎄ)
|
|
|
|
|
("\\bWiG" ?ᎅ)
|
|
|
|
|
("\\bWEG" ?ᎆ)
|
|
|
|
|
("\\bWG" ?ᎇ)
|
|
|
|
|
("\\fWeG" ?ᎈ)
|
|
|
|
|
("\\fWiG" ?ᎉ)
|
|
|
|
|
("\\fWEG" ?ᎊ)
|
|
|
|
|
("\\fWG" ?ᎋ)
|
|
|
|
|
("\\pWeG" ?ᎌ)
|
|
|
|
|
("\\pWiG" ?ᎍ)
|
|
|
|
|
("\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-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
;; The ethiopic-tex package is not used for keyboard input, therefore
|
|
|
|
|
;; not registered with the register-input-method function.
|
1997-04-05 02:40:11 +00:00
|
|
|
|
|
1997-06-18 13:00:03 +00:00
|
|
|
|
(provide 'ethio-util)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
Encoding changed to utf-8-emacs. All
transliteration functions rewritten to use robin.el.
(ethio-fidel-to-sera-map, ethio-fidel-to-tex-map)
(ethio-sera-to-fidel-table, ethio-implicit-period-conversion)
(ethio-prefer-ascii-punctuation): Deleted variables.
(ethio-char-to-ethiocode, ethio-convert-digit)
(ethio-ethiocode-to-char, ethio-fidel-to-sera-mail)
(ethio-fidel-to-sera-mail-or-marker, ethio-lone-consonant-p)
(ethio-sera-to-fidel-english, ethio-sera-to-fidel-ethio)
(ethio-sera-to-fidel-mail, ethio-sera-to-fidel-mail-or-marker)
(ethio-tilde-escape, ethio-toggle-punctuation): Deleted functions.
(ethio-adjust-robin, ethio-composition-function)
(ethio-get-consonant, ethio-prefer-amharic, ethio-process-digits)
(ethio-sera-to-fidel-region-ethio)
(ethio-sera-to-fidel-region-noethio)
(ethio-use-colon-for-colon, ethio-use-three-dot-question): New
functions.
2005-03-16 11:44:14 +00:00
|
|
|
|
;;; ethio-util.el ends here
|
|
|
|
|
|
2008-04-10 14:10:46 +00:00
|
|
|
|
;; arch-tag: c8feb3d6-39bf-4b0a-b6ef-26f03fbc8140
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;; ethio-util.el ends here
|