Skip to content

Commit

Permalink
Find other parts as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Mar 3, 2020
1 parent 0e11d13 commit 442e8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tei2imxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 442e8a3

Please sign in to comment.