annotate lisp/iso/iso-cvt.el @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents ac2d302a0011
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
1 ;;; iso-cvt.el --- translate to ISO 8859-1 from/to net/TeX conventions
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2 ;; This file was formerly called gm-lingo.el.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4 ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Author: Michael Gschwind <mike@vlsivie.tuwien.ac.at>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; Keywords: tex, iso, latin, i18n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
9 ;; This file is part of XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful,
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
24 ;; Boston, MA 02111-1307, USA.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
25
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
26 ;;; Synched up with: FSF 19.34.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Commentary:
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
29
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;; This lisp code serves two purposes, both of which involve
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;; the translation of various conventions for representing European
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;; character sets to ISO 8859-1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
34 ;; Net support:
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
35 ;; Various conventions exist in Newsgroups on how to represent national
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
36 ;; characters. The functions provided here translate these net conventions
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
37 ;; to ISO.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
38 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
39 ;; Calling `iso-german' will turn the net convention for umlauts ("a etc.)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
40 ;; into ISO latin1 umlauts for easy reading.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
41 ;; 'iso-spanish' will turn net conventions for representing spanish
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
42 ;; to ISO latin1. (Note that accents are omitted in news posts most
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
43 ;; of the time, only enye is escaped.)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
45 ;; TeX support
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
46 ;; This mode installs hooks which change TeX files to ISO Latin-1 for
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
47 ;; simplified editing. When the TeX file is saved, ISO latin1 characters are
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
48 ;; translated back to escape sequences.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
49 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
50 ;; An alternative is a TeX style that handles 8 bit ISO files
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
51 ;; (available on ftp.vlsivie.tuwien.ac.at in /pub/8bit)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
52 ;; - but these files are difficult to transmit ... so while the net is
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
53 ;; still @ 7 bit this may be useful
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
55 ;;; TO DO:
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
56 ;; The net support should install hooks (like TeX support does)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
57 ;; which recognizes certain news groups and translates all articles from
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
58 ;; those groups.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
59 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
60 ;; Cover more cases for translation (There is an infinite number of ways to
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
61 ;; represent accented characters in TeX)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
63 ;;; SEE ALSO:
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
64 ;; If you are interested in questions related to using the ISO 8859-1
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
65 ;; characters set (configuring emacs, Unix, etc. to use ISO), then you
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
66 ;; can get the ISO 8859-1 FAQ via anonymous ftp from
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
67 ;; ftp.vlsivie.tuwien.ac.at in /pub/bit/FAQ-ISO-8859-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (provide 'iso-cvt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (defvar iso-spanish-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ("~n" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ("\([a-zA-Z]\)#" "\\1ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ("~N" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ("\\([-a-zA-Z\"`]\\)\"u" "\\1ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ("\\([-a-zA-Z\"`]\\)\"U" "\\1Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ("\\([-a-zA-Z]\\)'o" "\\1ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ("\\([-a-zA-Z]\\)'O" "\\Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ("\\([-a-zA-Z]\\)'e" "\\1é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ("\\([-a-zA-Z]\\)'E" "\\1É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ("\\([-a-zA-Z]\\)'a" "\\1á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ("\\([-a-zA-Z]\\)'A" "\\1A")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ("\\([-a-zA-Z]\\)'i" "\\1í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ("\\([-a-zA-Z]\\)'I" "\\1Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "Spanish translation table.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (defun iso-translate-conventions (trans-tab)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 "Use the translation table TRANS-TAB to translate the current buffer."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (let ((work-tab trans-tab)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (buffer-read-only nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (case-fold-search nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (while work-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (let ((trans-this (car work-tab)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (while (re-search-forward (car trans-this) nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (replace-match (car (cdr trans-this)) t nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (setq work-tab (cdr work-tab)))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (defun iso-spanish ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 "Translate net conventions for Spanish to ISO 8859-1."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (iso-translate-conventions iso-spanish-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (defvar iso-aggressive-german-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ("\"a" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ("\"A" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ("\"o" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ("\"O" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ("\"u" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ("\"U" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ("\"s" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ("\\\\3" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "German translation table.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 This table uses an aggressive translation approach and may erroneously
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 translate too much.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (defvar iso-conservative-german-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ("\\([-a-zA-Z\"`]\\)\"a" "\\1ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ("\\([-a-zA-Z\"`]\\)\"A" "\\1Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ("\\([-a-zA-Z\"`]\\)\"o" "\\1ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ("\\([-a-zA-Z\"`]\\)\"O" "\\1Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ("\\([-a-zA-Z\"`]\\)\"u" "\\1ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ("\\([-a-zA-Z\"`]\\)\"U" "\\1Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ("\\([-a-zA-Z\"`]\\)\"s" "\\1ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ("\\([-a-zA-Z\"`]\\)\\\\3" "\\1ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 "German translation table.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 This table uses a conservative translation approach and may translate too
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 little.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (defvar iso-german-trans-tab iso-aggressive-german-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 "Currently active translation table for German.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (defun iso-german ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 "Translate net conventions for German to ISO 8859-1."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (iso-translate-conventions iso-german-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (defvar iso-iso2tex-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ("ä" "{\\\\\"a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ("à" "{\\\\`a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ("á" "{\\\\'a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ("ã" "{\\\\~a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ("â" "{\\\\^a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ("ë" "{\\\\\"e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ("è" "{\\\\`e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ("é" "{\\\\'e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ("ê" "{\\\\^e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 ("ï" "{\\\\\"\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ("ì" "{\\\\`\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ("í" "{\\\\'\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ("î" "{\\\\^\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ("ö" "{\\\\\"o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ("ò" "{\\\\`o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ("ó" "{\\\\'o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ("õ" "{\\\\~o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ("ô" "{\\\\^o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ("ü" "{\\\\\"u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ("ù" "{\\\\`u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 ("ú" "{\\\\'u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ("û" "{\\\\^u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ("Ä" "{\\\\\"A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 ("À" "{\\\\`A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ("Á" "{\\\\'A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ("Ã" "{\\\\~A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 ("Â" "{\\\\^A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ("Ë" "{\\\\\"E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ("È" "{\\\\`E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 ("É" "{\\\\'E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ("Ê" "{\\\\^E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ("Ï" "{\\\\\"I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 ("Ì" "{\\\\`I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ("Í" "{\\\\'I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ("Î" "{\\\\^I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ("Ö" "{\\\\\"O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ("Ò" "{\\\\`O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ("Ó" "{\\\\'O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ("Õ" "{\\\\~O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ("Ô" "{\\\\^O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ("Ü" "{\\\\\"U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ("Ù" "{\\\\`U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ("Ú" "{\\\\'U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ("Û" "{\\\\^U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ("ñ" "{\\\\~n}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ("Ñ" "{\\\\~N}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ("ç" "{\\\\c c}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ("Ç" "{\\\\c C}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ("ß" "{\\\\ss}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ("\306" "{\\\\AE}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ("\346" "{\\\\ae}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 ("\305" "{\\\\AA}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ("\345" "{\\\\aa}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ("\251" "{\\\\copyright}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 ("£" "{\\\\pounds}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ("¶" "{\\\\P}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ("§" "{\\\\S}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ("¿" "{?`}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ("¡" "{!`}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 "Translation table for translating ISO 8859-1 characters to TeX sequences.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (defun iso-iso2tex ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 "Translate ISO 8859-1 characters to TeX sequences."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 (iso-translate-conventions iso-iso2tex-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (defvar iso-tex2iso-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 ("{\\\\\"a}" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ("{\\\\`a}" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ("{\\\\'a}" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ("{\\\\~a}" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ("{\\\\^a}" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ("{\\\\\"e}" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ("{\\\\`e}" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ("{\\\\'e}" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ("{\\\\^e}" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ("{\\\\\"\\\\i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ("{\\\\`\\\\i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ("{\\\\'\\\\i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ("{\\\\^\\\\i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ("{\\\\\"i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ("{\\\\`i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ("{\\\\'i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ("{\\\\^i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ("{\\\\\"o}" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ("{\\\\`o}" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ("{\\\\'o}" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ("{\\\\~o}" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ("{\\\\^o}" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ("{\\\\\"u}" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ("{\\\\`u}" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ("{\\\\'u}" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ("{\\\\^u}" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 ("{\\\\\"A}" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ("{\\\\`A}" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ("{\\\\'A}" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ("{\\\\~A}" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 ("{\\\\^A}" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ("{\\\\\"E}" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ("{\\\\`E}" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ("{\\\\'E}" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 ("{\\\\^E}" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ("{\\\\\"I}" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ("{\\\\`I}" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ("{\\\\'I}" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 ("{\\\\^I}" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 ("{\\\\\"O}" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 ("{\\\\`O}" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 ("{\\\\'O}" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ("{\\\\~O}" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 ("{\\\\^O}" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 ("{\\\\\"U}" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ("{\\\\`U}" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ("{\\\\'U}" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 ("{\\\\^U}" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 ("{\\\\~n}" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ("{\\\\~N}" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ("{\\\\c c}" "ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 ("{\\\\c C}" "Ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 ("\\\\\"a" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 ("\\\\`a" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 ("\\\\'a" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 ("\\\\~a" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ("\\\\^a" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ("\\\\\"e" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 ("\\\\`e" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 ("\\\\'e" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ("\\\\^e" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 ("\\\\\"\\\\i" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 ("\\\\`\\\\i" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 ("\\\\'\\\\i" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ("\\\\^\\\\i" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ("\\\\\"i" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 ("\\\\`i" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 ("\\\\'i" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ("\\\\^i" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ("\\\\\"o" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 ("\\\\`o" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 ("\\\\'o" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 ("\\\\~o" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 ("\\\\^o" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ("\\\\\"u" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 ("\\\\`u" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 ("\\\\'u" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 ("\\\\^u" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ("\\\\\"A" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 ("\\\\`A" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 ("\\\\'A" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ("\\\\~A" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ("\\\\^A" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ("\\\\\"E" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 ("\\\\`E" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 ("\\\\'E" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ("\\\\^E" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 ("\\\\\"I" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 ("\\\\`I" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ("\\\\'I" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ("\\\\^I" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ("\\\\\"O" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 ("\\\\`O" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ("\\\\'O" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ("\\\\~O" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 ("\\\\^O" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 ("\\\\\"U" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 ("\\\\`U" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ("\\\\'U" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 ("\\\\^U" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ("\\\\~n" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 ("\\\\~N" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ("\\\\\"{a}" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 ("\\\\`{a}" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ("\\\\'{a}" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 ("\\\\~{a}" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ("\\\\^{a}" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ("\\\\\"{e}" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ("\\\\`{e}" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ("\\\\'{e}" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ("\\\\^{e}" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ("\\\\\"{\\\\i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 ("\\\\`{\\\\i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 ("\\\\'{\\\\i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ("\\\\^{\\\\i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ("\\\\\"{i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ("\\\\`{i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ("\\\\'{i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ("\\\\^{i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 ("\\\\\"{o}" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ("\\\\`{o}" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 ("\\\\'{o}" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ("\\\\~{o}" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ("\\\\^{o}" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ("\\\\\"{u}" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ("\\\\`{u}" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ("\\\\'{u}" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ("\\\\^{u}" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ("\\\\\"{A}" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 ("\\\\`{A}" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ("\\\\'{A}" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ("\\\\~{A}" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ("\\\\^{A}" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ("\\\\\"{E}" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ("\\\\`{E}" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ("\\\\'{E}" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ("\\\\^{E}" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ("\\\\\"{I}" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 ("\\\\`{I}" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ("\\\\'{I}" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 ("\\\\^{I}" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 ("\\\\\"{O}" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ("\\\\`{O}" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ("\\\\'{O}" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ("\\\\~{O}" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 ("\\\\^{O}" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ("\\\\\"{U}" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 ("\\\\`{U}" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 ("\\\\'{U}" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ("\\\\^{U}" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ("\\\\~{n}" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ("\\\\~{N}" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 ("\\\\c{c}" "ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 ("\\\\c{C}" "Ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ("{\\\\ss}" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ("{\\\\AE}" "\306")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 ("{\\\\ae}" "\346")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 ("{\\\\AA}" "\305")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ("{\\\\aa}" "\345")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 ("{\\\\copyright}" "\251")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 ("\\\\copyright{}" "\251")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 ("{\\\\pounds}" "£" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ("{\\\\P}" "¶" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ("{\\\\S}" "§" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 ("\\\\pounds{}" "£" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ("\\\\P{}" "¶" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ("\\\\S{}" "§" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ("{\\?`}" "¿")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 ("{!`}" "¡")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ("\\?`" "¿")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ("!`" "¡")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 "Translation table for translating TeX sequences to ISO 8859-1 characters.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 This table is not exhaustive (and due to TeX's power can never be). It only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 contains commonly used sequences.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 (defun iso-tex2iso ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 "Translate TeX sequences to ISO 8859-1 characters."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 (iso-translate-conventions iso-tex2iso-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 (defvar iso-gtex2iso-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 ("{\\\\\"a}" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ("{\\\\`a}" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 ("{\\\\'a}" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ("{\\\\~a}" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 ("{\\\\^a}" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 ("{\\\\\"e}" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 ("{\\\\`e}" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 ("{\\\\'e}" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 ("{\\\\^e}" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 ("{\\\\\"\\\\i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 ("{\\\\`\\\\i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 ("{\\\\'\\\\i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 ("{\\\\^\\\\i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 ("{\\\\\"i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 ("{\\\\`i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 ("{\\\\'i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 ("{\\\\^i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ("{\\\\\"o}" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 ("{\\\\`o}" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ("{\\\\'o}" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ("{\\\\~o}" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 ("{\\\\^o}" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 ("{\\\\\"u}" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 ("{\\\\`u}" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ("{\\\\'u}" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 ("{\\\\^u}" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 ("{\\\\\"A}" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 ("{\\\\`A}" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ("{\\\\'A}" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 ("{\\\\~A}" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ("{\\\\^A}" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 ("{\\\\\"E}" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 ("{\\\\`E}" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 ("{\\\\'E}" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 ("{\\\\^E}" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 ("{\\\\\"I}" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ("{\\\\`I}" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ("{\\\\'I}" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ("{\\\\^I}" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 ("{\\\\\"O}" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ("{\\\\`O}" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 ("{\\\\'O}" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 ("{\\\\~O}" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 ("{\\\\^O}" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ("{\\\\\"U}" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 ("{\\\\`U}" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ("{\\\\'U}" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ("{\\\\^U}" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ("{\\\\~n}" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 ("{\\\\~N}" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ("{\\\\c c}" "ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ("{\\\\c C}" "Ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ("\\\\\"a" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ("\\\\`a" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 ("\\\\'a" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ("\\\\~a" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 ("\\\\^a" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ("\\\\\"e" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 ("\\\\`e" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ("\\\\'e" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ("\\\\^e" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 ("\\\\\"\\\\i" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 ("\\\\`\\\\i" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 ("\\\\'\\\\i" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ("\\\\^\\\\i" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 ("\\\\\"i" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 ("\\\\`i" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ("\\\\'i" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ("\\\\^i" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 ("\\\\\"o" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 ("\\\\`o" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 ("\\\\'o" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 ("\\\\~o" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 ("\\\\^o" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 ("\\\\\"u" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 ("\\\\`u" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ("\\\\'u" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 ("\\\\^u" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 ("\\\\\"A" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 ("\\\\`A" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 ("\\\\'A" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 ("\\\\~A" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 ("\\\\^A" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 ("\\\\\"E" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 ("\\\\`E" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 ("\\\\'E" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 ("\\\\^E" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 ("\\\\\"I" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ("\\\\`I" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 ("\\\\'I" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 ("\\\\^I" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ("\\\\\"O" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 ("\\\\`O" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 ("\\\\'O" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 ("\\\\~O" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 ("\\\\^O" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 ("\\\\\"U" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 ("\\\\`U" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ("\\\\'U" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 ("\\\\^U" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 ("\\\\~n" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 ("\\\\~N" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 ("\\\\\"{a}" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 ("\\\\`{a}" "à")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 ("\\\\'{a}" "á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 ("\\\\~{a}" "ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ("\\\\^{a}" "â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 ("\\\\\"{e}" "ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 ("\\\\`{e}" "è")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ("\\\\'{e}" "é")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ("\\\\^{e}" "ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 ("\\\\\"{\\\\i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 ("\\\\`{\\\\i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 ("\\\\'{\\\\i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 ("\\\\^{\\\\i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 ("\\\\\"{i}" "ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 ("\\\\`{i}" "ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 ("\\\\'{i}" "í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 ("\\\\^{i}" "î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 ("\\\\\"{o}" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 ("\\\\`{o}" "ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 ("\\\\'{o}" "ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 ("\\\\~{o}" "õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 ("\\\\^{o}" "ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 ("\\\\\"{u}" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 ("\\\\`{u}" "ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 ("\\\\'{u}" "ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 ("\\\\^{u}" "û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 ("\\\\\"{A}" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 ("\\\\`{A}" "À")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 ("\\\\'{A}" "Á")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ("\\\\~{A}" "Ã")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 ("\\\\^{A}" "Â")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 ("\\\\\"{E}" "Ë")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 ("\\\\`{E}" "È")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 ("\\\\'{E}" "É")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 ("\\\\^{E}" "Ê")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 ("\\\\\"{I}" "Ï")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 ("\\\\`{I}" "Ì")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 ("\\\\'{I}" "Í")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 ("\\\\^{I}" "Î")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 ("\\\\\"{O}" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 ("\\\\`{O}" "Ò")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 ("\\\\'{O}" "Ó")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 ("\\\\~{O}" "Õ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 ("\\\\^{O}" "Ô")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 ("\\\\\"{U}" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 ("\\\\`{U}" "Ù")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 ("\\\\'{U}" "Ú")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 ("\\\\^{U}" "Û")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 ("\\\\~{n}" "ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 ("\\\\~{N}" "Ñ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 ("\\\\c{c}" "ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 ("\\\\c{C}" "Ç")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ("{\\\\ss}" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 ("{\\\\AE}" "\306")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 ("{\\\\ae}" "\346")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ("{\\\\AA}" "\305")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 ("{\\\\aa}" "\345")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 ("{\\\\copyright}" "\251")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 ("\\\\copyright{}" "\251")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 ("{\\\\pounds}" "£" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 ("{\\\\P}" "¶" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 ("{\\\\S}" "§" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 ("\\\\pounds{}" "£" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 ("\\\\P{}" "¶" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 ("\\\\S{}" "§" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 ("?`" "¿")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 ("!`" "¡")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 ("{?`}" "¿")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 ("{!`}" "¡")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 ("\"a" "ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 ("\"A" "Ä")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ("\"o" "ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 ("\"O" "Ö")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 ("\"u" "ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 ("\"U" "Ü")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ("\"s" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 ("\\\\3" "ß")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 "Translation table for translating German TeX sequences to ISO 8859-1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 This table is not exhaustive (and due to TeX's power can never be). It only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 contains commonly used sequences.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 (defvar iso-iso2gtex-trans-tab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 ("ä" "\"a")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 ("à" "{\\\\`a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 ("á" "{\\\\'a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 ("ã" "{\\\\~a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 ("â" "{\\\\^a}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 ("ë" "{\\\\\"e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 ("è" "{\\\\`e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 ("é" "{\\\\'e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 ("ê" "{\\\\^e}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 ("ï" "{\\\\\"\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 ("ì" "{\\\\`\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 ("í" "{\\\\'\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 ("î" "{\\\\^\\\\i}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 ("ö" "\"o")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 ("ò" "{\\\\`o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 ("ó" "{\\\\'o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 ("õ" "{\\\\~o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 ("ô" "{\\\\^o}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 ("ü" "\"u")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 ("ù" "{\\\\`u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 ("ú" "{\\\\'u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 ("û" "{\\\\^u}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 ("Ä" "\"A")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 ("À" "{\\\\`A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 ("Á" "{\\\\'A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 ("Ã" "{\\\\~A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 ("Â" "{\\\\^A}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 ("Ë" "{\\\\\"E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 ("È" "{\\\\`E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 ("É" "{\\\\'E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 ("Ê" "{\\\\^E}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 ("Ï" "{\\\\\"I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 ("Ì" "{\\\\`I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 ("Í" "{\\\\'I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 ("Î" "{\\\\^I}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 ("Ö" "\"O")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 ("Ò" "{\\\\`O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 ("Ó" "{\\\\'O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 ("Õ" "{\\\\~O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 ("Ô" "{\\\\^O}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 ("Ü" "\"U")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 ("Ù" "{\\\\`U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 ("Ú" "{\\\\'U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 ("Û" "{\\\\^U}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ("ñ" "{\\\\~n}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 ("Ñ" "{\\\\~N}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 ("ç" "{\\\\c c}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 ("Ç" "{\\\\c C}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ("ß" "\"s")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 ("\306" "{\\\\AE}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 ("\346" "{\\\\ae}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 ("\305" "{\\\\AA}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 ("\345" "{\\\\aa}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 ("\251" "{\\\\copyright}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 ("£" "{\\\\pounds}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 ("¶" "{\\\\P}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 ("§" "{\\\\S}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 ("¿" "{?`}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 ("¡" "{!`}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 "Translation table for translating ISO 8859-1 characters to German TeX.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 (defun iso-gtex2iso ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 "Translate German TeX sequences to ISO 8859-1 characters."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 (iso-translate-conventions iso-gtex2iso-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 (defun iso-iso2gtex ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 "Translate ISO 8859-1 characters to German TeX sequences."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 (iso-translate-conventions iso-iso2gtex-trans-tab))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 (defun iso-german-tex-p ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 "Check if tex buffer is German LaTeX."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 (save-restriction
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 (widen)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 (re-search-forward "\\\\documentstyle\\[.*german.*\\]" nil t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 (defun iso-fix-iso2tex ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 "Turn ISO 8859-1 (aka. ISO Latin-1) buffer into TeX sequences.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 If German TeX is used, German TeX sequences are generated."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 (if (or (equal major-mode 'latex-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 (equal major-mode 'LaTeX-mode)) ; AucTeX wants this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 (if (iso-german-tex-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 (iso-iso2gtex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 (iso-iso2tex)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 (if (or (equal major-mode 'tex-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 (equal major-mode 'TeX-mode) ; AucTeX wants this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 (equal major-mode 'plain-tex-mode))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 (iso-iso2tex)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 (defun iso-fix-tex2iso ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 "Turn TeX sequences into ISO 8859-1 (aka. ISO Latin-1) characters.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
690 This function recognizes German TeX buffers."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 (if (or (equal major-mode 'latex-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 (equal major-mode 'Latex-mode)) ; AucTeX wants this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 (if (iso-german-tex-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 (iso-gtex2iso)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 (iso-tex2iso)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 (if (or (equal major-mode 'tex-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 (equal major-mode 'TeX-mode) ; AucTeX wants this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 (equal major-mode 'plain-tex-mode))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 (iso-tex2iso)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 (defun iso-cvt-ffh ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 "find-file-hook for iso-cvt.el."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 (iso-fix-tex2iso)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 (set-buffer-modified-p nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 (defun iso-cvt-wfh ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 "write file hook for iso-cvt.el."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 (iso-fix-iso2tex))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 (defun iso-cvt-ash ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 "after save hook for iso-cvt.el."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 (iso-fix-tex2iso)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 (set-buffer-modified-p nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 (add-hook 'find-file-hooks 'iso-cvt-ffh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 (add-hook 'write-file-hooks 'iso-cvt-wfh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 (add-hook 'after-save-hook 'iso-cvt-ash)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 ;;; iso-cvt.el ends here