all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Love <d.love@dl.ac.uk>
Cc: emacs-devel@gnu.org
Subject: Re: display table for eight-bit-graphic
Date: 03 Feb 2003 14:32:44 +0000	[thread overview]
Message-ID: <rzqk7gh5t9v.fsf@albion.dl.ac.uk> (raw)
In-Reply-To: 200301270220.LAA14193@etlken.m17n.org

Kenichi Handa <handa@m17n.org> writes:

> What I object is to setting up the display table as now by default.

Likewise.

[The original of these never reached me:]

> kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
> > "Ehud Karni" <ehud@unix.mvs.co.il> writes:
> 
> >>  I agree. For persons in the ISO-8859-x languages, the 8 bit graphics
> >>  is much better than the octal representation.

Displaying them as graphics is actually worse for people in locales
where the graphics might make sense, but are actually misleading.  Do
you really want undecodeable utf-8 byte sequences, or GBK &c, to
display as Hebrew characters?

> > It might seem so at first sight, but there are problems later on: for
> > instance, you can't search for the 8bit graphics characters by typing
> > Latin-1 characters, and people will surely be *very* surprised that
> > they can't find their characters!

The point is that these aren't actually well-defined characters --
they're random bytes.  If you were sure they represented, say, Latin-1
code points, you could treat them similarly to equivalent characters
from other charsets using translation-table-for-input, but then you
should have decoded the text correctly.

> I agree with that.  Showing different characters by the same
> glyph is the source of confusion at least for novice users.

That sort of thing is also a possible security-type risk.  There are
potential exploits from conning people into thinking the text is
different from what it actually is.

> > Maybe it would be useful to highlight the graphics characters in some
> > way so that it is clear that they aren't normal characters.
> 
> I'm not sure that is a good idea.  Highlighting means many
> things.  Octal displaying is far better to indicate that
> they aren't normal characters.

Exactly.  The only reasonable alternative would be to display them
with single-width glyphs or suitably-propertized text that displayed
the binary values somehow.  I think Yudit does that, but I wouldn't
suggest following it, especially as the glyph contents would typically
be too small.

[It is, in principle, a good idea to flag possibly confusing
characters with faces, such as latin1-disp now allows.  That doesn't
actually work well in practice, since the face information allowed in
the display table doesn't get merged by redisplay.  Thus if you
underline substitutions, they don't inherit the foreground/background
of the adjacent text.  I don't know whether or not this is actually a
bug.]

      parent reply	other threads:[~2003-02-03 14:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24 13:38 display table for eight-bit-graphic Dave Love
2003-01-25  1:16 ` Kenichi Handa
2003-01-25 10:17   ` Kai Großjohann
2003-01-25 22:24     ` Ehud Karni
2003-01-26 14:27       ` Kai Großjohann
2003-01-26 15:37   ` Richard Stallman
2003-01-27  2:20     ` Kenichi Handa
2003-01-29  0:04       ` Richard Stallman
2003-01-29 11:03         ` Kenichi Handa
2003-03-03 18:59           ` Richard Stallman
2003-03-03 20:41             ` Eli Zaretskii
2003-03-18  7:26             ` Kenichi Handa
2003-03-19  8:48               ` Richard Stallman
2003-03-19 10:58                 ` Kenichi Handa
2003-03-21 19:07                   ` Richard Stallman
2003-02-03 14:28         ` Dave Love
2003-02-03 14:29         ` Dave Love
2003-02-03 14:32       ` Dave Love [this message]

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=rzqk7gh5t9v.fsf@albion.dl.ac.uk \
    --to=d.love@dl.ac.uk \
    --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.