diff options
| author | Karl Heuer | 1996-01-24 23:27:59 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-24 23:27:59 +0000 |
| commit | 2023b1c2e72f61dc3bad3cf6a188c4e045e3f993 (patch) | |
| tree | df30fb246d94bf41ae93168c6a76e615b824fb9c | |
| parent | 3f866b532489c24e9de7a7477a35fa8b2332a59a (diff) | |
| download | emacs-2023b1c2e72f61dc3bad3cf6a188c4e045e3f993.tar.gz emacs-2023b1c2e72f61dc3bad3cf6a188c4e045e3f993.zip | |
(iso-accents-customize): Extract accent chars
properly from iso-accents-list.
(iso-languages): Rename "default" to "latin-1".
Add a new element "latin-2" copied from iso02-acc.el.
| -rw-r--r-- | lisp/international/iso-acc.el | 101 |
1 files changed, 96 insertions, 5 deletions
diff --git a/lisp/international/iso-acc.el b/lisp/international/iso-acc.el index 9a3b2e7e704..8e3f6f58da0 100644 --- a/lisp/international/iso-acc.el +++ b/lisp/international/iso-acc.el | |||
| @@ -94,7 +94,98 @@ | |||
| 94 | ((?^ ? ) ?^) ((?\" ?U) ?\334) ((?\" ?u) ?\374) ((?\" ? ) ?\") | 94 | ((?^ ? ) ?^) ((?\" ?U) ?\334) ((?\" ?u) ?\374) ((?\" ? ) ?\") |
| 95 | ((?\~ ?A) ?\303) ((?\~ ?O) ?\325) ((?\~ ?a) ?\343) ((?\~ ?o) ?\365) | 95 | ((?\~ ?A) ?\303) ((?\~ ?O) ?\325) ((?\~ ?a) ?\343) ((?\~ ?o) ?\365) |
| 96 | ((?\~ ?\ ) ?\~))) | 96 | ((?\~ ?\ ) ?\~))) |
| 97 | ("default" | 97 | ("latin-2" |
| 98 | (?' ?` ?^ ?\" ?~) | ||
| 99 | (((?' ?A) ?\301) | ||
| 100 | ((?' ?C) ?\306) | ||
| 101 | ((?' ?D) ?\320) | ||
| 102 | ((?' ?E) ?\311) | ||
| 103 | ((?' ?I) ?\315) | ||
| 104 | ((?' ?L) ?\305) | ||
| 105 | ((?' ?N) ?\321) | ||
| 106 | ((?' ?O) ?\323) | ||
| 107 | ((?' ?R) ?\300) | ||
| 108 | ((?' ?S) ?\246) | ||
| 109 | ((?' ?U) ?\332) | ||
| 110 | ((?' ?Y) ?\335) | ||
| 111 | ((?' ?Z) ?\254) | ||
| 112 | ((?' ?a) ?\341) | ||
| 113 | ((?' ?c) ?\346) | ||
| 114 | ((?' ?d) ?\360) | ||
| 115 | ((?' ?e) ?\351) | ||
| 116 | ((?' ?i) ?\355) | ||
| 117 | ((?' ?l) ?\345) | ||
| 118 | ((?' ?n) ?\361) | ||
| 119 | ((?' ?o) ?\363) | ||
| 120 | ((?' ?r) ?\340) | ||
| 121 | ((?' ?s) ?\266) | ||
| 122 | ((?' ?u) ?\372) | ||
| 123 | ((?' ?y) ?\375) | ||
| 124 | ((?' ?z) ?\274) | ||
| 125 | ((?' ?') ?\264) | ||
| 126 | ((?' ? ) ?') | ||
| 127 | ((?` ?A) ?\241) | ||
| 128 | ((?` ?C) ?\307) | ||
| 129 | ((?` ?E) ?\312) | ||
| 130 | ((?` ?L) ?\243) | ||
| 131 | ((?` ?S) ?\252) | ||
| 132 | ((?` ?T) ?\336) | ||
| 133 | ((?` ?Z) ?\257) | ||
| 134 | ((?` ?a) ?\261) | ||
| 135 | ((?` ?l) ?\263) | ||
| 136 | ((?` ?c) ?\347) | ||
| 137 | ((?` ?e) ?\352) | ||
| 138 | ((?` ?s) ?\272) | ||
| 139 | ((?` ?t) ?\376) | ||
| 140 | ((?` ?z) ?\277) | ||
| 141 | ((?` ? ) ?`) | ||
| 142 | ((?` ?`) ?\252) | ||
| 143 | ((?` ?.) ?\377) | ||
| 144 | ((?^ ?A) ?\302) | ||
| 145 | ((?^ ?O) ?\324) | ||
| 146 | ((?^ ?a) ?\342) | ||
| 147 | ((?^ ?o) ?\364) | ||
| 148 | ((?^ ? ) ?^) | ||
| 149 | ((?^ ?^) ?^) ; no special code? | ||
| 150 | ((?\" ?A) ?\304) | ||
| 151 | ((?\" ?E) ?\313) | ||
| 152 | ((?\" ?O) ?\326) | ||
| 153 | ((?\" ?U) ?\334) | ||
| 154 | ((?\" ?a) ?\344) | ||
| 155 | ((?\" ?e) ?\353) | ||
| 156 | ((?\" ?o) ?\366) | ||
| 157 | ((?\" ?s) ?\337) | ||
| 158 | ((?\" ?u) ?\374) | ||
| 159 | ((?\" ? ) ?\") | ||
| 160 | ((?\" ?\") ?\250) | ||
| 161 | ((?\~ ?A) ?\303) | ||
| 162 | ((?\~ ?C) ?\310) | ||
| 163 | ((?\~ ?D) ?\317) | ||
| 164 | ((?\~ ?L) ?\245) | ||
| 165 | ((?\~ ?N) ?\322) | ||
| 166 | ((?\~ ?O) ?\325) | ||
| 167 | ((?\~ ?R) ?\330) | ||
| 168 | ((?\~ ?S) ?\251) | ||
| 169 | ((?\~ ?T) ?\253) | ||
| 170 | ((?\~ ?U) ?\333) | ||
| 171 | ((?\~ ?Z) ?\256) | ||
| 172 | ((?\~ ?a) ?\323) | ||
| 173 | ((?\~ ?c) ?\350) | ||
| 174 | ((?\~ ?d) ?\357) | ||
| 175 | ((?\~ ?l) ?\265) | ||
| 176 | ((?\~ ?n) ?\362) | ||
| 177 | ((?\~ ?o) ?\365) | ||
| 178 | ((?\~ ?r) ?\370) | ||
| 179 | ((?\~ ?s) ?\271) | ||
| 180 | ((?\~ ?t) ?\273) | ||
| 181 | ((?\~ ?u) ?\373) | ||
| 182 | ((?\~ ?z) ?\276) | ||
| 183 | ((?\~ ?\ ) ?\~) | ||
| 184 | ((?\~ ?v) ?\242);; v accent | ||
| 185 | ((?\~ ?\~) ?\242);; v accent | ||
| 186 | ((?\~ ?\.) ?\270);; cedilla accent | ||
| 187 | )) | ||
| 188 | ("latin-1" | ||
| 98 | (?' ?` ?^ ?\" ?~ ?/) | 189 | (?' ?` ?^ ?\" ?~ ?/) |
| 99 | (((?' ?A) ?\301) ((?' ?E) ?\311) ((?' ?I) ?\315) ((?' ?O) ?\323) | 190 | (((?' ?A) ?\301) ((?' ?E) ?\311) ((?' ?I) ?\315) ((?' ?O) ?\323) |
| 100 | ((?' ?U) ?\332) ((?' ?Y) ?\335) ((?' ?a) ?\341) ((?' ?e) ?\351) | 191 | ((?' ?U) ?\332) ((?' ?Y) ?\335) ((?' ?a) ?\341) ((?' ?e) ?\351) |
| @@ -115,7 +206,6 @@ | |||
| 115 | ((?\~ ?>) ?\273) ((?\~ ?<) ?\253) ((?\~ ?\ ) ?\~) ((?\~ ?\~) ?\270) | 206 | ((?\~ ?>) ?\273) ((?\~ ?<) ?\253) ((?\~ ?\ ) ?\~) ((?\~ ?\~) ?\270) |
| 116 | ((?\/ ?A) ?\305) ((?\/ ?E) ?\306) ((?\/ ?O) ?\330) ((?\/ ?a) ?\345) | 207 | ((?\/ ?A) ?\305) ((?\/ ?E) ?\306) ((?\/ ?O) ?\330) ((?\/ ?a) ?\345) |
| 117 | ((?\/ ?e) ?\346) ((?\/ ?o) ?\370) ((?\/ ?\ ) ?\/) ((?\/ ?\/) ?\260)))) | 208 | ((?\/ ?e) ?\346) ((?\/ ?o) ?\370) ((?\/ ?\ ) ?\/) ((?\/ ?\/) ?\260)))) |
| 118 | |||
| 119 | "List of language-specific customizations for the ISO Accents mode. | 209 | "List of language-specific customizations for the ISO Accents mode. |
| 120 | 210 | ||
| 121 | Each element of the list is of the form (LANGUAGE PREFIXES LIST). | 211 | Each element of the list is of the form (LANGUAGE PREFIXES LIST). |
| @@ -258,8 +348,9 @@ It selects the customization based on the specifications in the | |||
| 258 | ;; in this language, and set up translation for them. | 348 | ;; in this language, and set up translation for them. |
| 259 | (setq tail iso-accents-list) | 349 | (setq tail iso-accents-list) |
| 260 | (while tail | 350 | (while tail |
| 261 | (or (memq (car (car tail)) all-accents) | 351 | (let ((acc (car (car (car tail))))) |
| 262 | (setq all-accents (cons (car (car tail)) all-accents))) | 352 | (or (memq acc all-accents) |
| 353 | (setq all-accents (cons acc all-accents)))) | ||
| 263 | (setq tail (cdr tail))) | 354 | (setq tail (cdr tail))) |
| 264 | (setq tail all-accents) | 355 | (setq tail all-accents) |
| 265 | (while tail | 356 | (while tail |
| @@ -338,6 +429,6 @@ Noninteractively, this operates on text from START to END." | |||
| 338 | (forward-char 1))))))) | 429 | (forward-char 1))))))) |
| 339 | 430 | ||
| 340 | ;; Set up the default settings. | 431 | ;; Set up the default settings. |
| 341 | (iso-accents-customize "default") | 432 | (iso-accents-customize "latin-1") |
| 342 | 433 | ||
| 343 | ;;; iso-acc.el ends here | 434 | ;;; iso-acc.el ends here |