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)