From 59caaf5ca771cd80c74253fd26b2671eb199b8bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20B=C5=82aut?= Date: Tue, 4 Mar 2014 10:13:23 +0100 Subject: [PATCH 1/1] [epub, mobi] hyphenate all kinds of documents and annotation style improvement --- librarian/epub.py | 3 +-- librarian/epub/style.css | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/librarian/epub.py b/librarian/epub.py index b079d65..8220ccb 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -47,9 +47,8 @@ def set_hyph_language(source_tree): pass def hyphenate_and_fix_conjunctions(source_tree, hyph): - """ hyphenate only powiesc, opowiadanie and wywiad tag""" if hyph is not None: - texts = etree.XPath('//*[self::powiesc|self::opowiadanie|self::wywiad]//text()')(source_tree) + texts = etree.XPath('/utwor/*[2]//text()')(source_tree) for t in texts: parent = t.getparent() newt = '' diff --git a/librarian/epub/style.css b/librarian/epub/style.css index c773481..bf44032 100644 --- a/librarian/epub/style.css +++ b/librarian/epub/style.css @@ -110,7 +110,7 @@ p .annotation { margin-bottom: 0.3em; - text-align: left; + text-align: justify; } .block -- 2.20.1