mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Have Textile TXT output use textile unsmarten.
This commit is contained in:
parent
d8e86c426f
commit
b3b536add9
@ -15,7 +15,7 @@ from calibre.ebooks.htmlz.oeb2html import OEB2HTML
|
|||||||
from calibre.ebooks.oeb.base import XHTML, XHTML_NS, barename, namespace, rewrite_links
|
from calibre.ebooks.oeb.base import XHTML, XHTML_NS, barename, namespace, rewrite_links
|
||||||
from calibre.ebooks.oeb.stylizer import Stylizer
|
from calibre.ebooks.oeb.stylizer import Stylizer
|
||||||
from calibre.ebooks import unit_convert
|
from calibre.ebooks import unit_convert
|
||||||
from calibre.ebooks.txt.unsmarten import unsmarten
|
from calibre.ebooks.textile.unsmarten import unsmarten
|
||||||
|
|
||||||
class TextileMLizer(OEB2HTML):
|
class TextileMLizer(OEB2HTML):
|
||||||
|
|
||||||
@ -43,6 +43,7 @@ class TextileMLizer(OEB2HTML):
|
|||||||
self.style_smallcap = False
|
self.style_smallcap = False
|
||||||
|
|
||||||
txt = self.mlize_spine(oeb_book)
|
txt = self.mlize_spine(oeb_book)
|
||||||
|
if self.opts.unsmarten_punctuation:
|
||||||
txt = unsmarten(txt)
|
txt = unsmarten(txt)
|
||||||
|
|
||||||
# Do some tidying up
|
# Do some tidying up
|
||||||
|
Loading…
x
Reference in New Issue
Block a user