[BRLTTY] Xbrlapi

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Dec 11 17:57:30 EST 2006


Willie Walker, le Mon 11 Dec 2006 17:48:19 -0500, a écrit :
> > >Orca currently only has bindings for CMD_FWINLT, CMD_FWINRT, CMD_LNUP,
> > >CMD_LNDN, CMD_TOP_LEFT, CMD_BOT_LEFT, and CMD_HOME, and it also listens
> > >for any cursor routing key.  
> > 
> > I suggest you ignoreKeyRange() everything, acceptKeyRange() the routing key
> > block, and acceptKeySet() a list containing the other keys.
> 
> Thanks!  I'm having trouble figuring out how to express "everything".
> Would that be:
> 
> everything=[0, 0x1FFFFFFFFFFFFFFF]

Rather [0, KEY_FLAGS_MASK|KEY_TYPE_MASK|KEY_CODE_MASK]

> routingKeyBlock=[KEY_CMD_ROUTE, KEY_CMD_ROUTE+<display width>]

I'd rather say

[KEY_CMD_ROUTE,KEY_CMD_ROUTE|KEY_CMD_ARG_MASK]

> Where KEY_CMD_ROUTE=(KEY_TYPE_CMD | 0x20000) and
> KEY_TYPE_CMD=0x0000000020000000?

KEY_CMD_ROUTE is already defined in the brlapi module to (KEY_TYPE_CMD |
0x10000)

> In addition, for each of the commands, do I express them using the
> KEY_CMD_* constants, such as KEY_CMD_HOME,

Yes.

> which is defined to be (KEY_TYPE_CMD | 29)?

Mmm, no, it's defined to
KEY_SYM_HOME = (KEY_TYPE_SYM | 0x0000ff50)
(again, in the brlapi module).

> Also, acceptKeySet is not implemented in the Python bindings.  Can I
> call acceptKeyRange giving it ranges of length 1?

For experimenting right now, yes.  I'll implement it.

> Finally, is the key range inclusive, or does it exclude the last value
> in the range?

It is inclusive.

Samuel


More information about the BRLTTY mailing list