Skip to content

Commit

Permalink
foliaspec for c++: use wrefables to set accepted data (expand WordRef…
Browse files Browse the repository at this point in the history
…erence to all wrefables)
  • Loading branch information
proycon committed Apr 2, 2019
1 parent df7cf91 commit 7f098b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foliatools/foliaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def setelementproperties_cpp(element,indent, defer,done):
if ('textcontainer' in element['properties'] and element['properties']['textcontainer']) or ('phoncontainer' in element['properties'] and element['properties']['phoncontainer']):
value += ('XmlText',)
if 'WordReference' in value:
value += ('Word','Morpheme','Phoneme')
value += tuple( e for e in sorted(flattenclasses(spec['wrefables'])) )
s += indent + outputvar(element['class'] + '::PROPS.' + prop.upper(), value, target) + '\n'
done[element['class']] = True
return s
Expand Down

0 comments on commit 7f098b6

Please sign in to comment.