Mercurial > emacs
comparison leim/quail/ethiopic.el @ 19650:2ef4b730776d
("ethiopic"): Doc-sring fixed. Change the arg
TRANSLATION-KEYS.
(quail-mode-map): Change binding for ethio-insert-ethio-space.
(quail-mode-hook): Check the current Quail package name.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 01 Sep 1997 07:21:00 +0000 |
parents | b3433731b84c |
children | 18197e422b9f |
comparison
equal
deleted
inserted
replaced
19649:b2bf3c43c86a | 19650:2ef4b730776d |
---|---|
131 '("$(3$O#U!.(B " | 131 '("$(3$O#U!.(B " |
132 (ethio-prefer-ascii-space "_" "$(3$h(B") | 132 (ethio-prefer-ascii-space "_" "$(3$h(B") |
133 (ethio-prefer-ascii-punctuation "." "$(3$i(B")) | 133 (ethio-prefer-ascii-punctuation "." "$(3$i(B")) |
134 t " KEYS AND FUNCTIONS | 134 t " KEYS AND FUNCTIONS |
135 | 135 |
136 [F2] or `M-x ethio-toggle-space' | 136 F2 or `M-x ethio-toggle-space' |
137 Toggles space characters for keyboard input. The current mode is | 137 Toggles space characters for keyboard input. The current mode is |
138 indicated in mode-line, whether by `_' (ASCII space) or `$(3$h(B' | 138 indicated in mode-line, whether by `_' (ASCII space) or `$(3$h(B' |
139 (Ethiopic colon-like word separator). Even in the `$(3$h(B' mode, an | 139 (Ethiopic colon-like word separator). Even in the `$(3$h(B' mode, an |
140 ASCII space is inserted if the point is preceded by `an Ethiopic | 140 ASCII space is inserted if the point is preceded by `an Ethiopic |
141 punctuation followed by zero or more ASCII spaces'. | 141 punctuation followed by zero or more ASCII spaces'. |
142 | 142 |
143 [F3] or `M-x ethio-toggle-punctuation' | 143 F3 or `M-x ethio-toggle-punctuation' |
144 Toggles ASCII punctuations and Ethiopic punctuations for keyboard input. | 144 Toggles ASCII punctuations and Ethiopic punctuations for keyboard input. |
145 The current mode is indicated by `.' (ASCII) or `$(3$i(B' (Ethiopic). | 145 The current mode is indicated by `.' (ASCII) or `$(3$i(B' (Ethiopic). |
146 | 146 |
147 C-^ or `M-x ethio-insert-ethio-space | 147 S-SPC or `M-x ethio-insert-ethio-space' |
148 Always insert an Ethiopic word separator `$(3$h(B'. With a prefix number, | 148 Always insert an Ethiopic word separator `$(3$h(B'. With a prefix number, |
149 insert that many word separators. | 149 insert that many word separators. |
150 | 150 |
151 C-' or ethio-gemination | 151 C-' or `M-x ethio-gemination' |
152 Compose the character before the point with the Ethiopic gemination mark. | 152 Compose the character before the point with the Ethiopic gemination mark. |
153 If the characater is already composed, decompose it and remove the | 153 If the characater is already composed, decompose it and remove the |
154 gemination mark." | 154 gemination mark." |
155 | 155 |
156 '(([f2] . ethio-toggle-space) | 156 '(([f2] . ethio-toggle-space) |
157 ([f3] . ethio-toggle-punctuation) | 157 ([f3] . ethio-toggle-punctuation) |
158 (" " . ethio-insert-space) | 158 (" " . ethio-insert-space) |
159 ([?\C-^] . ethio-insert-ethio-space) | 159 ([?\S- ] . ethio-insert-ethio-space) |
160 ([?\C-'] . ethio-gemination)) | 160 ([?\C-'] . ethio-gemination)) |
161 t t) | 161 t t) |
162 | 162 |
163 ;; These keys should work even if translation region is not active. | 163 ;; These keys should work even if translation region is not active. |
164 (define-key quail-mode-map [f2] 'ethio-toggle-space) | 164 (define-key quail-mode-map [f2] 'ethio-toggle-space) |
165 (define-key quail-mode-map [f3] 'ethio-toggle-punctuation) | 165 (define-key quail-mode-map [f3] 'ethio-toggle-punctuation) |
166 (define-key quail-mode-map " " 'ethio-insert-space) | 166 (define-key quail-mode-map " " 'ethio-insert-space) |
167 (define-key quail-mode-map [?\C-^] 'ethio-insert-ethio-space) | 167 (define-key quail-mode-map [?\S- ] 'ethio-insert-ethio-space) |
168 (define-key quail-mode-map [?\C-'] 'ethio-gemination) | 168 (define-key quail-mode-map [?\C-'] 'ethio-gemination) |
169 (define-key quail-mode-map [?\S- ] 'ethio-insert-ethio-space) | |
170 | 169 |
171 (quail-define-rules | 170 (quail-define-rules |
172 ("he" ?$(3!!(B) | 171 ("he" ?$(3!!(B) |
173 ("hu" ?$(3!"(B) | 172 ("hu" ?$(3!"(B) |
174 ("hi" ?$(3!#(B) | 173 ("hi" ?$(3!#(B) |
1122 ) | 1121 ) |
1123 | 1122 |
1124 ;; The translation of `a' depends on the language (Tigrigna or Amharic). | 1123 ;; The translation of `a' depends on the language (Tigrigna or Amharic). |
1125 (add-hook 'quail-mode-hook | 1124 (add-hook 'quail-mode-hook |
1126 (lambda nil | 1125 (lambda nil |
1127 (quail-defrule "a" | 1126 (if (string= (quail-name) "ethiopic") |
1128 (if (ethio-prefer-amharic-p) ?$(3"c(B ?$(3"f(B) | 1127 (quail-defrule "a" |
1129 "ethiopic"))) | 1128 (if (ethio-prefer-amharic-p) ?$(3"c(B ?$(3"f(B) |
1129 "ethiopic")))) | |
1130 | 1130 |
1131 ;;; quail/ethiopic.el ends here | 1131 ;;; quail/ethiopic.el ends here |