Skip to content

Commit

Permalink
Fixup: adds louis/tables to resolve tables
Browse files Browse the repository at this point in the history
  • Loading branch information
AAClause committed Apr 23, 2020
1 parent 5cc8c0d commit e84e594
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/globalPlugins/brailleExtender/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def bkToChar(dots, inTable=-1):
if inTable == -1: inTable = config.conf["braille"]["inputTable"]
char = chr(dots | 0x8000)
text = louis.backTranslate(
[osp.join(r"louis\tables", inTable),
"braille-patterns.cti"],
[osp.join(r"louis\tables", inTable), "braille-patterns.cti"],
char, mode=louis.dotsIO)
chars = text[0]
if len(chars) == 1 and chars.isupper():
Expand Down Expand Up @@ -482,11 +481,12 @@ def getCurrentBrailleTables(input_=False, brf=False):
if input_:
mainTable = os.path.join(brailleTables.TABLES_DIR, brailleInput.handler._table.fileName)
group = brailleTablesExt.getGroup(usableIn='i')
if group: group = group.members
else:
mainTable = os.path.join(brailleTables.TABLES_DIR, config.conf["braille"]["translationTable"])
group = brailleTablesExt.getGroup(usableIn='o')
if group: group = group.members
if group:
group = group.members
group = [f if '\\' in f else osp.join(r"louis\tables", f) for f in group]
tbl = group or [mainTable]
tables += tbl + [
os.path.join(brailleTables.TABLES_DIR, "braille-patterns.cti")
Expand Down

0 comments on commit e84e594

Please sign in to comment.