From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: handa@m17n.org
Cc: eliz@gnu.org, emacs-devel@gnu.org, handa@m17n.org
Subject: Re: Usage of standard-display-table in MSDOS
Date: Thu, 2 Sep 2010 02:33:53 +0300 [thread overview]
Message-ID: <201009012333.o81NXrRq016732@beta.mvs.co.il> (raw)
In-Reply-To: <tl7k4n6174i.fsf@m17n.org> (message from Kenichi Handa on Wed, 01 Sep 2010 12:21:17 +0900)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: Type: text/plain, Size: 2931 bytes --]
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
[-- Attachment #3: test-heb.tar.bz2 --]
[-- Type: application/X-bzip2-compressed, Size: 150165 bytes --]
next prev parent reply other threads:[~2010-09-01 23:33 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 12:44 Usage of standard-display-table in MSDOS Kenichi Handa
2010-08-24 5:34 ` Stephen J. Turnbull
2010-08-24 11:13 ` Ehud Karni
2010-08-24 16:51 ` Eli Zaretskii
2010-08-25 13:04 ` Ehud Karni
2010-08-25 18:09 ` Eli Zaretskii
2010-08-26 15:26 ` Ehud Karni
2010-08-26 16:43 ` Eli Zaretskii
2010-08-27 13:35 ` Ehud Karni
2010-08-27 16:30 ` Eli Zaretskii
2010-08-27 10:24 ` Eli Zaretskii
2010-08-27 11:44 ` Kenichi Handa
2010-08-27 14:13 ` Eli Zaretskii
2010-08-28 4:18 ` Kenichi Handa
2010-08-28 7:22 ` Eli Zaretskii
2010-08-30 2:24 ` Kenichi Handa
2010-08-30 3:02 ` Eli Zaretskii
2010-09-01 3:21 ` Kenichi Handa
2010-09-01 9:20 ` Ehud Karni
2010-09-01 23:33 ` Ehud Karni [this message]
2010-09-02 5:19 ` Eli Zaretskii
2010-09-02 5:20 ` Kenichi Handa
2010-09-04 22:54 ` Ehud Karni
2010-09-06 1:30 ` Kenichi Handa
2010-09-02 12:32 ` Kenichi Handa
2010-09-04 23:32 ` Ehud Karni
2010-09-05 5:30 ` Eli Zaretskii
2010-09-06 5:14 ` Kenichi Handa
2010-08-29 10:16 ` Ehud Karni
2010-08-29 11:21 ` Eli Zaretskii
2010-08-29 11:49 ` Ehud Karni
2010-08-29 13:06 ` Ehud Karni
2010-08-29 13:50 ` Eli Zaretskii
2010-08-29 14:04 ` Eli Zaretskii
2010-09-07 21:11 ` Ehud Karni
2010-09-09 11:57 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201009012333.o81NXrRq016732@beta.mvs.co.il \
--to=ehud@unix.mvs.co.il \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.