Commit 2b4b720e9353b64495dd5a8a9f142389a1d884ae
1 parent
79263302
Dodanie identyfikatora synsetu do elementów meanings_layer
Showing
1 changed file
with
6 additions
and
1 deletions
dictionary/teixml.py
... | ... | @@ -795,7 +795,12 @@ def write_meaning(parent_elem, lex_unit): |
795 | 795 | gloss_f_elem.attrib['name'] = 'gloss' |
796 | 796 | gloss_content_elem = etree.SubElement(gloss_f_elem, 'string') |
797 | 797 | gloss_content_elem.text = lex_unit.glossa |
798 | - | |
798 | + | |
799 | + plwnsid_f_elem = etree.SubElement(meaning_fs_elem, 'f') | |
800 | + plwnsid_f_elem.attrib['name'] = 'plwnsid' | |
801 | + plwnsid_numeric_elem = etree.SubElement(plwnsid_f_elem, 'numeric') | |
802 | + plwnsid_numeric_elem.attrib['value'] = str(lex_unit.synset.id) | |
803 | + | |
799 | 804 | def write_connections_layer(parent_elem, lemma): |
800 | 805 | connections_layer_elem = etree.SubElement(parent_elem, 'fs') |
801 | 806 | connections_layer_elem.attrib['type'] = 'connections_layer' |
... | ... |