AAClause / BrailleExtender

NVDA add-on that improves braille support
https://andreabc.net/projects/NVDA_addons/BrailleExtender/
GNU General Public License v2.0
16 stars 17 forks source link

Support custom braille tables #138

Open sukiletxe opened 1 week ago

sukiletxe commented 1 week ago

Hello, NVDA 2024.3 incorporates the option to add custom tables. When using these tables, Braille Extender stops working and also stops the tables from working. Tested with Experimental braille tables, which copies over the Spanish tables for easier editing

The culprit seems to be the function getCurrentBrailleTables in utils, which is used by many patches. This function only uses brailleTables.TABLES_DIR, which is a constant for the builtin tables. Now, NVDA has more methods to check extra tables: namely, brailleTables._tablesDirs (chainmap, keys are addon names and builtin, values are directories where the tables, both from addons and builtin ones, are stored), listTables (returns a list of BrailleTable objects) and getTable (returns a BrailleTable object from its filename).

I don't know if fixing this function to use these new methods will fix anything, but I found this information, and I hope it will make things easier. Could you please add support for custom tables?

Thanks!