[BRLTTY] API to change text table

payman shaykhmehdi payman.shaykhmehdi at gmail.com
Wed Jul 3 04:13:30 EDT 2024


Hi again,
I'm working on this project in my free time, so sorry for these late
checking and reply,
know that I've time to resume what I wanted to do, using your suggestion,
I've written the following code to change the text table :

const char *table_name = "ar.ttb";
> int result = brlapi_setParameter( BRLAPI_PARAM_LITERARY_BRAILLE_TABLE,
>                                    0.
>                                     BRLAPI_PARAMF_GLOBAL,
>                                     table_name,
>                                     sizeof(table_name));


but I get an "invalid parameter" error.

Am I missing something?


On Sat, Jun 15, 2024 at 10:37 PM Dave Mielke <Dave at mielke.cc> wrote:

> [quoted lines by payman shaykhmehdi on 2024/06/15 at 08:37 +0330]
>
> >I'm writing a braille learning application for persian users. It needs to
> >be sure that the braille table for brltty is persian. So I need to change
> >the text table from within my application code. But it seems that
> >libbrlapi doesn't have this functionality.
>
> Yes, you can already do that. You do it via BrlAPI's parameter interface,
> i.e. via the brlapi_setParameter() function. The two parameters of
> particular interest in your case are BRLAPI_PARAM_COMPUTER_BRAILLE_TABLE
> and BRLAPI_PARAM_LITERARY_BRAILLE_TABLE.
>
> --
> 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   |
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brltty.app/pipermail/brltty/attachments/20240703/58c00a1d/attachment.html>


More information about the BRLTTY mailing list