On 24 October 2012 00:09, p...@highoctane.be <p...@highoctane.be> wrote: > Oh, well, I'll jump in as I spend an inordinate amount of time learning > about that text stuff. > > One requirement I'd love t see covered: have a proper text model that scales > when the size of the text increases a lot. > > What is currently implemented is not that bad, it is just with too many > layers and documentation is poor. > > But most of what's in there is needed for rendering the text, laying out the > material. > > It just does it badly, and gets the fonts metrics wrong (italics, bold...). > > And also, the TextMorph is married with the SHStyler and SmalltalkEditor for > no good reason at all. > > What would be great is already a BasicTextMorph with a BasicEditor that just > edit a Text with TextAttributes. > > This would leave out the Smalltalk marriage and provide a good enough > foundation to build upon.
Yeah.. this stuff cries for cleanup. The current code is a result of different people at different time(s) adding more and more code to it without revising / cleaning it up. > > Phil > > 2012/10/23 Denis Kudriashov <dionisi...@gmail.com> >> >> Hello >> >> 2012/10/23 Igor Stasenko <siguc...@gmail.com> >>> >>> Also, recently we started working on new text model. With the goal to >>> replace an clean Text, >>> text editing and text layout in our system (and sure thing , >>> rendering). This is also requires a lot of work. >> >> >> I am very interesting in details. Do you have description or code >> somewhere? >> >> I always think about new text editor implementation based on Presenty. I >> want remove all hardcoded stuff like cursor navigation arrow keys, >> copy/paste shortcuts, keyboard based characters input. >> User should have facility to specify how execute such primitive actions. >> For example, user can just draw characters on screen to input it or input it >> by voice. User can add buttons to move cursor, can add visual keyboard >> (maybe native for OS). >> >> And I think about subclassing TextMorph to implement my ideas. But >> TextMorph is so crappy. So I will be happy if somebody give me clean >> implementation of TextMorph. > > -- Best regards, Igor Stasenko.