From: Kenichi Handa <handa@m17n.org>
To: ehud@unix.mvs.co.il
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Usage of standard-display-table in MSDOS
Date: Thu, 02 Sep 2010 21:32:21 +0900 [thread overview]
Message-ID: <tl7wrr4z5pm.fsf@m17n.org> (raw)
In-Reply-To: <201009012333.o81NXrRq016732@beta.mvs.co.il> (ehud@unix.mvs.co.il)
In article <201009012333.o81NXrRq016732@beta.mvs.co.il>, "Ehud Karni" <ehud@unix.mvs.co.il> writes:
> 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.
I've thought that you are reading files by
find-file-literally (thus buffers are unibyte) because you
wrote below at first:
> I had this code in Emacs 21.3:
>
> (defun set-standard-display-table ()
> (setq standard-display-table (make-display-table))
> (standard-display-8bit 127 254))
>
> I then set the DOS Hebrew chars (128-144) each to a vector:
> [ 169 <the corresponding UNIX Hebrew char> ]
>
> Then visit a file (literally).
But, as you wrote "Problem 2: When I use
`find-file-literally' ...", the "Problem 1" is the case that
you don't use `find-file-literally', and a file is read into
a multibyte buffer decoded by some coding-system, right?
Then, in he_IL locale, by which coding-system your file is
decoded? C-h C RET shows that coding-system near the top
under the line "Coding system for saving this buffer:".
And I don't understand this part.
> I then set the DOS Hebrew chars (128-144) each to a vector:
> [ 169 <the corresponding UNIX Hebrew char> ]
169 is not a "UNIX Hebrew char", i.e. not a Unicode
character code of a Hebrew char, nor a code-point of a
Hebrew character in iso-8859-8 character set.
In your mails, you mixup:
(1) a code-point in a specific character set,
(2) a character code in Emacs (that is Unicode character code),
(3) a byte represented by Emacs' 8-bit characters,
and that makes it difficult to understand what exactly you
are saying.
Please write:
For (1), "a character of code #xXX in XXX charset".
For (2), just "U+XXXX".
For (3), just "byte #xXX".
And, you wrote "a small part have MSDOS Hebrew (#x80-#x9A)",
but #x9a is 154, not 144. Is "144" above just a typo?
Perhaps, the following is the best way to understand what
you want:
(1) You at first make sample files and give me them.
(2) Tell me how you want read that file exactly.
Just C-x C-f FILENAME RET, or M-x find-file-literally ....,
or C-x C-m c no-convesion RET C-x C-f FILENAME RET,
or ...
(3) Show me how it should be displayed on a terminal by an
image.
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2010-09-02 12:32 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
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 [this message]
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=tl7wrr4z5pm.fsf@m17n.org \
--to=handa@m17n.org \
--cc=ehud@unix.mvs.co.il \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.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.