annotate lisp/international/latin1-disp.el @ 36539:9b4d3e18dcf7

(mm-mime-mule-charset-alist): Fix utf-8 case.
author Dave Love <fx@gnu.org>
date Mon, 05 Mar 2001 13:36:43 +0000
parents 8bc87faaa40f
children 1d714221177a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
1 ;;; latin1-disp.el --- display tables for other ISO 8859 on Latin-1 terminals -*- coding: emacs-mule -*-
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
2
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 2000 Free Software Foundation, Inc.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
4
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
5 ;; Author: Dave Love <fx@gnu.org>
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
6 ;; Keywords: i18n
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
7
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
9
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
13 ;; any later version.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
14
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
19
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
24
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
25 ;;; Commentary:
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
26
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
27 ;; This package sets up display of ISO 8859-n for n>1 by substituting
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
28 ;; Latin-1 characters and sequences of them for characters which can't
36016
bd020356c644 Fix a typo in a comment.
Eli Zaretskii <eliz@gnu.org>
parents: 35365
diff changeset
29 ;; be displayed, either because we're on a tty or because we don't
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
30 ;; have the relevant window system fonts available. For instance,
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
31 ;; Latin-9 is very similar to Latin-1, so we can display most Latin-9
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
32 ;; characters using the Latin-1 characters at the same code point and
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
33 ;; fall back on more-or-less mnemonic ASCII sequences for the rest.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
34
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
35 ;; For the Latin charsets the ASCII sequences are mostly consistent
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
36 ;; with the Quail prefix input sequences. Latin-4 uses the Quail
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
37 ;; postfix sequences since a prefix method isn't defined for Latin-4.
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
38
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
39 ;; [A different approach is taken in the DOS display tables in
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
40 ;; term/internal.el, and the relevant ASCII sequences from there are
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
41 ;; available as an alternative; see `latin1-display-mnemonic'. Only
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
42 ;; these sequences are used for Cyrillic, Greek and Hebrew.]
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
43
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
44 ;; If you don't even have Latin-1, see iso-ascii.el and use the
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
45 ;; complete tables from internal.el. The ASCII sequences used here
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
46 ;; are mostly in the same style as iso-ascii.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
47
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
48 ;;; Code:
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
49
35365
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
50 ;; Ensure `standard-display-table' is set up:
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
51 (require 'disp-table)
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
52
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
53 (defconst latin1-display-sets '(latin-2 latin-3 latin-4 latin-5 latin-8
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
54 latin-9 cyrillic greek hebrew)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
55 "The ISO8859 character sets with defined Latin-1 display sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
56 These are the nicknames for the sets and correspond to Emacs language
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
57 environments.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
58
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
59 (defgroup latin1-display ()
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
60 "Set up display tables for ISO8859 characters using Latin-1."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
61 :version "21.1"
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
62 :link '(emacs-commentary-link "latin1-disp")
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
63 :group 'i18n)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
64
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
65 (defcustom latin1-display-format "{%s}"
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
66 "A format string used to display the ASCII sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
67 The default encloses the sequence in braces, but you could just use
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
68 \"%s\" to avoid the braces."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
69 :group 'latin1-display
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
70 :type 'string)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
71
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
72 ;;;###autoload
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
73 (defcustom latin1-display nil
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
74 "Set up Latin-1/ASCII display for ISO8859 character sets.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
75 This is done for each character set in the list `latin1-display-sets',
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
76 if no font is available to display it. Characters are displayed using
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
77 the corresponding Latin-1 characters where they match. Otherwise
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
78 ASCII sequences are used, mostly following the Latin prefix input
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
79 methods. Some different ASCII sequences are used if
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
80 `latin1-display-mnemonic' is non-nil.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
81
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
82 Setting this variable directly does not take effect;
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
83 use either M-x customize of the function `latin1-display'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
84 :group 'latin1-display
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
85 :type 'boolean
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
86 :require 'latin1-disp
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
87 :initialize 'custom-initialize-default
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
88 :set (lambda (symbol value)
35365
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
89 (set-default symbol value)
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
90 (mapc (if value
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
91 #'latin1-display-setup
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
92 #'latin1-display-reset)
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
93 latin1-display-sets)
84a59a4308f6 Require disp-table.
Dave Love <fx@gnu.org>
parents: 33412
diff changeset
94 (redraw-display)))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
95
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
96 ;;;###autoload
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
97 (defun latin1-display (&rest sets)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
98 "Set up Latin-1/ASCII display for the arguments character SETS.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
99 See option `latin1-display' for the method. The members of the list
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
100 must be in `latin1-display-sets'. With no arguments, reset the
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
101 display for all of `latin1-display-sets'. See also `latin1-display-setup'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
102 (if sets
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
103 (progn (mapc #'latin1-display-setup sets)
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
104 (setq latin1-display t))
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
105 (mapc #'latin1-display-reset latin1-display-sets)
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
106 (setq latin1-display nil))
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
107 (redraw-display))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
108
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
109 (defcustom latin1-display-mnemonic nil
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
110 "Non-nil means to display potentially more mnemonic sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
111 These are taken from the tables in `internal.el' rather than the Quail
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
112 input sequences."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
113 :type 'boolean
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
114 :group 'latin1-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
115
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
116 (defun latin1-display-char (char display &optional alt-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
117 "Make an entry in `standard-display-table' for CHAR using string DISPLAY.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
118 If ALT-DISPLAY is provided, use that instead if
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
119 `latin1-display-mnemonic' is non-nil. The actual string displayed is
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
120 formatted using `latin1-display-format'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
121 (if (and (stringp alt-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
122 latin1-display-mnemonic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
123 (setq display alt-display))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
124 (if (stringp display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
125 (standard-display-ascii char (format latin1-display-format display))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
126 (aset standard-display-table char display)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
127
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
128 (defun latin1-display-identities (charset)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
129 "Display each character in CHARSET as the corresponding Latin-1 character.
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
130 CHARSET is a symbol which is the nickname of a language environment
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
131 using an ISO8859 character set."
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
132 (if (eq charset 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
133 (setq charset 'cyrillic-iso))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
134 (let ((i 32)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
135 (set (car (remq 'ascii (get-language-info charset 'charset)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
136 (while (<= i 127)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
137 (aset standard-display-table
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
138 (make-char set i)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
139 (vector (make-char 'latin-iso8859-1 i)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
140 (setq i (1+ i)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
141
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
142 (defun latin1-display-reset (language)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
143 "Set up the default display for each character of LANGUAGE's charset.
36049
385e4217573c Doc fixes. Change coding to
Dave Love <fx@gnu.org>
parents: 36016
diff changeset
144 LANGUAGE is a symbol naming a language environment using an ISO8859
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
145 character set."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
146 (if (eq language 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
147 (setq language 'cyrillic-iso))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
148 (let ((charset (car (remq 'ascii (get-language-info language
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
149 'charset)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
150 (standard-display-default (make-char charset 32)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
151 (make-char charset 127)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
152 (sit-for 0))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
153
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
154 (defun latin1-display-check-font (language)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
155 "Return non-nil if we have a font with an encoding for LANGUAGE.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
156 LANGUAGE is a symbol naming a language environment using an ISO8859
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
157 character set: `latin-2', `hebrew' etc."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
158 (if (eq language 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
159 (setq language 'cyrillic-iso))
32785
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
160 (let* ((info (get-language-info language 'charset))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
161 (char (make-char (car (remq 'ascii info)) ?\ )))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
162 (latin1-char-displayable-p char)))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
163
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
164 ;; This should be moved into mule-utils or somewhere after 21.1.
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
165 (defun latin1-char-displayable-p (char)
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
166 (cond ((< char 256)
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
167 ;; Single byte characters are always displayable.
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
168 t)
32997
00c403ac9e5e (latin1-char-displayable-p): Don't
Dave Love <fx@gnu.org>
parents: 32785
diff changeset
169 ((display-multi-font-p)
32785
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
170 ;; On a window system, a character is displayable if we have
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
171 ;; a font for that character in the default face of the
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
172 ;; currently selected frame.
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
173 (let ((fontset (frame-parameter (selected-frame) 'font))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
174 font-pattern)
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
175 (if (query-fontset fontset)
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
176 (setq font-pattern (fontset-font fontset char)))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
177 (or font-pattern
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
178 (setq font-pattern (fontset-font "fontset-default" char)))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
179 (if font-pattern
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
180 (progn
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
181 ;; Now FONT-PATTERN is a string or a cons of family
33412
d85712cf7ea3 formatting only
Dave Love <fx@gnu.org>
parents: 32997
diff changeset
182 ;; field pattern and registry field pattern.
32785
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
183 (or (stringp font-pattern)
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
184 (setq font-pattern (concat (or (car font-pattern) "*")
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
185 "-*-"
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
186 (cdr font-pattern))))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
187 (x-list-fonts font-pattern 'default (selected-frame) 1)))))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
188 (t
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
189 (let ((coding (terminal-coding-system)))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
190 (if coding
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
191 (let ((safe-chars (coding-system-get coding 'safe-chars))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
192 (safe-charsets (coding-system-get coding 'safe-charsets)))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
193 (or (and safe-chars
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
194 (aref safe-chars char))
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
195 (and safe-charsets
fc837c2f746a (latin1-char-displayable-p): New
Dave Love <fx@gnu.org>
parents: 31673
diff changeset
196 (memq (char-charset char) safe-charsets)))))))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
197
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
198 (defun latin1-display-setup (set &optional force)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
199 "Set up Latin-1 display for characters in the given SET.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
200 SET must be a member of `latin1-display-sets'. Normally, check
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
201 whether a font for SET is available and don't set the display if it
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
202 is. If FORCE is non-nil, set up the display regardless."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
203 (cond
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
204 ((eq set 'latin-2)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
205 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
206 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
207 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
208 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
209 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
210 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
211 '((? "'C" "C'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
212 (? "'D" "/D")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
213 (? "'S" "S'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
214 (? "'c" "c'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
215 (? "'d" "/d")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
216 (? "'L" "L'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
217 (? "'n" "n'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
218 (? "'N" "N'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
219 (? "'r" "r'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
220 (? "'R" "R'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
221 (? "'s" "s'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
222 (? "'z" "z'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
223 (? "'Z" "Z'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
224 (? "`A" "A;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
225 (? "`E" "E;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
226 (? "`L" "/L")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
227 (? "`S" ",S")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
228 (? "`T" ",T")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
229 (? "`Z" "Z^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
230 (? "`a" "a;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
231 (? "`l" "/l")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
232 (? "`e" "e;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
233 (? "`s" ",s")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
234 (? "`t" ",t")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
235 (? "`z" "z^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
236 (? "`." "'.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
237 (? "~A" "A(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
238 (? "~C" "C<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
239 (? "~D" "D<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
240 (? "~E" "E<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
241 (? "~e" "e<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
242 (? "~L" "L<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
243 (? "~N" "N<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
244 (? "~O" "O''")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
245 (? "~R" "R<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
246 (? "~S" "S<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
247 (? "~T" "T<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
248 (? "~U" "U''")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
249 (? "~Z" "Z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
250 (? "~a" "a(}")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
251 (? "~c" "c<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
252 (? "~d" "d<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
253 (? "~l" "l<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
254 (? "~n" "n<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
255 (? "~o" "o''")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
256 (? "~r" "r<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
257 (? "~s" "s<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
258 (? "~t" "t<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
259 (? "~u" "u''")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
260 (? "~z" "z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
261 (? "~v" "'<") ; ? in latin-pre
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
262 (? "~~" "'(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
263 (? "uu" "u^0")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
264 (? "UU" "U^0")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
265 (? "\"A")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
266 (? "\"a")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
267 (? "\"E" "E:")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
268 (? "\"e")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
269 (? "''" "'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
270 (? "'<") ; Lynx's rendering of caron
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
271 ))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
272
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
273 ((eq set 'latin-3)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
274 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
275 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
276 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
277 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
278 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
279 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
280 '((? "/H")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
281 (? "~`" "'(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
282 (? "^H" "H^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
283 (? "^h" "h^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
284 (? ".I" "I^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
285 (? ",S")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
286 (? "~G" "G(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
287 (? "^J" "J^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
288 (? ".Z" "Z^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
289 (? "/h")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
290 (? ".i" "i^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
291 (? ",s")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
292 (? "~g" "g(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
293 (? "^j" "j^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
294 (? ".Z" "z^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
295 (? ".c" "C^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
296 (? "^C" "C^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
297 (? ".G" "G^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
298 (? "^G" "G^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
299 (? "~U" "U(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
300 (? "^S" "S^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
301 (? ".C" "c^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
302 (? "^c" "c^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
303 (? ".g" "g^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
304 (? "^g" "g^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
305 (? "~u" "u(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
306 (? "^s" "s^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
307 (? "/." "^.")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
308
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
309 ((eq set 'latin-4)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
310 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
311 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
312 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
313 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
314 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
315 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
316 '((? "A," "A;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
317 (? "k/" "kk")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
318 (? "R," ",R")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
319 (? "I~" "?I")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
320 (? "L," ",L")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
321 (? "S~" "S<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
322 (? "E-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
323 (? "G," ",G")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
324 (? "T/" "/T")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
325 (? "Z~" "Z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
326 (? "a," "a;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
327 (? "';")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
328 (? "r," ",r")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
329 (? "i~" "~i")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
330 (? "l," ",l")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
331 (? "'<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
332 (? "s~" "s<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
333 (? "e-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
334 (? "g," ",g")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
335 (? "t/" "/t")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
336 (? "N/" "NG")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
337 (? "z~" "z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
338 (? "n/" "ng")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
339 (? "A-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
340 (? "I," "I;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
341 (? "C~" "C<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
342 (? "E," "E;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
343 (? "E." "E^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
344 (? "I-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
345 (? "N," ",N")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
346 (? "O-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
347 (? "K," ",K")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
348 (? "U," "U;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
349 (? "U~" "~U")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
350 (? "U-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
351 (? "a-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
352 (? "i," "i;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
353 (? "c~" "c<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
354 (? "e," "e;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
355 (? "e." "e^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
356 (? "i-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
357 (? "d/" "/d")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
358 (? "n," ",n")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
359 (? "o-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
360 (? "k," ",k")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
361 (? "u," "u;")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
362 (? "u~" "~u")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
363 (? "u-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
364 (? "^.")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
365
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
366 ((eq set 'latin-5)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
367 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
368 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
369 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
370 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
371 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
372 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
373 '((? "~g" "g(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
374 (? "~G" "G(")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
375 (? ".I" "I^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
376 (? ",s")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
377 (? ",S")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
378 (? "^e" "e<") ; from latin-post
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
379 (? ".e" "e^.")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
380 (? "\"i" "i-") ; from latin-post
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
381 (? ".i" "i.")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
382
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
383 ((eq set 'latin-8)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
384 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
385 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
386 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
387 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
388 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
389 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
390 '((? ".B" "B`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
391 (? ".b" "b`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
392 (? ".c" "c`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
393 (? ".C" "C`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
394 (? ".D" "D`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
395 (? ".d" "d`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
396 (? "`w")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
397 (? "`W")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
398 (? "'w" "w'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
399 (? "'W" "W'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
400 (? "`y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
401 (? "`Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
402 (? ".f" "f`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
403 (? ".F" "F`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
404 (? ".g" "g`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
405 (? ".G" "G`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
406 (? ".m" "m`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
407 (? ".M" "M`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
408 (? ".p" "p`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
409 (? ".P" "P`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
410 (? ".s" "s`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
411 (? ".S" "S`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
412 (? "\"w")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
413 (? "\"W")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
414 (? "^w" "w^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
415 (? "^W" "W^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
416 (? ".t" "t`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
417 (? ".T" "T`")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
418 (? "^y" "y^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
419 (? "^Y" "Y^")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
420 (? "\"Y")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
421
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
422 ((eq set 'latin-9)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
423 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
424 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
425 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
426 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
427 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
428 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
429 '((? "~s" "s<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
430 (? "~S" "S<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
431 (? "Euro" "E=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
432 (? "~z" "z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
433 (? "~Z" "Z<")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
434 (? "\"Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
435 (? "oe")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
436 (? "OE")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
437
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
438 ((eq set 'greek)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
439 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
440 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
441 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
442 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
443 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
444 '((? "9'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
445 (? "'9")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
446 (? "-M")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
447 (? "'%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
448 (? "'A")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
449 (? "'E")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
450 (? "'H")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
451 (? "'I")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
452 (? "'O")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
453 (? "'Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
454 (? "W%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
455 (? "i3")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
456 (? "G*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
457 (? "D*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
458 (? "TH")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
459 (? "L*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
460 (? "C*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
461 (? "P*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
462 (? "S*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
463 (? "F*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
464 (? "Q*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
465 (? "W*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
466 (? "\"I")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
467 (? "\"Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
468 (? "a%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
469 (? "e%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
470 (? "y%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
471 (? "i%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
472 (? "u3")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
473 (? "a*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
474 (? "b*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
475 (? "g*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
476 (? "d*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
477 (? "e*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
478 (? "z*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
479 (? "y*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
480 (? "h*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
481 (? "i*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
482 (? "k")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
483 (? "l*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
484 (? "m*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
485 (? "n*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
486 (? "c*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
487 (? "p*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
488 (? "r*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
489 (? "*s")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
490 (? "s*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
491 (? "t*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
492 (? "u")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
493 (? "f*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
494 (? "x*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
495 (? "q*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
496 (? "w*")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
497 (? "\"i")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
498 (? "\"u")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
499 (? "'o")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
500 (? "'u")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
501 (? "'w")))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
502 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
503 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
504 (aset standard-display-table (car l) (string-to-vector (cadr l))))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
505 '((? "A")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
506 (? "B")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
507 (? "E")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
508 (? "Z")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
509 (? "H")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
510 (? "I")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
511 (? "J")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
512 (? "M")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
513 (? "N")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
514 (? "O")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
515 (? "P")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
516 (? "T")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
517 (? "Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
518 (? "X")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
519 (? "o")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
520
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
521 ((eq set 'hebrew)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
522 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
523 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
524 ;; Don't start with identities, since we don't have definitions
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
525 ;; for a lot of Hebrew in internal.el. (Intlfonts is also
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
526 ;; missing some glyphs.)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
527 (let ((i 34))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
528 (while (<= i 62)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
529 (aset standard-display-table
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
530 (make-char 'hebrew-iso8859-8 i)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
531 (vector (make-char 'latin-iso8859-1 i)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
532 (setq i (1+ i))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
533 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
534 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
535 (aset standard-display-table (car l) (string-to-vector (cadr l))))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
536 '((? "=2")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
537 (? "A+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
538 (? "B+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
539 (? "G+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
540 (? "D+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
541 (? "H+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
542 (? "W+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
543 (? "Z+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
544 (? "X+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
545 (? "Tj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
546 (? "J+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
547 (? "K%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
548 (? "K+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
549 (? "L+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
550 (? "M%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
551 (? "M+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
552 (? "N%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
553 (? "N+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
554 (? "S+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
555 (? "E+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
556 (? "P%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
557 (? "P+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
558 (? "Zj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
559 (? "ZJ")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
560 (? "Q+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
561 (? "R+")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
562 (? "Sh")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
563 (? "T+")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
564
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
565 ((eq set 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
566 (setq set 'cyrillic-iso)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
567 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
568 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
569 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
570 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
571 (apply 'latin1-display-char l))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
572 '((? "Dj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
573 (? "Gj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
574 (? "IE")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
575 (? "Lj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
576 (? "Nj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
577 (? "Ts")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
578 (? "Kj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
579 (? "V%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
580 (? "Dzh")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
581 (? "B=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
582 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
583 (? "D")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
584 (? "Z%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
585 (? "3")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
586 (? "U")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
587 (? "J=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
588 (? "L=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
589 (? "P=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
590 (? "Y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
591 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
592 (? "C=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
593 (? "C%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
594 (? "S%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
595 (? "Sc")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
596 (? "=\"")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
597 (? "Y=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
598 (? "%\"")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
599 (? "Ee")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
600 (? "Yu")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
601 (? "Ya")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
602 (? "b")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
603 (? "v=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
604 (? "g=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
605 (? "g")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
606 (? "z%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
607 (? "z=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
608 (? "u")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
609 (? "j=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
610 (? "k")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
611 (? "l=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
612 (? "m=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
613 (? "n=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
614 (? "n")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
615 (? "p")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
616 (? "t=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
617 (? "f=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
618 (? "c=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
619 (? "c%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
620 (? "s%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
621 (? "sc")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
622 (? "='")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
623 (? "y=")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
624 (? "%'")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
625 (? "ee")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
626 (? "yu")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
627 (? "ya")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
628 (? "N0")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
629 (? "dj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
630 (? "gj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
631 (? "ie")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
632 (? "lj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
633 (? "nj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
634 (? "ts")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
635 (? "kj")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
636 (? "v%")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
637 (? "dzh")))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
638 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
639 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
640 (aset standard-display-table (car l) (string-to-vector (cadr l))))
36050
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
641 '((? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
642 (? "S")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
643 (? "I")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
644 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
645 (? "J")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
646 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
647 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
648 (? "-")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
649 (? "A")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
650 (? "B")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
651 (? "E")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
652 (? "K")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
653 (? "M")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
654 (? "H")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
655 (? "O")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
656 (? "P")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
657 (? "C")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
658 (? "T")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
659 (? "X")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
660 (? "a")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
661 (? "e")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
662 (? "o")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
663 (? "c")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
664 (? "y")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
665 (? "x")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
666 (? "s")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
667 (? "i")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
668 (? "")
8bc87faaa40f Undo coding change, which screwed up somehow.
Dave Love <fx@gnu.org>
parents: 36049
diff changeset
669 (? "j")))))
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
670
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
671 (t (error "Unsupported character set: %S" set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
672
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
673 (sit-for 0))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
674
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
675 (provide 'latin1-disp)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
676
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
677 ;;; latin1-disp.el ends here