From 03cb13e7ab0f8c8141172d5c94093751d3275dd1 Mon Sep 17 00:00:00 2001 From: "Marshall T. Vandegrift" Date: Fri, 19 Dec 2008 23:18:26 -0500 Subject: [PATCH] Make CSS namespace additions compliant with the CSS3 namespace rec. Set the MSLIT profile to its actual apparent resolution of 100dpi. --- src/calibre/ebooks/oeb/stylizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index 6f1fc5d774..b6e4ffc184 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -26,7 +26,7 @@ from calibre.ebooks.oeb.base import XHTML, XHTML_NS, CSS_MIME, OEB_STYLES from calibre.ebooks.oeb.base import barename, urlnormalize from calibre.resources import html_css -XHTML_CSS_NAMESPACE = "@namespace url(%s);\n" % XHTML_NS +XHTML_CSS_NAMESPACE = '@namespace "%s";\n' % XHTML_NS HTML_CSS_STYLESHEET = cssutils.parseString(html_css) HTML_CSS_STYLESHEET.namespaces['h'] = XHTML_NS @@ -126,7 +126,7 @@ class Page(object): class Profiles(object): PRS505 = Page(584, 754, 168.451, 12, [7.5, 9, 10, 12, 15.5, 20, 22, 24]) - MSLIT = Page(652, 480, 168.451, 13, [10, 11, 13, 16, 18, 20, 22, 26]) + MSLIT = Page(652, 480, 100.0, 13, [10, 11, 13, 16, 18, 20, 22, 26]) class Stylizer(object):