Hello,
sorry for sending a duplicate message (the previous was
subject-less).
JMarc> Etienne> It should be possible to modify word-forward in that sense
JMarc> Etienne> too. Can I submit a patch? Let's say, within three days?
JMarc>
JMarc> Well, I don't know. We should probably make new common functions to
JMarc> find previous and next words and use that in all word-related
JMarc> functions. Maybe for 1.0.1. In any case, if you can provide a patch to
JMarc> unify word function, it would be nice.
I see various ways for doing it :
======================================================================
1 -- Just add little blocks of code where needed, as I've done until
now.
======================================================================
2 -- Change the declaration
LyXText::CursorRightOneWord()
to
LyXText::CursorRightOneWord( bool skip_punctuation_too = 0 )
and replace calls
CursorRightOneWord()
by
CursorRightOneWord( 1 )
where this is wanted.
I think this is just putting a 'if (skip_punctuation)', in
CursorRightOneWord, before the block that brings the cursor over the
punctuation after the word itself is passed. (line text.C:2559, I
think).
======================================================================
3 -- Declare and define
LyXText::CursorRightPunctuation()
and use it where needed.
======================================================================
I personally prefer 1 or 2. What do the perl-porters prefer ?
Cheers,
Etienne