On Wed, Apr 6, 2016 at 11:02 AM, Igor Stasenko <siguctua@gmail.com> wrote:
On 6 April 2016 at 11:56, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hi
2016-04-06 9:07 GMT+02:00 Nicolai Hess <nicolaihess@gmail.com>:
What are the main problems with Text, Paragraph, ... and other old TextComponents?
I don't want to write crappy words. But to understand what was wrong you can try with them:
- remove blinking cursor for specific morph instance - hide selection or change it color for specific morph instance - implement validation for input when only digits are allowed - implement masked fields - try to make all this composable
It seems that first two items are really simple tasks. But it is huge pain and hacks at the end.
Yes, Denis, that was i did not mentioned. But as i said my main focus was not trying to fix all of the above , but to enable vector-based rendering for text. The rest was coming as a bonus and future work. Because else, all of it worth nothing if you cannot even render text with Athens..
I tried to do some decent hypertext and noticed that features that allowed to do this in Squeak were scrapped (for good reason, but still). And yeah, for long chunks of text... that's a big no no. Note that ParagraphEditor gets recreated all the time. And that rendering of text when there is bold text + italic + normal just didn't aligned properly on the computed text metrics (with StrikeFont at the time, I do not know if this is solved with TrueType fonts and Cairo). Another pain is the styling of text where the only styler we have is the SHSt80Styler (class name out of my mind, need to check) and that's a huge pain to support other stylings. Doru did something for Pillar at one point (apparently using PetitParser and island parser). I am also looking at Grafoscopio but need more time to understand what's in it. Still TxText is a good thing to have. We must have proper text management for such an OO platform. They manage to do things in Jetbrains tools (IDEA, WebStorm...) and that's pure Java/Swing (from what I know having worked extensively in Swing at one point is that internals of Swing are also messy, but less, and in other ways) Doable then. Big hopes in Bloc/Brick here, will try to do my ideas again with them. Phil
-- Best regards, Igor Stasenko.