[BRLTTY] Using brltty to send Unicode characters
Dave Mielke
dave at mielke.cc
Mon Apr 16 06:01:40 EDT 2018
[quoted lines by Syed Waris on 2018/04/16 at 14:17 +0530]
>The problem is when a hindi character (example 'स' - unicode 0x938) needs
>to be sent from brltty to some other application, the brltty is not
>recognising it as a valid character and not sending it.
>
>Code snippet:
>enqueueCommand(BRL_CMD_BLK(PASSCHAR) | wideBuffer[0] );
>Here in brltty.log I got:
>[brltty] command: 002938 (unknown command: 002938)
Yes, the way you're trying to do it is logical but doesn't work. The reason for
this is that the high-order byte for a 16-bit character is packed (for backward
compatibility) in a different place. You need to do it like this:
BRL_CMD_BLK(PASSCHAR) | BRL_ARG_SET(character)
--
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc | Ottawa, Ontario | Twitter: @Dave_Mielke
Phone: 1-613-726-0014 | Canada K2A 1H7 |
More information about the BRLTTY
mailing list