From 97efb0f4f64f10d5f327361bbe7bcdc70c401390 Mon Sep 17 00:00:00 2001 From: kthoden Date: Mon, 2 Mar 2020 13:43:21 +0100 Subject: [PATCH] =?UTF-8?q?Set=20m=C3=A9topes=20attribute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fix_tei.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fix_tei.py b/src/fix_tei.py index 9a3dc30..9c383d9 100755 --- a/src/fix_tei.py +++ b/src/fix_tei.py @@ -783,6 +783,9 @@ def main(): tei_front_part = add_tei_frontpart() tei_text.insert(0, tei_front_part) + tei_root = xml_tree2.xpath("/t:TEI", namespaces=NS_MAP)[0] + tei_root.set("change", "metopes_publication#eoa") + etree.strip_tags(xml_tree2, "tagtobestripped") picklefile = "output/pickle_from_tei/data.pickle"