2 ms·
Ah, that makes sense. I didn't think that text selection defines end points and everything between the endpoints (in the physical text) is highlighted. So, if
by xtacy 15y ago
Ah, that makes sense. I didn't think that text selection defines end points and everything between the endpoints (in the physical text) is highlighted. So, if you have:
Hi RLO elgooG
^ select ^
I expected (everything between the logical end points selected):
Hi Google
^^^^^^^ (selected)
In other words, I expected text selection to obey RLO character as well.
- groby_b 15y agoNope - selection is on logical text, not on visual text. For tons of "fun" reasons. If you want an afternoon of madness, read the Chrome or WebKit sources relating to BiDi text. If that's not enough pain, read http://unicode.org/reports/tr9/ http://unicode.org/reports/tr9/ (the unicode BiDi algorithm) If you're still liking it, I know a few people who'd love to hire you :)
- bzbarsky 15y agoI think you're confusing your logical and physical, or I'm misunderstanding you. Moving your mouse happens over the physical text and sets the selection endpoints. Then everything that's logically (as opposed to physically) between those endpoints is highlighted. Your "I expected" diagram is showing the text physically between the endpoints, not the text logically between them...