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>
Gonzalo Odiard
11 years ago
498 | 498 | process_file = False |
499 | 499 | GObject.idle_add(self._load_file, next_file) |
500 | 500 | |
501 | if process_file: | |
502 | # prepare text to speech | |
503 | html_file = open(self._loaded_filename) | |
504 | soup = BeautifulSoup.BeautifulSoup(html_file) | |
505 | body = soup.find('body') | |
506 | tags = body.findAll(text=True) | |
507 | self._all_text = ''.join([tag for tag in tags]) | |
508 | self._prepare_text_to_speech(self._all_text) | |
501 | # if process_file: | |
502 | # # prepare text to speech | |
503 | # html_file = open(self._loaded_filename) | |
504 | # soup = BeautifulSoup.BeautifulSoup(html_file) | |
505 | # body = soup.find('body') | |
506 | # tags = body.findAll(text=True) | |
507 | # self._all_text = ''.join([tag for tag in tags]) | |
508 | # self._prepare_text_to_speech(self._all_text) | |
509 | 509 | |
510 | 510 | def _prepare_text_to_speech(self, page_text): |
511 | 511 | i = 0 |