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
81 | 81 |
speech.play(more_text)
|
82 | 82 |
|
83 | 83 |
def highlight_next_word(self, word_count):
|
|
84 |
pass
|
|
85 |
"""
|
|
86 |
TODO: disabled because javascript can't be executed
|
|
87 |
with the velocity needed
|
84 | 88 |
self.current_word = word_count
|
85 | 89 |
self._view.highlight_next_word()
|
86 | 90 |
return True
|
|
91 |
"""
|
87 | 92 |
|
88 | 93 |
def connect_zoom_handler(self, handler):
|
89 | 94 |
self._zoom_handler = handler
|
551 | 551 |
if filename != self._loaded_filename:
|
552 | 552 |
#self._loaded_filename = filename
|
553 | 553 |
|
|
554 |
"""
|
|
555 |
TODO: disabled because javascript can't be executed
|
|
556 |
with the velocity needed
|
554 | 557 |
# Copy javascript to highligth text to speech
|
555 | 558 |
destpath, destname = os.path.split(filename.replace('file://', ''))
|
556 | 559 |
shutil.copy('./epubview/highlight_words.js', destpath)
|
557 | 560 |
self._insert_js_reference(filename.replace('file://', ''),
|
558 | 561 |
destpath)
|
|
562 |
"""
|
559 | 563 |
|
560 | 564 |
if filename.endswith('xml'):
|
561 | 565 |
dest = filename.replace('xml', 'xhtml')
|