headword lemma and semantic&english-full tags tags

pull/1/head
Ozbolt Menegatti 4 years ago
parent b20ceca27a
commit 23c1ec33a1

@ -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)

@ -3,7 +3,7 @@ from browser import window
class ScreenfulEmptyShell:
def __init__(self):
func = lambda: None
func = lambda: console.log("Screenful data change!")
self.Editor = {"changed": func}
def screenful():

@ -11,6 +11,7 @@ class Entry(Editable):
self.status = status.textContent if status else ""
self.headword = headword.textContent if headword else ""
self.headword_type = headword.getAttribute("type") if headword else None
self.grammar = grammar.textContent if grammar else ""
self.comment = comment.textContent if comment else ""
self.variants = [v.textContent for v in entry_xml.querySelectorAll("head variantList variant")]

@ -5,7 +5,9 @@ TAGS = {
"stilne": ["registrske", "-- narečno", "-- sleng", "-- v otroškem govoru", "-- neformalno", "-- formalno", "-- v jeziku mladih", "-- v govoru", "-- v pogovoru", "-- nenevtralno", "konotacijske", "-- šaljivo", "-- ironično", "-- vulgarno", "-- slabšalno", "-- žaljivo", "-- grobo", "-- ljubkovalno", "pragmatične", "-- pregovor", "-- kot pozdrav", "-- kot kletvica", "-- kot žaljivka", "-- kot gesta", "-- kot grožnja", "-- kot nagovor", "-- kot nasvet", "-- kot navodilo", "-- kot opozorilo", "časovne", "-- starinsko", "-- nekdaj"],
"slovnične": ["v pridevniški rabi", "v primerniku", "v presežniku", "v samostalniški rabi", "v ednini", "v dvojini", "v množini", "števno", "neštevno", "v 3. osebi", "v velelniku", "z veliko začetnico"],
"skupne": ["tudi", "predvsem", "običajno", "včasih", "redko"],
"latinsko": []
"latinsko": [],
"semantic": [],
"English-full": []
}
SLO2ENG_TAGS = {
@ -16,7 +18,9 @@ SLO2ENG_TAGS = {
"stilne-pragmatične": "style-pragmatics",
"slovnične": "grammar",
"skupne": "general",
"latinsko": "latin"
"latinsko": "latin",
"semantično": "semantic",
"English-full": "Polno angleško"
}
ENG2SLO_TAGS = { value: key for key, value in SLO2ENG_TAGS.items() }

Loading…
Cancel
Save