emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bidirectional text and URLs


From: Eli Zaretskii
Subject: Re: Bidirectional text and URLs
Date: Tue, 02 Dec 2014 17:03:29 +0200

> Date: Tue, 02 Dec 2014 09:45:08 -0500
> From: Richard Stallman <address@hidden>
> CC: address@hidden, address@hidden
> 
>   > A simple (as in "KISS") strategy that should always work is to copy
>   > the entire physical line around the region.
> 
> 1. Is that physical line sufficient to determine the bidi context for
> the region?  I don't know.  If you say it is, I believe you.

I say yes.  For this purpose, line == paragraph.

>   >   Optimizing
>   > that would probably require replacing runs of certain types of
>   > characters with a single representative character of the same type,
>   > and keeping all the directional controls.
> 
>   > We could also replace strong directional characters L/R/AL with the
>   > corresponding mark (LRM/RLM/ALM), which are displayed as (thin)
>   > spaces, and so will be almost invisible, keeping an illusion of
>   > copying just the region of text and nothing else.
> 
> This sounds like the sort of thing I proposed.

OK, I will work on it.

> Another possible interface would be
> 'buffer-substring-preserve-bidi-context'.
> It would copy a specified part of the buffer, but prefix and suffix it
> with whatever is necessary to cause that part to display the same,
> bidi-wise, as it did in its original buffer.

How is this different (you say "another possible interface")?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]