From: Bill K. <nb...@so...> - 2022-05-20 07:32:08
|
On Thu, May 19, 2022 at 11:36:39PM -0700, Bill Kendrick wrote: <snip> > > I tried to build current sdl2.0 blanch on windows. > > > > It looks almost fine but I found that onscreen-keyboard does not > > work correctly with compose function. > > Uh oh, hrm, using the sdl2.0 branch here on Kubuntu Linux, > I am also getting some weird behavior. Okay, I believe I fixed the following, by making sure strings were being treated as strings (adding NUL '\0' at the end, which was missing sometimes!) > When I type [h], [e], [l], [l], [o] with the OSK, I get > "hello▯" on the canvas, and in the printf()'d output > from im.c, I noticed: > > im->s o羻, event.text.text o羻 > > I was _not_ using the compose button. > > In fact, playing with it more, as I click the buttons > to spell "hello" again, I'm getting the "unknown character" > rectangle a bunch of times. Just now typing > "helloooooooo", I see: > > he▯ll▯ooo▯oo▯o▯oo However, the compose problem still seems to be in effect. > Oh and interestingly, if I try to type any characters > that would normally compose, e.g. ~, ', or ", they do not > appear unless I type them a second time. So right now, if I type: ['] [a], I get "�", rather than "'a", even without first clicking the [Cmp] (compose) button. This is not the correct behavior. (And, of course, typing ['] at first appears to do nothing. If I type it again, I finally get a "'" on the screen.) Again, this is all with the On-screen Keyboard feature (tuxpaint --onscreen-keyboard). Typing on my physical keyboard seems fine. (i.e., it's a problem at the OSK level, not the IM level, like I mistakenly stated before.) So... OSK experts (Pere? maybe Mark?), what do you think? I've tried doing a diff between 'master' and 'sdl2.0' branches' versions of "onscreen_keyboard.c" and am not finding anything obvious. :-( Thanks in advance! -bill! |