Le 23/10/2012 21:01, Denis Kudriashov a écrit :
Hello
2012/10/23 Igor Stasenko <siguctua@gmail.com <mailto:siguctua@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).
There is some code underway (I think it's buried in one of the issue) where I was trying to extract that sort of code and move it as a Keymapping shortcut. With the current TextMorph, it's possible to do what you describe even if the code architecture makes it a bit difficult. No subclassing needed :)
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.
It remain to be seen if a really clean and simple TextMorph is doable. Text layout (compositing) algorithms are, in my mind, complex things. You need to invest a lot of time in understanding the code to be able to change or redo it. Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95