mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
LRF Output: Base font size rescaling now uses both OEB and LRF algorithms.
This commit is contained in:
parent
3725e7eb79
commit
d57e1d98c3
@ -29,7 +29,7 @@ class LRFOptions(object):
|
|||||||
self.use_metadata_cover = True
|
self.use_metadata_cover = True
|
||||||
self.output = output
|
self.output = output
|
||||||
self.ignore_tables = opts.linearize_tables
|
self.ignore_tables = opts.linearize_tables
|
||||||
self.base_font_size = 0
|
self.base_font_size = opts.base_font_size
|
||||||
self.blank_after_para = opts.insert_blank_line
|
self.blank_after_para = opts.insert_blank_line
|
||||||
self.use_spine = True
|
self.use_spine = True
|
||||||
self.font_delta = 0
|
self.font_delta = 0
|
||||||
|
@ -301,7 +301,7 @@ class MobiReader(object):
|
|||||||
root = html.fromstring(self.processed_html)
|
root = html.fromstring(self.processed_html)
|
||||||
if root.xpath('descendant::p/descendant::p'):
|
if root.xpath('descendant::p/descendant::p'):
|
||||||
from lxml.html import soupparser
|
from lxml.html import soupparser
|
||||||
self.log.warning('Malformed markup, parsing using BeatifulSoup')
|
self.log.warning('Malformed markup, parsing using BeautifulSoup')
|
||||||
root = soupparser.fromstring(self.processed_html)
|
root = soupparser.fromstring(self.processed_html)
|
||||||
|
|
||||||
if root.tag != 'html':
|
if root.tag != 'html':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user