Codebase list sugar-read-activity / 78399f5
Disable word highlighting in epub backend The solution implemented using javascript is not good. There are a problema also, creating tmp files and not removing them. Gonzalo Odiard 12 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8181 speech.play(more_text)
8282
8383 def highlight_next_word(self, word_count):
84 pass
85 """
86 TODO: disabled because javascript can't be executed
87 with the velocity needed
8488 self.current_word = word_count
8589 self._view.highlight_next_word()
8690 return True
91 """
8792
8893 def connect_zoom_handler(self, handler):
8994 self._zoom_handler = handler
551551 if filename != self._loaded_filename:
552552 #self._loaded_filename = filename
553553
554 """
555 TODO: disabled because javascript can't be executed
556 with the velocity needed
554557 # Copy javascript to highligth text to speech
555558 destpath, destname = os.path.split(filename.replace('file://', ''))
556559 shutil.copy('./epubview/highlight_words.js', destpath)
557560 self._insert_js_reference(filename.replace('file://', ''),
558561 destpath)
562 """
559563
560564 if filename.endswith('xml'):
561565 dest = filename.replace('xml', 'xhtml')