comparison lisp/term/internal.el @ 24845:87e4cdfac07b

(IT-display-table-setup): Do not remap \222 to the ASCII apostrophe, as most DOS codepages have some other glyph there.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 14 Jun 1999 15:10:14 +0000
parents c2f09365ec12
children 9f3d02d7daa8
comparison
equal deleted inserted replaced
24844:ab5f0d0f5e9a 24845:87e4cdfac07b
202 should be used to represent the characters from each set on a DOS 202 should be used to represent the characters from each set on a DOS
203 terminal which does not have corresponding glyphs built into the 203 terminal which does not have corresponding glyphs built into the
204 installed codepage.") 204 installed codepage.")
205 205
206 (defun IT-display-table-setup (codepage &optional table) 206 (defun IT-display-table-setup (codepage &optional table)
207 "Set up display table TABLE for a DOS terminal which supports a 207 "Set up display table TABLE for a DOS terminal which supports
208 glyphs built into the current codepage CODEPAGE. 208 glyphs built into the codepage CODEPAGE.
209 209
210 If TABLE is nil or omitted, `standard-display-table' is used." 210 If TABLE is nil or omitted, `standard-display-table' is used."
211 (let* ((surrogates IT-character-translations) 211 (let* ((surrogates IT-character-translations)
212 (disp-tab (or table standard-display-table)) 212 (disp-tab (or table standard-display-table))
213 (built-in-set (cp-charset-for-codepage codepage)) 213 (built-in-set (cp-charset-for-codepage codepage))
241 (if (numberp glyph) 241 (if (numberp glyph)
242 (char-to-string glyph) 242 (char-to-string glyph)
243 (if (> (length glyph) 1) (concat "{" glyph "}") 243 (if (> (length glyph) 1) (concat "{" glyph "}")
244 glyph))))) 244 glyph)))))
245 (setq i (1+ i)))) 245 (setq i (1+ i))))
246 (setq surrogates (cdr surrogates))) 246 (setq surrogates (cdr surrogates)))))
247 ;; Most Windows programs send out apostrophe's as \222. Most DOS
248 ;; fonts contain a different character at that position. Map it
249 ;; to the ASCII apostrophe.
250 (aset standard-display-table 146 [39])))
251 247
252 (defun dos-cpNNN-setup (codepage) 248 (defun dos-cpNNN-setup (codepage)
253 "Set up the MULE environment using the DOS codepage CODEPAGE. 249 "Set up the MULE environment using the DOS codepage CODEPAGE.
254 250
255 This function creates the coding system cpNNN (where NNN is the value 251 This function creates the coding system cpNNN (where NNN is the value