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-09-26 19:54:52 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-09-26 19:54:52 (GMT)
commit8e303788afd018b58c341813685d2ed3fdeebfcf (patch)
tree81f1bb3928a138317cc8686904bfcfcaa1f6c085 /epubview
parent833c9fa4aaed5405fc379950ec9a46e789d11b08 (diff)
Comment unneeded code
Part of the text to speech unused code. Grrr... When we implement tts in epub, we need see how process only a part of the document, because chapters can be really big, is different than in the txt backend where we are working with one page by time. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'epubview')
-rw-r--r--epubview/epubview.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/epubview/epubview.py b/epubview/epubview.py
index 8b49881..fbbca8e 100644
--- a/epubview/epubview.py
+++ b/epubview/epubview.py
@@ -499,14 +499,14 @@ class _View(Gtk.HBox):
process_file = False
GObject.idle_add(self._load_file, next_file)
- if process_file:
- # 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)
+# if process_file:
+# # 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