Re: Copying multi-range selection

We worked on this some years ago, and found that the cut/copy/paste were
very, very complicated to get to be natural, and ended up dropping it.

The problem is that if ...ABC... are adjacent ranges on the screen in the
source (each letter is a range), people expect to see ...ABC... when it is
pasted in to replace ...EFG.... You end up having to do a "reverse bidi" to
see what combination of characters could produce the end result. Might be
possible, but would need some serious UI research...


Mark <https://google.com/+MarkDavis>

*— Il meglio è l’inimico del bene —*

On Sat, Aug 15, 2015 at 7:19 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Sat, Aug 15, 2015 at 12:10 AM, Ryosuke Niwa <rniwa@apple.com> wrote:
> > We've been recently exploring ways to select bidirectional text and
> content that uses new CSS layout modes such as flex box in visually
> contagious manner.
> >
> > Because visually contagious range of content may not be contagious in
> DOM order, doing so involves creating a disjoint multi-range selection.
> There has been quite a bit of discussion about how we can better expose
> that to the Web since the current model of exposing a list of Range objects
> doesn't seem to be working well.
> >
> > However, another important question I have is how copying such a
> selected content work?  Do we just stitch together disjoint content?  But
> that may result in the content being pasted in completely different order.
>
> I copied www-international. Somewhat curious if this problem has been
> studied before. It does seem like you would have to add/remove
> formatting code points as the context where you paste may be different
> from the context where you copied from.
>
>
> --
> https://annevankesteren.nl/
>
>

Received on Saturday, 15 August 2015 08:03:04 UTC