Re-enable text to speech in epub backend
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Gonzalo Odiard
12 years ago
453 | 453 | self._on_page_changed(0, int(pageno)) |
454 | 454 | |
455 | 455 | # prepare text to speech |
456 | """ | |
457 | 456 | html_file = open(self._loaded_filename) |
458 | 457 | soup = BeautifulSoup.BeautifulSoup(html_file) |
459 | 458 | body = soup.find('body') |
460 | 459 | tags = body.findAll(text=True) |
461 | 460 | self._all_text = ''.join([tag for tag in tags]) |
462 | 461 | self._prepare_text_to_speech(self._all_text) |
463 | """ | |
464 | 462 | |
465 | 463 | def _prepare_text_to_speech(self, page_text): |
466 | 464 | i = 0 |