X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/fc2ee5e934d0da3535b9be659bbf67ebe9437b47..33165a21eb5b83f96d73e616414a1ee9e7227013:/librarian/pdf.py diff --git a/librarian/pdf.py b/librarian/pdf.py index a0a0899..32fa571 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -29,6 +29,7 @@ functions.reg_substitute_entities() functions.reg_strip() functions.reg_starts_white() functions.reg_ends_white() +functions.reg_texcommand() STYLESHEETS = { 'wl2tex': 'xslt/wl2tex.xslt', @@ -79,7 +80,6 @@ def move_motifs_inside(doc): """ moves motifs to be into block elements """ for master in doc.xpath('//powiesc|//opowiadanie|//liryka_l|//liryka_lp|//dramat_wierszowany_l|//dramat_wierszowany_lp|//dramat_wspolczesny'): for motif in master.xpath('motyw'): - print motif.text for sib in motif.itersiblings(): if sib.tag not in ('sekcja_swiatlo', 'sekcja_asterysk', 'separator_linia', 'begin', 'end', 'motyw', 'extra', 'uwaga'): # motif shouldn't have a tail - it would be untagged text