headword lemma and semantic&english-full tags tags

This commit is contained in:
2020-02-16 18:13:28 +01:00
parent b20ceca27a
commit 23c1ec33a1
4 changed files with 10 additions and 3 deletions

View File

@@ -25,6 +25,8 @@ def export_entry(entry):
headword = doc.createElement("headword")
headword_lemma = doc.createElement("lemma")
headword_lemma.textContent = entry.headword
if entry.headword_type is not None:
headword_lemma.setAttribute("type", entry.headword_type)
headword.appendChild(headword_lemma)
head.appendChild(headword)