Commit | Line | Data |
---|---|---|
3cb76f89 | 1 | ;;; iso-cvt.el -- translate to ISO 8859-1 from/to net/TeX conventions |
be010748 RS |
2 | ;; This file was formerly called gm-lingo.el. |
3 | ||
4 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. | |
d9375d2d RS |
5 | |
6 | ;; Author: Michael Gschwind <mike@vlsivie.tuwien.ac.at> | |
7 | ;; Keywords: tex, iso, latin, i18n | |
8 | ||
9 | ;; This file is part of GNU Emacs. | |
10 | ||
11 | ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 | ;; it under the terms of the GNU General Public License as published by | |
13 | ;; the Free Software Foundation; either version 2, or (at your option) | |
14 | ;; any later version. | |
15 | ||
16 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | ;; GNU General Public License for more details. | |
20 | ||
21 | ;; You should have received a copy of the GNU General Public License | |
b578f267 EN |
22 | ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 | ;; Boston, MA 02111-1307, USA. | |
d9375d2d RS |
25 | |
26 | ;;; Commentary: | |
b578f267 | 27 | |
ab774801 | 28 | ;; This lisp code serves two purposes, both of which involve |
8c820820 RS |
29 | ;; the translation of various conventions for representing European |
30 | ;; character sets to ISO 8859-1. | |
d9375d2d | 31 | |
b578f267 EN |
32 | ;; Net support: |
33 | ;; Various conventions exist in Newsgroups on how to represent national | |
34 | ;; characters. The functions provided here translate these net conventions | |
35 | ;; to ISO. | |
36 | ;; | |
37 | ;; Calling `iso-german' will turn the net convention for umlauts ("a etc.) | |
38 | ;; into ISO latin1 umlauts for easy reading. | |
39 | ;; 'iso-spanish' will turn net conventions for representing spanish | |
40 | ;; to ISO latin1. (Note that accents are omitted in news posts most | |
41 | ;; of the time, only enye is escaped.) | |
42 | ||
43 | ;; TeX support | |
44 | ;; This mode installs hooks which change TeX files to ISO Latin-1 for | |
45 | ;; simplified editing. When the TeX file is saved, ISO latin1 characters are | |
46 | ;; translated back to escape sequences. | |
47 | ;; | |
48 | ;; An alternative is a TeX style that handles 8 bit ISO files | |
49 | ;; (available on ftp.vlsivie.tuwien.ac.at in /pub/8bit) | |
50 | ;; - but these files are difficult to transmit ... so while the net is | |
51 | ;; still @ 7 bit this may be useful | |
52 | ||
53 | ;;; TO DO: | |
54 | ;; The net support should install hooks (like TeX support does) | |
55 | ;; which recognizes certain news groups and translates all articles from | |
56 | ;; those groups. | |
57 | ;; | |
58 | ;; Cover more cases for translation (There is an infinite number of ways to | |
59 | ;; represent accented characters in TeX) | |
60 | ||
61 | ;;; SEE ALSO: | |
62 | ;; If you are interested in questions related to using the ISO 8859-1 | |
63 | ;; characters set (configuring emacs, Unix, etc. to use ISO), then you | |
64 | ;; can get the ISO 8859-1 FAQ via anonymous ftp from | |
65 | ;; ftp.vlsivie.tuwien.ac.at in /pub/bit/FAQ-ISO-8859-1 | |
d9375d2d RS |
66 | |
67 | ;;; Code: | |
68 | ||
69 | (provide 'iso-cvt) | |
70 | ||
71 | (defvar iso-spanish-trans-tab | |
72 | '( | |
73 |