[silva-dev] silva2odt latest snap-shot

Marc Petitmermet petitmermet at mat.ethz.ch
Tue Jul 10 21:26:01 CEST 2007


> On Sun, Jul 08, 2007 at 11:28:19PM +0200, Marc Petitmermet wrote:
> >
> > i tested with the same full media export as before. sadly, there  
> must
> > be a new bug so that only the first document was translated before
> > there was an error. traceback:
> >
> > Traceback (most recent call last):
> >    File "silva2odt.py", line 1197, in ?
> >      main()
> >    File "silva2odt.py", line 1193, in main
> >      transform(infilename, outfilename, silva_options)
> >    File "silva2odt.py", line 1103, in transform
> >      walker.walk_document(el)
> >    File "silva2odt.py", line 207, in walk_document
> >      self.walk_document_aux(el, [])
> >    File "silva2odt.py", line 227, in walk_document_aux
> >      self.walk_document_aux(child, path)
> >    File "silva2odt.py", line 227, in walk_document_aux
> >      self.walk_document_aux(child, path)
> >    File "silva2odt.py", line 227, in walk_document_aux
> >      self.walk_document_aux(child, path)
> >    File "silva2odt.py", line 227, in walk_document_aux
> >      self.walk_document_aux(child, path)
> >    File "silva2odt.py", line 227, in walk_document_aux
> >      self.walk_document_aux(child, path)
> >    File "silva2odt.py", line 219, in walk_document_aux
> >      visit_method(node, path)
> >    File "silva2odt.py", line 549, in visit_p
> >      el = self.wrap_paragraph(node, self.current_element)
> >    File "silva2odt.py", line 559, in wrap_paragraph
> >      style = self.paragraph_style_stack[-1]
> > IndexError: list index out of range
> >
> > i think that this error is due to nested lists. this error did not
> > occur translating documents without nested lists.
>
> Is your full media export available somewhere?  Or could you put it
> somewhere on the Web or at an FTP site so that I could download it?
> That would enable me to work on this bug.  It would also give me a
> good set of test cases.
>
> If you can't do that (perhaps it's proprietary ?), and if you think
> you know which document caused it to choke, perhaps you could semd
> me just that document.

i have sent you a document off-list.

> > > - There is minimal support for images.
> >
> > works. but silva2odt.py does not retain the scaling, does it? i  
> think
> > it is always 100%.
>
> I'll look into this.  The exported XML gives me a height and width,
> for example:
>
>     height="172"
>     width="230"
>
> I'm guessing that "172" means 1.72 inches,  I need centimeters.
> I've got to check my calculation.

i rather think that these numbers are pixels. can somebody else confirm?

regards,
marc




More information about the silva-dev mailing list