Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-06-10 21:32:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-06-10 21:32:35 (GMT)
commit275dda563f1febb1fdab12eb12f52d9453934d03 (patch)
tree9540f51886baa07857126e8cc7dff88e217597dd
parent998b8f517295d84d02d07cfe3e90b643cb58633e (diff)
Fix text to speech restart after 40 words in epub backend
-rw-r--r--epubadapter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/epubadapter.py b/epubadapter.py
index 9b691b8..d9db1fb 100644
--- a/epubadapter.py
+++ b/epubadapter.py
@@ -71,6 +71,7 @@ class EpubViewer(epubview.EpubView):
for word_tuple in self.word_tuples[self.current_word:end_range]:
file_str.write('<mark name="' + str(i) + '"/>' + word_tuple[2])
i = i + 1
+ self.current_word = i
file_str.write('</speak>')
return file_str.getvalue()