summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8d95e04)
+
+ _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')