Codebase list sugar-read-activity / 8e30378
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
1 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
498498 process_file = False
499499 GObject.idle_add(self._load_file, next_file)
500500
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)
509509
510510 def _prepare_text_to_speech(self, page_text):
511511 i = 0