annotate lisp/international/latin1-disp.el @ 31684:e05ee0693dda

(diff-hunk-text): Add new optional arg LINE-OFFSET, and return a cons if it's non-nil. (diff-apply-hunk): Try to jump to the exact line in the source text corresponding to the position of point in the in the hunk.
author Miles Bader <miles@gnu.org>
date Mon, 18 Sep 2000 08:15:38 +0000
parents 6d39ec089c7b
children fc837c2f746a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31673
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
1 ;;; latin1-disp.el --- display tables for other ISO 8859 on Latin-1 terminals -*- coding: emacs-mule -*-
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
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
29 ;; be displayed, either beacuse we're on a tty or beacuse we don't
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
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
37 ;; postfix sequences as a prefix method isn't defined for Latin-4.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
38
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
39 ;; A different approach is taken in the DOS display tables in
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
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
42 ;; these sequences are used for Cyrillic, Greek and Hebrew.
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
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
50 (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
51 latin-9 cyrillic greek hebrew)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
52 "The ISO8859 character sets with defined Latin-1 display sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
53 These are the nicknames for the sets and correspond to Emacs language
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
54 environments.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
55
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
56 (defgroup latin1-display ()
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
57 "Set up display tables for ISO8859 characters using Latin-1."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
58 :version "21.1"
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
59 :group 'i18n)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
60
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
61 (defcustom latin1-display-format "{%s}"
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
62 "A format string used to display the ASCII sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
63 The default encloses the sequence in braces, but you could just use
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
64 \"%s\" to avoid the braces."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
65 :group 'latin1-display
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
66 :type 'string)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
67
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
68 ;;;###autoload
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
69 (defcustom latin1-display nil
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
70 "Set up Latin-1/ASCII display for ISO8859 character sets.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
71 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
72 if no font is available to display it. Characters are displayed using
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
73 the corresponding Latin-1 characters where they match. Otherwise
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
74 ASCII sequences are used, mostly following the Latin prefix input
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
75 methods. Some different ASCII sequences are used if
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
76 `latin1-display-mnemonic' is non-nil.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
77
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
78 Setting this variable directly does not take effect;
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
79 use either M-x customize of the function `latin1-display'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
80 :group 'latin1-display
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
81 :type 'boolean
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
82 :require 'latin1-disp
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
83 :initialize 'custom-initialize-default
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
84 :set (lambda (symbol value)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
85 (if value
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
86 (mapc (if value
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
87 #'latin1-display-setup
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
88 #'latin1-display-reset)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
89 latin1-display-sets))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
90
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
91 ;;;###autoload
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
92 (defun latin1-display (&rest sets)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
93 "Set up Latin-1/ASCII display for the arguments character SETS.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
94 See option `latin1-display' for the method. The members of the list
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
95 must be in `latin1-display-sets'. With no arguments, reset the
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
96 display for all of `latin1-display-sets'. See also `latin1-display-setup'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
97 (if sets
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
98 (mapc #'latin1-display-setup sets)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
99 (mapc #'latin1-display-reset latin1-display-sets)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
100
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
101 (defcustom latin1-display-mnemonic nil
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
102 "Non-nil means to display potentially more mnemonic sequences.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
103 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
104 input sequences."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
105 :type 'boolean
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
106 :group 'latin1-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
107
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
108 (defun latin1-display-char (char display &optional alt-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
109 "Make an entry in `standard-display-table' for CHAR using string DISPLAY.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
110 If ALT-DISPLAY is provided, use that instead if
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
111 `latin1-display-mnemonic' is non-nil. The actual string displayed is
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
112 formatted using `latin1-display-format'."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
113 (if (and (stringp alt-display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
114 latin1-display-mnemonic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
115 (setq display alt-display))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
116 (if (stringp display)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
117 (standard-display-ascii char (format latin1-display-format display))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
118 (aset standard-display-table char display)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
119
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
120 (defun latin1-display-identities (charset)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
121 "Display each character in CHARSET as the corresponding Latin-1 character.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
122 CHARSET is a symbol naming a language environment using an ISO8859
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
123 character set."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
124 (if (eq charset 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
125 (setq charset 'cyrillic-iso))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
126 (let ((i 32)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
127 (set (car (remq 'ascii (get-language-info charset 'charset)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
128 (while (<= i 127)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
129 (aset standard-display-table
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
130 (make-char set i)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
131 (vector (make-char 'latin-iso8859-1 i)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
132 (setq i (1+ i)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
133
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
134 (defun latin1-display-reset (language)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
135 "Set up the default display for each character of LANGUAGE's charset.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
136 CHARSET is a symbol naming a language environment using an ISO8859
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
137 character set."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
138 (if (eq language 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
139 (setq language 'cyrillic-iso))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
140 (let ((charset (car (remq 'ascii (get-language-info language
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
141 'charset)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
142 (standard-display-default (make-char charset 32)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
143 (make-char charset 127)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
144 (sit-for 0))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
145
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
146 ;; Is there a better way than this?
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
147 (defun latin1-display-check-font (language)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
148 "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
149 LANGUAGE is a symbol naming a language environment using an ISO8859
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
150 character set: `latin-2', `hebrew' etc."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
151 (if (eq language 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
152 (setq language 'cyrillic-iso))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
153 (if window-system
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
154 (let* ((info (get-language-info language 'charset))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
155 (str (symbol-name (car (remq 'ascii info)))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
156 (string-match "-iso8859-[0-9]+\\'" str)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
157 (x-list-fonts (concat "*" (match-string 0 str))))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
158
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
159 (defun latin1-display-setup (set &optional force)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
160 "Set up Latin-1 display for characters in the given SET.
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
161 SET must be a member of `latin1-display-sets'. Normally, check
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
162 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
163 is. If FORCE is non-nil, set up the display regardless."
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
164 (cond
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
165 ((eq set 'latin-2)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
166 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
167 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
168 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
169 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
170 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
171 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
172 '((? "'C" "C'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
173 (? "'D" "/D")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
174 (? "'S" "S'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
175 (? "'c" "c'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
176 (? "'d" "/d")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
177 (? "'L" "L'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
178 (? "'n" "n'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
179 (? "'N" "N'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
180 (? "'r" "r'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
181 (? "'R" "R'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
182 (? "'s" "s'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
183 (? "'z" "z'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
184 (? "'Z" "Z'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
185 (? "`A" "A;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
186 (? "`E" "E;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
187 (? "`L" "/L")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
188 (? "`S" ",S")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
189 (? "`T" ",T")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
190 (? "`Z" "Z^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
191 (? "`a" "a;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
192 (? "`l" "/l")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
193 (? "`e" "e;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
194 (? "`s" ",s")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
195 (? "`t" ",t")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
196 (? "`z" "z^.")
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 (? "~A" "A(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
199 (? "~C" "C<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
200 (? "~D" "D<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
201 (? "~E" "E<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
202 (? "~e" "e<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
203 (? "~L" "L<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
204 (? "~N" "N<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
205 (? "~O" "O''")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
206 (? "~R" "R<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
207 (? "~S" "S<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
208 (? "~T" "T<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
209 (? "~U" "U''")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
210 (? "~Z" "Z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
211 (? "~a" "a(}")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
212 (? "~c" "c<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
213 (? "~d" "d<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
214 (? "~l" "l<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
215 (? "~n" "n<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
216 (? "~o" "o''")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
217 (? "~r" "r<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
218 (? "~s" "s<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
219 (? "~t" "t<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
220 (? "~u" "u''")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
221 (? "~z" "z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
222 (? "~v" "'<") ; ? in latin-pre
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
223 (? "~~" "'(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
224 (? "uu" "u^0")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
225 (? "UU" "U^0")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
226 (? "\"A")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
227 (? "\"a")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
228 (? "\"E" "E:")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
229 (? "\"e")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
230 (? "''" "'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
231 (? "'<") ; Lynx's rendering of caron
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
232 ))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
233
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
234 ((eq set 'latin-3)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
235 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
236 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
237 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
238 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
239 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
240 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
241 '((? "/H")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
242 (? "~`" "'(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
243 (? "^H" "H^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
244 (? "^h" "h^") (? ".I" "I^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
245 (? ",S")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
246 (? "~G" "G(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
247 (? "^J" "J^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
248 (? ".Z" "Z^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
249 (? "/h")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
250 (? ".i" "i^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
251 (? ",s")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
252 (? "~g" "g(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
253 (? "^j" "j^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
254 (? ".Z" "z^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
255 (? ".c" "C^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
256 (? "^C" "C^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
257 (? ".G" "G^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
258 (? "^G" "G^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
259 (? "~U" "U(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
260 (? "^S" "S^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
261 (? ".C" "c^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
262 (? "^c" "c^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
263 (? ".g" "g^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
264 (? "^g" "g^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
265 (? "~u" "u(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
266 (? "^s" "s^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
267 (? "/." "^.")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
268
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
269 ((eq set 'latin-4)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
270 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
271 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
272 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
273 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
274 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
275 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
276 '((? "A," "A;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
277 (? "k/" "kk")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
278 (? "R," ",R")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
279 (? "I~" "?I")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
280 (? "L," ",L")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
281 (? "S~" "S<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
282 (? "E-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
283 (? "G," ",G")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
284 (? "T/" "/T")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
285 (? "Z~" "Z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
286 (? "a," "a;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
287 (? "';")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
288 (? "r," ",r")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
289 (? "i~" "~i")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
290 (? "l," ",l")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
291 (? "'<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
292 (? "s~" "s<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
293 (? "e-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
294 (? "g," ",g")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
295 (? "t/" "/t")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
296 (? "N/" "NG")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
297 (? "z~" "z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
298 (? "n/" "ng")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
299 (? "A-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
300 (? "I," "I;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
301 (? "C~" "C<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
302 (? "E," "E;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
303 (? "E." "E^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
304 (? "I-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
305 (? "N," ",N")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
306 (? "O-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
307 (? "K," ",K")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
308 (? "U," "U;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
309 (? "U~" "~U")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
310 (? "U-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
311 (? "a-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
312 (? "i," "i;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
313 (? "c~" "c<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
314 (? "e," "e;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
315 (? "e." "e^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
316 (? "i-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
317 (? "d/" "/d")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
318 (? "n," ",n")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
319 (? "o-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
320 (? "k," ",k")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
321 (? "u," "u;")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
322 (? "u~" "~u")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
323 (? "u-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
324 (? "^.")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
325
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
326 ((eq set 'latin-5)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
327 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
328 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
329 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
330 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
331 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
332 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
333 '((? "~g" "g(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
334 (? "~G" "G(")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
335 (? ".I" "I^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
336 (? ",s")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
337 (? ",S")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
338 (? "^e" "e<") ; from latin-post
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
339 (? ".e" "e^.")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
340 (? "\"i" "i-") ; from latin-post
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
341 (? ".i" "i.")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
342
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
343 ((eq set 'latin-8)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
344 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
345 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
346 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
347 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
348 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
349 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
350 '((? ".B" "B`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
351 (? ".b" "b`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
352 (? ".c" "c`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
353 (? ".C" "C`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
354 (? ".D" "D`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
355 (? ".d" "d`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
356 (? "`w")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
357 (? "`W")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
358 (? "'w" "w'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
359 (? "'W" "W'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
360 (? "`y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
361 (? "`Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
362 (? ".f" "f`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
363 (? ".F" "F`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
364 (? ".g" "g`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
365 (? ".G" "G`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
366 (? ".m" "m`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
367 (? ".M" "M`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
368 (? ".p" "p`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
369 (? ".P" "P`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
370 (? ".s" "s`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
371 (? ".S" "S`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
372 (? "\"w")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
373 (? "\"W")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
374 (? "^w" "w^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
375 (? "^W" "W^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
376 (? ".t" "t`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
377 (? ".T" "T`")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
378 (? "^y" "y^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
379 (? "^Y" "Y^")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
380 (? "\"Y")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
381
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
382 ((eq set 'latin-9)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
383 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
384 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
385 (latin1-display-identities set)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
386 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
387 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
388 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
389 '((? "~s" "s<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
390 (? "~S" "S<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
391 (? "Euro" "E=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
392 (? "~z" "z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
393 (? "~Z" "Z<")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
394 (? "\"Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
395 (? "oe")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
396 (? "OE")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
397
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
398 ((eq set 'greek)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
399 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
400 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
401 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
402 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
403 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
404 '((? "9'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
405 (? "'9")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
406 (? "-M")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
407 (? "'%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
408 (? "'A")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
409 (? "'E")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
410 (? "'H")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
411 (? "'I")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
412 (? "'O")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
413 (? "'Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
414 (? "W%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
415 (? "i3")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
416 (? "G*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
417 (? "D*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
418 (? "TH")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
419 (? "L*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
420 (? "C*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
421 (? "P*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
422 (? "S*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
423 (? "F*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
424 (? "Q*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
425 (? "W*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
426 (? "\"I")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
427 (? "\"Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
428 (? "a%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
429 (? "e%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
430 (? "y%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
431 (? "i%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
432 (? "u3")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
433 (? "a*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
434 (? "b*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
435 (? "g*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
436 (? "d*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
437 (? "e*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
438 (? "z*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
439 (? "y*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
440 (? "h*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
441 (? "i*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
442 (? "k")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
443 (? "l*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
444 (? "m*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
445 (? "n*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
446 (? "c*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
447 (? "p*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
448 (? "r*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
449 (? "*s")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
450 (? "s*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
451 (? "t*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
452 (? "u")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
453 (? "f*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
454 (? "x*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
455 (? "q*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
456 (? "w*")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
457 (? "\"i")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
458 (? "\"u")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
459 (? "'o")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
460 (? "'u")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
461 (? "'w")))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
462 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
463 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
464 (aset standard-display-table (car l) (string-to-vector (cadr l))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
465 '((? "A")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
466 (? "B")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
467 (? "E")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
468 (? "Z")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
469 (? "H")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
470 (? "I")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
471 (? "J")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
472 (? "M")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
473 (? "N")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
474 (? "O")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
475 (? "P")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
476 (? "T")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
477 (? "Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
478 (? "X")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
479 (? "o")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
480
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
481 ((eq set 'hebrew)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
482 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
483 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
484 ;; Don't start with identities, since we don't have definitions
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
485 ;; for a lot of Hebrew in internal.el. (Intlfonts is also
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
486 ;; missing some glyphs.)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
487 (let ((i 34))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
488 (while (<= i 62)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
489 (aset standard-display-table
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
490 (make-char 'hebrew-iso8859-8 i)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
491 (vector (make-char 'latin-iso8859-1 i)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
492 (setq i (1+ i))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
493 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
494 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
495 (aset standard-display-table (car l) (string-to-vector (cadr l))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
496 '((? "=2")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
497 (? "A+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
498 (? "B+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
499 (? "G+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
500 (? "D+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
501 (? "H+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
502 (? "W+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
503 (? "Z+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
504 (? "X+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
505 (? "Tj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
506 (? "J+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
507 (? "K%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
508 (? "K+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
509 (? "L+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
510 (? "M%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
511 (? "M+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
512 (? "N%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
513 (? "N+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
514 (? "S+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
515 (? "E+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
516 (? "P%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
517 (? "P+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
518 (? "Zj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
519 (? "ZJ")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
520 (? "Q+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
521 (? "R+")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
522 (? "Sh")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
523 (? "T+")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
524
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
525 ((eq set 'cyrillic)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
526 (setq set 'cyrillic-iso)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
527 (when (or force
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
528 (not (latin1-display-check-font set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
529 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
530 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
531 (apply 'latin1-display-char l))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
532 '((? "Dj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
533 (? "Gj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
534 (? "IE")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
535 (? "Lj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
536 (? "Nj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
537 (? "Ts")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
538 (? "Kj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
539 (? "V%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
540 (? "Dzh")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
541 (? "B=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
542 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
543 (? "D")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
544 (? "Z%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
545 (? "3")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
546 (? "U")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
547 (? "J=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
548 (? "L=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
549 (? "P=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
550 (? "Y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
551 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
552 (? "C=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
553 (? "C%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
554 (? "S%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
555 (? "Sc")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
556 (? "=\"")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
557 (? "Y=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
558 (? "%\"")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
559 (? "Ee")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
560 (? "Yu")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
561 (? "Ya")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
562 (? "b")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
563 (? "v=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
564 (? "g=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
565 (? "g")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
566 (? "z%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
567 (? "z=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
568 (? "u")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
569 (? "j=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
570 (? "k")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
571 (? "l=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
572 (? "m=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
573 (? "n=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
574 (? "n")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
575 (? "p")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
576 (? "t=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
577 (? "f=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
578 (? "c=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
579 (? "c%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
580 (? "s%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
581 (? "sc")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
582 (? "='")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
583 (? "y=")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
584 (? "%'")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
585 (? "ee")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
586 (? "yu")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
587 (? "ya")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
588 (? "N0")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
589 (? "dj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
590 (? "gj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
591 (? "ie")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
592 (? "lj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
593 (? "nj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
594 (? "ts")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
595 (? "kj")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
596 (? "v%")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
597 (? "dzh")))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
598 (mapc
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
599 (lambda (l)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
600 (aset standard-display-table (car l) (string-to-vector (cadr l))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
601 '((? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
602 (? "S")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
603 (? "I")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
604 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
605 (? "J")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
606 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
607 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
608 (? "-")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
609 (? "A")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
610 (? "B")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
611 (? "E")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
612 (? "K")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
613 (? "M")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
614 (? "H")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
615 (? "O")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
616 (? "P")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
617 (? "C")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
618 (? "T")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
619 (? "X")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
620 (? "a")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
621 (? "e")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
622 (? "o")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
623 (? "c")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
624 (? "y")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
625 (? "x")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
626 (? "s")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
627 (? "i")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
628 (? "")
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
629 (? "j")))))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
630
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
631 (t (error "Unsupported character set: %S" set)))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
632
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
633 (sit-for 0))
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
634
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
635 (provide 'latin1-disp)
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
636
6d39ec089c7b *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
637 ;;; latin1-disp.el ends here