.replace(",,", u"\u201E")\
.replace('"', u"\u201D")\
.replace("'", u"\u2019")
+ if node.tag in ('uwaga', 'extra'):
+ t = node.tail
+ node.clear()
+ node.tail = t
node.text = replace_chars(node.text)
node.tail = replace_chars(node.tail)
for child in node:
'</rootfiles></container>')
zip.write(get_resource('epub/style.css'), os.path.join('OPS', 'style.css'))
zip.write(get_resource('res/wl-logo-small.png'), os.path.join('OPS', 'logo_wolnelektury.png'))
+ zip.write(get_resource('res/jedenprocent.png'), os.path.join('OPS', 'jedenprocent.png'))
opf = xslt(metadata, get_resource('epub/xsltContent.xsl'))
manifest = opf.find('.//' + OPFNS('manifest'))