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 #