Codebase list sugar-read-activity / 503f2a9
Re-enable text to speech in epub backend Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 12 years ago
1 changed file(s) with 0 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
453453 self._on_page_changed(0, int(pageno))
454454
455455 # prepare text to speech
456 """
457456 html_file = open(self._loaded_filename)
458457 soup = BeautifulSoup.BeautifulSoup(html_file)
459458 body = soup.find('body')
460459 tags = body.findAll(text=True)
461460 self._all_text = ''.join([tag for tag in tags])
462461 self._prepare_text_to_speech(self._all_text)
463 """
464462
465463 def _prepare_text_to_speech(self, page_text):
466464 i = 0