+
+ _syllabicModifiers = {
+ 'single' : '%s',
+ 'begin' : '%s -',
+ 'middle' : '- %s -',
+ 'end' : '- %s'
+ }
+
def __init__(self, node) :
self.node = node
self.syllabic = _getNodeValue(node, 'syllabic', 'single')
self.text = _getNodeValue(node, 'text')
def __str__(self) :
def __init__(self, node) :
self.node = node
self.syllabic = _getNodeValue(node, 'syllabic', 'single')
self.text = _getNodeValue(node, 'text')
def __str__(self) :
- return self.text.encode('utf-8')
+ text = self._syllabicModifiers[self.syllabic] % self.text
+ return text.encode('utf-8')