Re: silva2odt latest snap-shot

Marc Petitmermet <[email protected]> Sun, 8 Jul 2007 23:28:19 +0200
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
On 04. Jul 2007, at 02:08 Uhr, Dave Kuhlman wrote:

> silva2odt is still incomplete, but here is a snap-shot.  The new
> version is available at my Web site.  Note minor version change:
>
>     http://www.rexx.com/~dkuhlman/silva2odt-1.0b.tar.gz

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.

> - There is now some support for tables.

i'm really surprised how well the column widths are maintained. very  
well done.

> - There is minimal support for images.

works. but silva2odt.py does not retain the scaling, does it? i think  
it is always 100%.

> - Lists have been re-worked.

numbered and bulleted lists work nicely (i did not test the others).

> My tests show that nested lists work.

i could not get the bylaws page translated (see error above).

> - Links -- Fixed loss of text.

this is only partially fixed. it's fixed with standard paragraphs.  
but i have now lost text in lists. in lists, the text is cut just  
before the link; the link and everything thereafter within a list  
item is lost.

regards,
marc