I made the changes as suggested and seems working. Additionally, needed to
set [null] in the outbuf (from liblouis) . Else it is filled with some
extra characters.
1. lou_translate (table, inbuf, &inlen, outbuf, &outlen, NULL, NULL, o
utpos, inpos, NULL, 132)) // 132 => ucbrl and dotsIO
2. // Just set the null terminator.
outbuf[outlen] = 0;
3. brlapi_writeTextWin(0, outbuf, 1) >= 0) // 1 => wide char
thanks,siju samuel
On Tue, Aug 27, 2013 at 3:44 PM, Samuel Thibault <
[email protected]> wrote:
> Siju Samuel, le Mon 26 Aug 2013 14:16:35 -0500, a écrit :
> > example text: "The abc"
> >
> > 1. lou_translate ("The abc") => "! abc"
>
> Mmm, so lou_translate actually writes brf characters, not unicode
> characters? This will not work properly whenever brltty itself is not
> using nabcc translation. From the liblouis documentation, it seems you
> want to enable the ucBrl and dotsIO flags, so it's unicode dot patterns
> which are produced. You can then pass it to brlapi_writeTextWin setting
> wide to 1.
>
> Samuel
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: [email protected]
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
>
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty