From 442e8a35f6cca375ed490927e582e3d1de832f66 Mon Sep 17 00:00:00 2001 From: kthoden Date: Tue, 3 Mar 2020 17:02:04 +0100 Subject: [PATCH] Find other parts as well --- src/tei2imxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tei2imxml.py b/src/tei2imxml.py index de4e05c..ea14cae 100755 --- a/src/tei2imxml.py +++ b/src/tei2imxml.py @@ -668,7 +668,7 @@ def handle_refs_default(ref): del part.attrib["{http://www.w3.org/XML/1998/namespace}id"] part.set("id", xml_id) - eoa_chapters = xml_tree.xpath("//t:div[@type='chapter']", namespaces=NS_MAP) + eoa_chapters = xml_tree.xpath("//t:div[@type='chapteroriginal' or @type='chapter' or @type='chaptertranslation']", namespaces=NS_MAP) for chapter in eoa_chapters: chapter.tag = "div1" chapter.set("language", publang)