2013/4/28 stephane ducasse <stephane.duca...@free.fr> > Hi denis > > Alain is gone on vacation but it told me that if you code scale he will > throw away what he did :) > May be the decorators that alain wrote can be merged. > In any case this is excellent to get a better system. >
Yes. This is why I work on this project. But my first proposals was not make editor for large text. I actually not think about it at all. My main idea is make clean and extendible text editor. So anybody can understand how layout built, where text insertion happens, how it processed, how cursor wors and etc. I want text editor which is not required hacks to simple tasks like allow only numbers, hide cursor, disable text selection, make masked input, make smart completions and etc. > Stef > > > On Apr 27, 2013, at 5:17 PM, Denis Kudriashov <dionisi...@gmail.com> > wrote: > > > I should say it is not difficult to do with current design. I were > > think about it and current layout building logic requires little > > changes, maybe just one spesific method. > > > > But there is cases where any text change required rebuilding full > > layout. Fo example, single line text with wrapping mode. > > > > > > 2013/4/27, Igor Stasenko <siguc...@gmail.com>: > >> Very impressive progress, Denis! :) > >> > >> I going to finish low-level stuff in Athens (path approximation / > >> point location) > >> and then go straight to text rendering with existing Text. > >> Next stage will be to take TxText model and provide rendering for it > >> with Athens, > >> as well as review the code. > >> > >> About text editing and re-layout. > >> It should be possible that any local update (which affecting only > >> single character span or multiple adjusted character spans will > >> require only local recalculations of text layout). Otherwise there is > >> no reason why in our model we don't keep whole text in single big > >> buffer (like Text does). > >> Splitting text on multiple spans was the reason to make local layout > >> updates possible. > >> But i know it is not that easy to do :) > >> > >> > >> -- > >> Best regards, > >> Igor Stasenko. > >> > >> > > > > >