Re: [orca-list] orca and liblouis



I had a problem that might be related. I think it arose from a mixture of
locally built orca (cloned from gitlab) and a distribution-installed
liblouis. Orca wasn't finding the braille table I wanted. You might be
able to check on where orca is searching for the tables. I would use
strace for this e.g.
<https://serverfault.com/questions/219323/monitor-open-process-files-on-linux-real-time>
but that's probably pretty old school. 
Alexander Epaneshnikov writes:
26.12.2020 00:19, Alexander Epaneshnikov ?????:
25.12.2020 23:51, Jason White ?????:


On 12/25/20 2:29 PM, Alexander Epaneshnikov wrote:
I suppose you could also try manually translating a string in Python
to confirm that it works there.

    I tried to do it, but I can't. maybe I just don't know python well.
    can you, or someone else give me the code?

import louis

tables=3D["unicode.dis", "en-us-g2.ctb"]

louis.translateString(tables, "This is a test.")


Substitute your preferred translation table for en-us-g2.ctb (they're
in /usr/share/liblouis/tables), and you'll need to be in uncontracted
mode to check the output, which is in Unicode braille (0x2800-0x28ff).

I don't know whether you need any additional table files other than
the main table in order to get correct Cyrillic translation. The
input string should be UTF-8.


thanks. ok. if i do this and use ru.ctb as second table, i get this:
'?????????????????'
this is similar to the orca output. but as far as I know this isn't
correct.
1. nvda in windows uses this table and outputs completely different
results.
2. my brltty configured to use this contraction table and if I switch
to tty
and tell brltty to use contracted braille my prompt looks different.

something realy wrong hear.
--=20
Sincerely, Alexander.
ok. my mesage was incorrect. i forgot to turn off contracted braille in
orca preferences.
so louis output is correct. it's similar to brltty and nvda.
now i need to understand why it isn't working with orca.
I am glad that python liblouis bindings is working.

--=20
Sincerely, Alexander.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.gnome.org/archives/orca-list/attachments/20201226/ef317eb4/attachment.html
il.gnome.org>

------------------------------

Subject: Digest Footer

_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
me.org



-- 
Peter Rayner
Academic Lead - Climate & Energy College <http://www.climatecollege.unimelb.edu.au>
Clean Air and Urban Landscapes NESP hub <http://www.nespurban.edu.au>
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
mobile +61 402 752 379, skype: petermorag 
zoom id 4431343191, join at  <https://unimelb.zoom.us/j/4431343191?pwd=a1E5Z3JEOTRVQUJsaVdRbVUvR1QyZz09>
mail-to: prayner unimelb edu au TWITTER: @raynerstrings



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]