[BRLTTY] using BrlAPI and speech API in one program

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Aug 25 08:26:24 EDT 2010


marquats at studi.informatik.uni-stuttgart.de, le Wed 25 Aug 2010 14:18:56 +0200, a écrit :
> Also I tried brlapi_enterTtyModeWithPath(NULL, 0, NULL); but this made no
> difference. Still the focus goes to the virtual braille terminal when I
> click on it, and my client doesn't receive the input.

Yes, the focus goes, but the point of giving an empty path is to ignore
the focus and get keyboard events anyway. Did you also use
brlapi_acceptAllKeys()?

> I must either use a function to output the dot-patterns directly, if
> there is one,

There is one: brlapi_writeDots.

> or use 256 different characters of wchar_t, and let brltty use a
> table to translate them to the right dot-patterns.

You can also just use the 256 unicode braille patterns: U+2800 ...
U+28FF. This permits to intermix raw braille and text left for brltty to
translate.

> The Program should also receive dot-patterns entered on the braille
> keyboard of the terminal, if there is one (alternatively, the user could
> enter the dot-patterns on the PC-keyboard, but this is less-than-ideal).

This is possible, just not easily configurable for now, you have to set
retainDots to 1 in Programs/brlapi_server.c and rebuild brltty. Yes,
there are plans to make it configurable from the brlapi client.

Samuel


More information about the BRLTTY mailing list