Discussion on Hacker News. This blog post is a response to Text Rendering Hates You (HN discussion), and adds some new gotchas that pop up when dealing with text.
I'm glad you posted this, as this is something I've been pondering on for the past couple of weeks. More specifically, how a text editor differentiates key presses from text when working with...
I'm glad you posted this, as this is something I've been pondering on for the past couple of weeks. More specifically, how a text editor differentiates key presses from text when working with abstract characters or other languages. What I found most interesting was something that I hadn't put a lot of thought into, which was how a text editor behaves when a single line contains two different languages that read from opposite directions. For some reason I found it fascinating how, when starting from the left, moving right, and highlighting a line containing an English word followed by a word in Arabic using the arrow keys, that once the Arabic word is reached, the carat will jump to the right side of the word (the beginning) and highlight from right to left while still pressing the right arrow key.
Hopefully that made sense. I'm a very poor typer on my phone and tend to have rambly sentences due to me constantly losing my train of thought while I concentrate on the placement of my big thumbs.
Discussion on Hacker News.
This blog post is a response to Text Rendering Hates You (HN discussion), and adds some new gotchas that pop up when dealing with text.
I'm glad you posted this, as this is something I've been pondering on for the past couple of weeks. More specifically, how a text editor differentiates key presses from text when working with abstract characters or other languages. What I found most interesting was something that I hadn't put a lot of thought into, which was how a text editor behaves when a single line contains two different languages that read from opposite directions. For some reason I found it fascinating how, when starting from the left, moving right, and highlighting a line containing an English word followed by a word in Arabic using the arrow keys, that once the Arabic word is reached, the carat will jump to the right side of the word (the beginning) and highlight from right to left while still pressing the right arrow key.
Hopefully that made sense. I'm a very poor typer on my phone and tend to have rambly sentences due to me constantly losing my train of thought while I concentrate on the placement of my big thumbs.