Skip to content

Commit

Permalink
remove also background color information
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Thoden committed Mar 5, 2018
1 parent 7497feb commit 8448c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prepare_tei.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def cleanup_xml(xml_tree):
# and, rename elements according to our schema

metypeset_attrib = xml_tree.findall("//t:*[@meTypesetSize]", namespaces=NS_MAP)
color_attrib = xml_tree.xpath("//t:hi[contains(@rend, 'color')]", namespaces=NS_MAP)
color_attrib = xml_tree.xpath("//t:hi[contains(@rend, 'color') or contains(@rend, 'background')]", namespaces=NS_MAP)

logging.info("Found %s metypesets." % len(metypeset_attrib))
logging.info("Found %s colour attributes." % len(color_attrib))
Expand Down

0 comments on commit 8448c5e

Please sign in to comment.