On 05-Apr-2002 cghan wrote:

> Sorry if I was too sloppy....

Well you made it a lot better with this email #:O)

> Let me explain the situation with the attached four screen shots:
> 
> 1. In the lyx main window, if I type local (multibyte) characters from the
> local input method, the characters appear on the screen just like the
> English typing(the first screen shot-lyx1.png).
> 
> 2. If I type "enter", then the whole local characters are now put
> on the same spot (screenshot 2-llyx2.png). The way characters are written
> in this way is called "on the spot".
> 
> 3.However in the footnote inset environment, if I type local characters,
> the characters appear outside of the environment (screenshot3-llyx3.png).
> Actually, the cursor for the local characters are outside the footnote
> box.
> 
> 4. If I type "enter", then the local characters outside of the footnote
> box are now put inside of the footnote box(screenshot4-lyx4.png). this
> way of inputting characters are called the "over the spot".
> 
> Hopefully, you've got the situation clearly, so that you may have an idea.

Well I have to admit if I wouldn't understand it now I would be really dumb ;)

This is typically the not handling of a "LFUN" inside the InsetText's
localDispatch and/or the wrong handling of it in the main/loop (not
considering that the cursor may be inside theLockingInset()!)

You would have to tell me what LFUN is called on the first action. Is it
an LFUN only available in CJK-Lyx?

Just send me the relevant code pieces (LFUN and if used functions the
LFUN calls and I'll fix it for you on the fly ;), but probably you can
fix it too by not using bv->text and using bv->getLyXText().

Hope this helps,

         Jug

BTW.: The fix for the #312 problem is:


Index: src/insets/insettext.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.C,v
retrieving revision 1.280
diff -u -p -r1.280 insettext.C
--- src/insets/insettext.C      3 Apr 2002 13:59:04 -0000       1.280
+++ src/insets/insettext.C      5 Apr 2002 12:16:09 -0000
@@ -1190,7 +1190,7 @@ InsetText::localDispatch(BufferView * bv
                        }
                }
                lt->selection.cursor = lt->cursor;
-               updwhat = CURSOR_PAR;
+               updwhat = CURSOR | CURSOR_PAR;
                updflag = true;
                result = DISPATCHED_NOUPDATE;
                break;

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

There is an old time toast which is golden for its beauty.
"When you ascend the hill of prosperity may you not meet a friend."
                -- Mark Twain

Reply via email to