Is there a way to pass unicode text to NVDA?
Currently I'm trying to create some scripts for NVDA to suit my personal needs.
During that I have come to the following problem: in lithuanian
language, there are some unicode characters like ą, č, ę, ė, į, š, ų
and ū. In my task I want NVDA to process these characters during
speech. I have experiencing two differennt issues here:
-> KeyError: \xb3ui.message('ą-č-ę-ė-į-š-ų-ū'):
However, the following output:
The 2nd example:ui.message(u'ą-č-ę-ė-į-š') works great.
-> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 inui.message('šeima') # "Family" meaning in lithuanian
position 0: ordinal not in range(128)
And again, >>> ui.message(u'šeima') is also correct.
Here my question is: is it possible to make NVDA speaking this type of
unicode charrs (when they are in a variable)?
Thanks in advance.text = 'šeima'
Hi Paulius,toggle quoted messageShow quoted text
All you need to do is the same for variables as for literals.
text = u'unicode text'
You can confirm in the console with type(variable)
It will return str or unicode.
On 6/22/2019 9:31 AM, Paulius wrote: