lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

Error opening odt file #237

Open poyarkoff opened 6 years ago

poyarkoff commented 6 years ago

An incorrect odt file is generated for the page that contains the table with the merged rows. Sample pages and files in an attachment.

Dokuwiki: Release 2017-02-19e "Frusterick Manners" Plugin: OpenOffice.org/LibreOffice.org Export Release 2018-05-05

Error opening odt file.zip

lpaulsen93 commented 6 years ago

I tested the described wiki syntax and could not find any issue. I could export both examples successfully. Also I could open both your .odt files in LibreOffice (version 5.1.6.2) without problems.

Could you please check if your example data is wrong?

poyarkoff commented 6 years ago

Unfortunately, we do not yet use LibreOffice :-( I apologize for not telling you before. Error opening in MS Word (2013, 2016) and MS WordPad (6.1).

lpaulsen93 commented 6 years ago

I don't have MS Word or MS WordPad (working on Ubuntu). I will re-check the generated .odt code to see if I find anything which is not 100% correct.

lpaulsen93 commented 6 years ago

I think I solved one issue. Could you please manually install the current master version (https://github.com/LarsGit223/dokuwiki-plugin-odt/archive/master.zip) and re-test?

poyarkoff commented 6 years ago

After installing the current master version, the downloaded files are also not opened using MS applications... manuals-admins-other-test-page-incorrect (5).zip

lpaulsen93 commented 6 years ago

I cannot see more errors at the moment. Could you do me a favour and create a document with a table with merged rows in MS, export it to OpenDocumentFormat and upload it? I need to see what MS is expecting to find. So far the document created by the ODT plugin looks fine now.

poyarkoff commented 6 years ago

Thank you very much for your help.

I have did this: created the page which consists the simple table; generated the odt-file by the ODT plugin; opened this file by MS Word, merge rows of table and saved result. odt-word-merging-odt.zip

lpaulsen93 commented 6 years ago

The word document has got a different coding on the table column definitions:

Word generated document:

<!-- ...more elements...-->
<style:style style:name="TableColumn3" style:family="table-column">
    <style:table-column-properties style:column-width="3.4263in"/>
</style:style>
<style:style style:name="TableColumn4" style:family="table-column">
    <style:table-column-properties style:column-width="3.6562in"/>
</style:style>
<!-- ...more elements...-->
<table:table-columns>
    <table:table-column table:style-name="TableColumn3"/>
    <table:table-column table:style-name="TableColumn4"/>
</table:table-columns>
<!-- ...more elements...-->

ODT plugin generated document:

<!-- ...more elements...-->
    <table:table-column/>
    <table:table-column/>
<!-- ...more elements...-->

I now changed the encoding to this:

<!-- ...more elements...-->
<style:style style:name="Table_20_Column" style:family="table-column">
</style:style>
<!-- ...more elements...-->
    <table:table-column table:style-name="Table_20_Column"/>
    <table:table-column table:style-name="Table_20_Column"/>
<!-- ...more elements...-->

Please test with this version: https://github.com/LarsGit223/dokuwiki-plugin-odt/archive/MScompat.zip.

Sorry, I guess we have to do some "Try-and-Errror" attempts to get this working :worried: As I don't have the MS software I depend on your help. Thanks for your cooperation :thumbsup:

kroerig commented 4 years ago

I have the same problem. The page only contains text elements and links to other pages. No special content.

LibreOffice works fine. MS Office 2010 complaints about unreadable content.

lehrplaene-start.zip

lpaulsen93 commented 4 years ago

@kroerig: please post a new issue. This issue definitely has to do with merged tables. You seem to have a different issue - only the error message is the same (because it is a universal error message).