* src/docgen/RTFDoc.py: add support for superscripts
svn: r1731
This commit is contained in:
parent
01021d7012
commit
f278d96e54
@ -362,6 +362,7 @@ class RTFDoc(TextDoc.TextDoc):
|
|||||||
if self.opened == 0:
|
if self.opened == 0:
|
||||||
self.opened = 1
|
self.opened = 1
|
||||||
self.text = self.text + '{%s ' % self.font_type
|
self.text = self.text + '{%s ' % self.font_type
|
||||||
|
|
||||||
for i in text:
|
for i in text:
|
||||||
if ord(i) > 127:
|
if ord(i) > 127:
|
||||||
self.text = self.text + '\\\'%2x' % ord(i)
|
self.text = self.text + '\\\'%2x' % ord(i)
|
||||||
@ -370,4 +371,7 @@ class RTFDoc(TextDoc.TextDoc):
|
|||||||
else:
|
else:
|
||||||
self.text = self.text + i
|
self.text = self.text + i
|
||||||
|
|
||||||
|
self.text = self.text.replace('<super>','{{\*\updnprop5801}\up10 ')
|
||||||
|
self.text = self.text.replace('</super>','}}')
|
||||||
|
|
||||||
Plugins.register_text_doc(_("Rich Text Format (RTF)"),RTFDoc,1,1,1,".rtf")
|
Plugins.register_text_doc(_("Rich Text Format (RTF)"),RTFDoc,1,1,1,".rtf")
|
||||||
|
Loading…
Reference in New Issue
Block a user