mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Support DrawChar in lrf2lrs
This commit is contained in:
parent
41858a40b0
commit
bddd55a031
@ -821,6 +821,8 @@ class LRFTextContent:
|
|||||||
0xF5BE: ['', 'doSimpleTag', u'</EmpDots>'],
|
0xF5BE: ['', 'doSimpleTag', u'</EmpDots>'],
|
||||||
0xF5C1: ['', 'doBeginEL'],
|
0xF5C1: ['', 'doBeginEL'],
|
||||||
0xF5C2: ['', 'doEndEL'],
|
0xF5C2: ['', 'doEndEL'],
|
||||||
|
0xF5C3: ['', 'doBeginDrawChar'],
|
||||||
|
0xF5C4: ['', 'doSimpleTag', '</DrawChar>'],
|
||||||
0xF5C6: ['', 'doBeginBox'],
|
0xF5C6: ['', 'doBeginBox'],
|
||||||
0xF5C7: ['', 'doSimpleTag', '</Box>'],
|
0xF5C7: ['', 'doSimpleTag', '</Box>'],
|
||||||
0xF5CA: ['', 'doSpace'],
|
0xF5CA: ['', 'doSpace'],
|
||||||
@ -896,6 +898,11 @@ class LRFTextContent:
|
|||||||
self.xml += u'<Plot xsize="%d" ysize="%d" refobj="%d"'%pars[:3]
|
self.xml += u'<Plot xsize="%d" ysize="%d" refobj="%d"'%pars[:3]
|
||||||
self.xml += u' adjustment="%s"/>'%self.mapadjustment[pars[3]]
|
self.xml += u' adjustment="%s"/>'%self.mapadjustment[pars[3]]
|
||||||
|
|
||||||
|
def doBeginDrawChar(self, tag, f):
|
||||||
|
self.closeSpan()
|
||||||
|
self.doOpenTag(tag, f, u'DrawChar line="%d"'%(tag.paramWord()))
|
||||||
|
|
||||||
|
|
||||||
def doOpenTag(self, tag, f, name):
|
def doOpenTag(self, tag, f, name):
|
||||||
if self.inSpanBegin:
|
if self.inSpanBegin:
|
||||||
self.closeSpan(False)
|
self.closeSpan(False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user