pediapress / mwlib

mediawiki parser library
103 stars 35 forks source link

Inline "thumb" images lost in ODF export #48

Open hungerburg opened 10 years ago

hungerburg commented 10 years ago

When exporting to odf, inline "thumb" images are missing in the resulting file. The situation is a little tricky, because with the pediapress renderer, if immediately ODF is requested, images may not be fetched at all, so:

The resulting ODF has a Pictures sub-folder with all the images inside, yet they are not displayed in Writer.

The new file shows the inline images perfectly!

http://odf-validator.rhcloud.com/ does not find any errors in content.xml. Here's to the specification http://docs.oasis-open.org/office/v1.2/cd05/OpenDocument-v1.2-cd05-part1.html#element-draw_frame Should be OK as is, but lo!

ckepper commented 10 years ago

Hi hungerburg,

work on ODF has stopped a long time ago. But patches are always welcome :-) Thanks for your input.

Best, Christoph

hungerburg commented 10 years ago

I rather not run my own renderer. No patches, at least not soon. Looking at the source, https://github.com/pediapress/mwlib/blob/master/mwlib/odfwriter.py#L291 the toolkit seems to support the necessary shenanigans in very few lines. This should apply to "frames" as well: of course, one would have to make the move a loop, there may be several images outside of the next paragraph. Still I preferred if pediapress did in-line images in odf…

rastaferraille commented 9 years ago

Hello,

"work on ODF has stopped a long time ago. " Why has it been stopped ? Is there a hope that it could work in the future with ODF and thumb images ? I'm very insterrested with making it work as I need to export my wiki content and then modify it. Maybe there is other formats I should use instead of ODF ?

Thanks.