* Displaying LRM and RLM
@ 2008-12-20 10:31 Eli Zaretskii
2008-12-20 10:45 ` Don Armstrong
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2008-12-20 10:31 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
What should Emacs 23 display for these two characters (U+200E and
U+200F)? On MS-Windows they are displayed as blanks; I need to type
"C-u C-x =" to see that these are not blanks. Is that right?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 10:31 Displaying LRM and RLM Eli Zaretskii
@ 2008-12-20 10:45 ` Don Armstrong
2008-12-20 11:32 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Don Armstrong @ 2008-12-20 10:45 UTC (permalink / raw)
To: emacs-devel
On Sat, 20 Dec 2008, Eli Zaretskii wrote:
> What should Emacs 23 display for these two characters (U+200E and
> U+200F)? On MS-Windows they are displayed as blanks; I need to type
> "C-u C-x =" to see that these are not blanks. Is that right?
These are the LRM and RLM; they're zero-width symbols that change the
direction of text. See http://en.wikipedia.org/wiki/Left-to-right_mark
et al.
Don Armstrong
--
I may not have gone where I intended to go, but I think I have ended
up where I needed to be.
-- Douglas Adams _The Long Dark Tea-Time of the Soul_
http://www.donarmstrong.com http://rzlab.ucr.edu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 10:45 ` Don Armstrong
@ 2008-12-20 11:32 ` Eli Zaretskii
2008-12-20 13:05 ` Jason Rumney
2008-12-21 2:24 ` Stefan Monnier
0 siblings, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2008-12-20 11:32 UTC (permalink / raw)
To: Don Armstrong; +Cc: emacs-devel
> Date: Sat, 20 Dec 2008 02:45:06 -0800
> From: Don Armstrong <don@donarmstrong.com>
>
> On Sat, 20 Dec 2008, Eli Zaretskii wrote:
>
> > What should Emacs 23 display for these two characters (U+200E and
> > U+200F)? On MS-Windows they are displayed as blanks; I need to type
> > "C-u C-x =" to see that these are not blanks. Is that right?
>
> These are the LRM and RLM; they're zero-width symbols that change the
> direction of text. See http://en.wikipedia.org/wiki/Left-to-right_mark
> et al.
Well, I know very well what they are; see the Subject. I was asking
how we should display them. I think displaying them as blanks without
any visual cue to the fact that they aren't is misleading. E.g., NBSP
is displayed specially, for that very reason.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 11:32 ` Eli Zaretskii
@ 2008-12-20 13:05 ` Jason Rumney
2008-12-20 13:16 ` Eli Zaretskii
2008-12-21 2:24 ` Stefan Monnier
1 sibling, 1 reply; 9+ messages in thread
From: Jason Rumney @ 2008-12-20 13:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Don Armstrong, emacs-devel
Eli Zaretskii wrote:
> Well, I know very well what they are; see the Subject. I was asking
> how we should display them. I think displaying them as blanks without
> any visual cue to the fact that they aren't is misleading.
Blame the font, if it is mapping those characters to a space glyph.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 13:05 ` Jason Rumney
@ 2008-12-20 13:16 ` Eli Zaretskii
2008-12-20 13:36 ` Jason Rumney
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2008-12-20 13:16 UTC (permalink / raw)
To: Jason Rumney; +Cc: emacs-devel
> Date: Sat, 20 Dec 2008 21:05:14 +0800
> From: Jason Rumney <jasonr@f2s.com>
> CC: Don Armstrong <don@donarmstrong.com>, emacs-devel@gnu.org
>
> Blame the font, if it is mapping those characters to a space glyph.
Do you see them as someone else? with what font?
Also, how can I see if some specific font maps them to the space
glyph?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 13:16 ` Eli Zaretskii
@ 2008-12-20 13:36 ` Jason Rumney
2008-12-20 14:27 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Jason Rumney @ 2008-12-20 13:36 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii wrote:
>> Date: Sat, 20 Dec 2008 21:05:14 +0800
>> From: Jason Rumney <jasonr@f2s.com>
>> CC: Don Armstrong <don@donarmstrong.com>, emacs-devel@gnu.org
>>
>> Blame the font, if it is mapping those characters to a space glyph.
>>
>
> Do you see them as someone else? with what font?
>
I see them as space glyphs, with DejaVu Sans Mono.
> Also, how can I see if some specific font maps them to the space
> glyph?
>
C-u C-x = on the character in question, and compare with the results of
doing the same on a real space.
Near the bottom, you will see the glyph code that is being mapped to.
Space is usually 0x03, as it is one of the standard glyphs that come
near the front of the cmap table.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 13:36 ` Jason Rumney
@ 2008-12-20 14:27 ` Eli Zaretskii
2008-12-20 14:57 ` Jason Rumney
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2008-12-20 14:27 UTC (permalink / raw)
To: Jason Rumney; +Cc: emacs-devel
> Date: Sat, 20 Dec 2008 21:36:33 +0800
> From: Jason Rumney <jasonr@f2s.com>
> CC: emacs-devel@gnu.org
>
> > Also, how can I see if some specific font maps them to the space
> > glyph?
> >
>
> C-u C-x = on the character in question, and compare with the results of
> doing the same on a real space.
> Near the bottom, you will see the glyph code that is being mapped to.
> Space is usually 0x03, as it is one of the standard glyphs that come
> near the front of the cmap table.
Thanks, I see that now.
Does Emacs support display of zero-width characters? should it?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 14:27 ` Eli Zaretskii
@ 2008-12-20 14:57 ` Jason Rumney
0 siblings, 0 replies; 9+ messages in thread
From: Jason Rumney @ 2008-12-20 14:57 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii wrote:
> Does Emacs support display of zero-width characters? should it?
>
I think the answer to this last questions is yes. Another question is
HOW should Emacs support zero width characters - should it be stripping
them before they are sent to the font backend for display, and doing the
right thing with them itself, or should it be up to the font backends to
support them?
If it is the latter, I think we need to redesign the font backend API to
allow extra information to be attached in the encode_char function in
the backends. Checking just now, we do actually have the information
that this character is zero-width at that point, but once we have
returned the encoded glyph, that information is lost.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Displaying LRM and RLM
2008-12-20 11:32 ` Eli Zaretskii
2008-12-20 13:05 ` Jason Rumney
@ 2008-12-21 2:24 ` Stefan Monnier
1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2008-12-21 2:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Don Armstrong, emacs-devel
>> > What should Emacs 23 display for these two characters (U+200E and
>> > U+200F)? On MS-Windows they are displayed as blanks; I need to type
>> > "C-u C-x =" to see that these are not blanks. Is that right?
Since these should be "displayed" by changing the direction of text,
I think we can safely say that Emacs is not currently able to display
them, so we should forcibly replace them by the usual boxes we use for
chars that we can't display (usually it's because the font doesn't
provide a glyph for it, here it's because Emacs doesn't know how to
implement it).
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-12-21 2:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-20 10:31 Displaying LRM and RLM Eli Zaretskii
2008-12-20 10:45 ` Don Armstrong
2008-12-20 11:32 ` Eli Zaretskii
2008-12-20 13:05 ` Jason Rumney
2008-12-20 13:16 ` Eli Zaretskii
2008-12-20 13:36 ` Jason Rumney
2008-12-20 14:27 ` Eli Zaretskii
2008-12-20 14:57 ` Jason Rumney
2008-12-21 2:24 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).