[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Usage of standard-display-table in MSDOS
From: |
Ehud Karni |
Subject: |
Re: Usage of standard-display-table in MSDOS |
Date: |
Thu, 2 Sep 2010 02:33:53 +0300 |
On Wed, 01 Sep 2010 12:21:17 Kenichi Handa wrote:
>
> handa> Should we change the above code and all other codes setting
> handa> 0x80th..0xA0th elements of a display table?
>
> I've just committed the work to emacs-23 branch. Ehud,
> could you try it?
OK. I downloaded and compiled the emacs-23 branch.
I only tested the characters displayed in different language
environment on X and text terminal.
There are 2 big problems - display on text terminal and use of the
display table with `find-file-literally'.
My testing shows that the display table works well on X (in the
3 language environment tested), but VERY poorly on text terminal.
I change the language environment with `set-locale-environment'.
Problem 1:
On text terminal the language environment has great influence on the
use of the display table - characters not it the language - are
always displayed as ? . So in the "C" locale, all characters > 127
are displayed as ?.
In the "he_IL" locale (= ISO-8859-8) characters in the range
191-223 and 251-255 are displayed as ?.
In the "en_GB" locale (= ISO-8859-1) the Hebrew characters (#x5D0-
#x5EA) are displayed as ?.
I really must use the "he_IL" because most of the file my users view
are in ISO-8859-8 and a small part have MSDOS Hebrew (#x80-#x9A), but
I want to see all the characters (#xB0-#xDF) literally (i.e. when a
byte in this range is displayed, its 8 bit value should be sent to
the terminal.
Problem 2:
When I use `find-file-literally' to visit a file, the display table is
mostly ignored, characters in #xA0-B2 are displayed in \OOO form, while
#xB3-DF are displayed as empty boxes (on X), whatever locale I use.
This is a change from the behavior of emacs-21.
Note: This can be controlled by `set-buffer-multibyte t', but then the
display is sometimes corrupted.
I attach a tar.bz2 file containing the following files:
1. test-heb.el - 2 functions: `display-hebrew' sets the display table.
`chars-list' - show characters #x20-#xFF.
2. motd - a file with many graphic characters.
3. 23-X-disp.png - display of #x20-#xFF on X (good, not dependent on
the locale)
4. 23-tty-C.png - chars #x20-#xFF on text terminal with locale "C".
5. 23-tty-he.png - chars #x20-#xFF on text terminal with locale "he_IL".
6. 23-tty-en.png - chars #x20-#xFF on text terminal with locale "en_GB".
7. 21-motd-lit.png - `find-file-literally' of the motd on text terminal
in emacs 21.4 (good).
8. 23-X-motd.png - the motd on X - upper window: literally,
lower window: regular find-file.
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
test-heb.tar.bz2
Description: application/bzip2-compressed
Re: Usage of standard-display-table in MSDOS, Ehud Karni, 2010/09/07