* src/docgen/RTFDoc.py: add support for superscripts
svn: r1731
This commit is contained in:
parent
170ef001ca
commit
7007e389fb
@ -362,6 +362,7 @@ class RTFDoc(TextDoc.TextDoc):
|
||||
if self.opened == 0:
|
||||
self.opened = 1
|
||||
self.text = self.text + '{%s ' % self.font_type
|
||||
|
||||
for i in text:
|
||||
if ord(i) > 127:
|
||||
self.text = self.text + '\\\'%2x' % ord(i)
|
||||
@ -370,4 +371,7 @@ class RTFDoc(TextDoc.TextDoc):
|
||||
else:
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user