Le 24/10/2012 03:07, Igor Stasenko a écrit :
On 24 October 2012 00:09, [email protected] <[email protected]> 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.
Great! Would it be possible to make it abstract enough to be able to put
non-character objects in the text? It's very convenient in some cases
(figures, images, buttons, forms, etc...), and is a good test of how
clean is the formatting and navigation code.
I did extend the VisualWorks text editor for an hypermedia in 1993 and
managed to include any widget as a character... I could try that again
with the current TextMorph, if someone needs it, but I'd better wait for
a very motivated Igor to build the perfect TextMorph :)
Phil
2012/10/23 Denis Kudriashov <[email protected]>
Hello
2012/10/23 Igor Stasenko <[email protected]>
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).
--
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