From ed7eecde2e1f8163d98686892477775064ec4513 Mon Sep 17 00:00:00 2001 From: kthoden Date: Fri, 19 Jul 2019 13:49:35 +0200 Subject: [PATCH] Blockquotes --- tei2imxml.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tei2imxml.py b/tei2imxml.py index bae5610..a6b9dbd 100755 --- a/tei2imxml.py +++ b/tei2imxml.py @@ -525,8 +525,15 @@ def handle_refs_hyperimage(ref): for paragraph in eoa_paragraphs: paragraph.tag = "p" - if paragraph.get("rend") == "Quote": - paragraph.set("rend", "quoted") + ############### + # Blockquotes # + ############### + + eoa_blockquotes = xml_tree.xpath("//t:quote", namespaces=NS_MAP) + + for blockquote in eoa_blockquotes: + blockquote.tag = "p" + blockquote.set("rend", "quoted") ############# # Citations #