2014-07-16 19:10 GMT-03:00, Alex Baines :
All four coords are sent to ibus, I’m not sure how it uses the width and
height though.
I looked it up, wondering if this is the correct function:
http://ibus.googlecode.com/svn/docs/ibus-1.5/IBusEngine.html#IBusEngine-set-cursor-location
x : X coordinate of the cursor.
y : Y coordinate of the cursor.
w : Width of the cursor.
h : Height of the cursor.
OK, no idea how is that any better than the non-description of
SDL_SetTextInputRect… Maybe I should look up what it does on Windows
to get an idea of what it’s supposed to do.
I tried bruteforcing by doing this, since I assumed that maybe the
rectangle is 0?0 and so the candidate list may have been the same
size:
SDL_Rect rect;
rect.x = 10;
rect.y = 10;
rect.w = 100;
rect.h = 300;
SDL_SetTextInputRect(&rect);
Alas, that did nothing
After you press space, try pressing the down arrow, does the candidate
list not appear then either?
Nope, regardless of whether I press ?, ? or space, even multiple
times. The candidate list is definitely working though because I can
change the kanji, it’s just invisible.
No, the application never has to render the candidate list, only the
placeholder text that is being edited.
Oh OK, good to know.
I’m not very familiar with Anthy but in my limited testing it didn’t
seem to open a candidate list in any application (i.e. firefox, gedit)
unless I pressed the down arrow after pressing the space bar to choose a
different option.
I use Anthy all the time (I talk to Japanese people), so I know
perfectly how it works (the first space press selects the first
kanji, further presses or the arrow keys make the candidate list
appear to choose another kanji)