Skip to content

Commit

Permalink
Hardwire xml:lang behavior for Coptic Scriptorium
Browse files Browse the repository at this point in the history
  * See #133 for discussion
  • Loading branch information
amir-zeldes committed Mar 13, 2019
1 parent 411b59f commit a3e24ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/ether.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def sgml_to_ether(sgml, ignore_elements=False):
anno_value = ""
for attr in attrs:
if element != attr[0] and ignore_elements is False:
anno_name = element + "_" + attr[0]
if attr[0] == "xml\\clang":
anno_name = "lang" # TODO: de-hardwire fix for xml:lang
else:
anno_name = element + "_" + attr[0]
else:
anno_name = attr[0]
anno_value = attr[1]
Expand Down

0 comments on commit a3e24ea

Please sign in to comment.