orca r4372 - in branches/gnome-2-24: . src/orca/scripts/apps/soffice
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4372 - in branches/gnome-2-24: . src/orca/scripts/apps/soffice
- Date: Mon, 1 Dec 2008 18:49:20 +0000 (UTC)
Author: joanied
Date: Mon Dec 1 18:49:20 2008
New Revision: 4372
URL: http://svn.gnome.org/viewvc/orca?rev=4372&view=rev
Log:
* src/orca/scripts/apps/soffice/speech_generator.py:
Fix for bug #562532 - When using Openoffice.org Spreadsheet with
Orca, the cell coordinates are not spoken for all locales.
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/orca/scripts/apps/soffice/speech_generator.py
Modified: branches/gnome-2-24/src/orca/scripts/apps/soffice/speech_generator.py
==============================================================================
--- branches/gnome-2-24/src/orca/scripts/apps/soffice/speech_generator.py (original)
+++ branches/gnome-2-24/src/orca/scripts/apps/soffice/speech_generator.py Mon Dec 1 18:49:20 2008
@@ -280,7 +280,17 @@
if script_settings.speakCellCoordinates:
nameList = obj.name.split()
- utterances.append(nameList[1])
+ # We were assuming that the word for "cell" would always
+ # precede the coordinates. This is not the case for all
+ # languages (e.g. Hungarian). See bug #562532. Therefore
+ # examine each item and choose the one which contains a
+ # digit.
+ #
+ for name in nameList:
+ for char in name.decode("UTF-8"):
+ if char.isdigit():
+ utterances.append(name)
+ return utterances
else:
# Check to see how many children this table cell has. If it's
# just one (or none), then pass it on to the superclass to be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]