mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:48:36 +02:00
...
This commit is contained in:
parent
9088903f4c
commit
9b1ae4ba97
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ def convert(self, stream, options, file_ext, log,
|
|||
length = docanalysis.line_length(.5)
|
||||
preprocessor = HeuristicProcessor(options, log=getattr(self, 'log', None))
|
||||
txt = preprocessor.punctuation_unwrap(length, txt, 'txt')
|
||||
txt = separate_paragraphs_single_line(txt)
|
||||
|
||||
if getattr(options, 'enable_heuristics', False) and getattr(options, 'dehyphenate', False):
|
||||
docanalysis = DocAnalysis('txt', txt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue