[silva-dev] silva2odt latest snap-shot
Dave Kuhlman
dkuhlman at rexx.com
Tue Jul 10 01:53:09 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.
> > - There is now some support for tables.
>
> i'm really surprised how well the column widths are maintained. very
> well done.
Thanks.
>
> > - 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.
>
> > - 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.
Thank you for pointing this out. Now, I believe I've fixed it in
lists, also. I'll post a new version when I've had time to do some
more testing.
Thanks for the other comments, too. I'm working on them.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
More information about the silva-dev
mailing list