Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-03-02 16:33:20 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-03-02 16:33:20 (GMT)
commit503f2a90c6b8ac5d1c45f39c348bf4938a89168e (patch)
treed429a3adb2bcf7083830fbaee013d31ddbcb1d5f /epubview
parentd2d63ec148662ff87ed6888c10440956ff960474 (diff)
Re-enable text to speech in epub backend
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'epubview')
-rw-r--r--epubview/epubview.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/epubview/epubview.py b/epubview/epubview.py
index 216f6c7..8db93df 100644
--- a/epubview/epubview.py
+++ b/epubview/epubview.py
@@ -454,14 +454,12 @@ class _View(Gtk.HBox):
self._on_page_changed(0, int(pageno))
# prepare text to speech
- """
html_file = open(self._loaded_filename)
soup = BeautifulSoup.BeautifulSoup(html_file)
body = soup.find('body')
tags = body.findAll(text=True)
self._all_text = ''.join([tag for tag in tags])
self._prepare_text_to_speech(self._all_text)
- """
def _prepare_text_to_speech(self, page_text):
i = 0