Am 29.01.2011 um 18:51 schrieb Edwin Leuven: > Stephan Witt <st.w...@gmx.net> wrote: >> I tried to scale the thickness of the dotted line with zoom factor. >> Of course this is pure heuristics. If you want to play with it: >> have a look at the RowPainter::RowPainter constructor. > > mm, 1 pixel is too thin, 2 too thick :-/
Yes, that's tricky. Here is some room for improvements of the row painter code: * the scaling (of the line thickness) does not correspond with the vertical row distance * the scaling does not correspond with the left margin width * the scaling does not correspond with the cursor thickness (there are multiple complaints about cursor visibility already) I didn't start with it because I'm afraid to touch the rowpainter and its interaction with other painter classes. I think we want to get 2.0.0 out of the door some day. >>> when the cursor is in a misspelled word the dotted lines are not >>> painted: is this intentional? >> >> Yes. The idea is to avoid marking unfinished words as misspelled. > > i was troubled by clicking on a misspelled word and the dotted lines > disappearing > > (these may be finished words, misspelled or not recognized by the > spellchecker such as names) "Unfinished" refers to the word you are editing now. > so on entry (mouse click or arrows) i expect to keep the underlining > (a misspelled word is a misspelled word) > > on editing the word it may make sense to not paint the line, but even > here i am not so sure since the underlining provides feedback > (assuming we are updating continuously) > > i checked Word: > > no underlining when typing a new word, and misspelling is applied > after the cursor leaves the word > > on entry of a misspelled word the underlining is maintained > > on edit of misspelled word the underlining is maintained until the > word is spelled correctly > > ... > > what do people expect from other editors? I already checked open-office, eclipse and apple mail. All of them don't mark an unfinished word at first. Apple mail has exact the same behavior as LyX has now. Office and eclipse are doing the same as you are describing for word. Stephan