[orca-list] Multilingual Orca
- From: Timothy Hobbs <timothyhobbs seznam cz>
- To: orca-list gnome org
- Subject: [orca-list] Multilingual Orca
- Date: Sat, 31 Dec 2011 12:33:41 +0100
I'd like to know why this message never came through to the mailing
list. Sending again.
Timothy Hobbs pÃÅe v So 31. 12. 2011 v 01:24 +0100:
Mrs. Diggs,
I was very much wanting to be a tester for orca master for you, and to
maybe even help debug a bit(I cannot make any promises about my Python
skills, I have never contributed to a major project in any language
other than Lisp and Haskell, and in those instances my contributions
where of the most minor sort). I'm a sighted user who is here merely
out of interest.
Unfortunately I use my computer in Czech, and
<https://bugzilla.gnome.org/show_bug.cgi?id=419742> is a total blocker
for me. I cannot understand system messages in Czech when espeak's
voice is set to en, and I cannot understand English text when espeak's
voice is set to cz. I read most of the relevant code last week but am
coming up towards exams next month so I probably will not work on any
solutions to this bug in the very near future(Perhaps when I fail my
exams and they kick me out of school I will have more time on my
hands :D). I had the idea of taking the variable "voices" from
settings.py and making a class of it(perhaps we could name it
languageProfile). And then creating a Dict object, pairing "LOCAL"
values from ACSS to lagnaugeProfiles.
I would then make a global variable of the current local.
I would then make the functions(These functions would simply look up the
correct values in the languageProfile Dictionary object):
get_current_acss(voice=default,uppercase,hyperlink,or system)
"""Returns an acss instance for the current language."""
get_localized_acss(local=LOCAL,
voice=default,uppercase,hyperlink,system)
"""Returns an acss instance for the given LOCAL."""
get_system_acss(voice=default,uppercase,hyperlink,or system)
"""Returns an acss instance for the system LOCAL."""
Then let the orca scripts pass the outputs of those functions to the
speak function. For example, in LibreOffice writer we know the language
of the text, so we should automatically speak using the correct local.
Does this seem sensible to you? I am asking as much to check my
understanding of the orca code, as to propose a change.
Thank you for your patience with me,
Timothy Hobbs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]