On Tue, 28 Jan 2003, Angus Leeming wrote:

> Of course, I don't know what I'm doing when it comes to the nitty gritty 
of
> creating an input context,


I don't know about the input context any more than you don't, but somebody 
has to deal with it to solve the CJK-LyX problem,....sigh...


>but can't you create and then destroy a new one
> each time you toggle the input method? That's what my patch to input.c
> does. 


Well, my test shows that your input.c still does not change the input 
context, i.e., preedit position, etc.  The code looks fine to me but it 
does not function as expected. 



> The code compiles and DOES NOT CRASH when I use it, so that's a start.


In your "trial" xforms box, I can link with the input method. That is I 
can compose CJK-characters through input method, but when I hit 
"space-bar" on the keyboard, the composed CJK-characters disappear from 
the box.



> assume that you'll have to move the code in lyxim into the xforms 
library
> to actually proceed from here (input CJK) but that was the point of the
> excercise wasn't it?


Yes, that was my intention.


Oh, by the way, the "DUMMY_FONT_NAME" is

#define DUMMY_FONT_NAME       "-*-*-*-r-normal--14-130-75-75-*-*"



Regards,

 
cghan 

Reply via email to