Re: [libreoffice-users] The guts of ODF files

2011-11-03 Thread Stephan Zietsman
Dennis E. Hamilton wrote:
 The Zip-related message may be a warning, not a fatality. It also may be
 related to up-/down-level compatibility among the PKWare Zip specifications.
 When I use WinZip 9.0 SR-1, there are no problems reported.  I haven't checked
 the files against the PKWare APPNOTE 6.2.0 to see if there is an issue at that
 level.
 [...]
 The validator message appears to be completely correct but LO does not fail
 when that is the only flaw.  LO accepts the apparently-incorrect .docx from
 Word 2010.  It apparently fails on the Zip itself, not the .rels file inside
 the Zip.
 [...]
 It is clear that the problem for LO is the discrepancy in the Zip though.
 When that is removed, LO opens the file just fine.

A possible work-around might be to open the .docx file as a zip file,
and then using a zip program to (re)compress it as a zip.  If you try
this, let us know what is the result.

Regards
Stephan

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] The guts of ODF files

2011-11-02 Thread Regina Henschel

Hi ESCHamp,

ESChamp schrieb:

Is there a reference somewhere that specifies what has to be in an ODF
file to be recognized as one of the ODF types?


Yes, ODF is an approved standard. You will find the version 1.1 in 
http://www.oasis-open.org/standards#opendocumentv1.1 and version 1.2 in 
http://docs.oasis-open.org/office/v1.2/ (Version 1.2 is approved by 
OASIS, but the documents are not moved to the standards page yet.)




I'm asking because I have a DOCX file created by an app on my phone that
opens in MS Office, but is not recognized by LO.


DOCX it not an ODF-format, but has its own specification based on Open 
Office XML, 
http://msdn.microsoft.com/en-us/library/dd773189%28v=office.12%29.aspx.


Kind regards
Regina


--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



RE: [libreoffice-users] The guts of ODF files

2011-11-02 Thread Dennis E. Hamilton
Short Answer: DOCX files are not in ODF format.

Longer Answer:

 1. There is such information in the ODF 1.2 Specification Parts 1 and 3. 
However, it will not help with correctly recognizing a DOCX file in LO or OOo. 
There is a separate International Standard on the OOXML format used by DOCX 
and how Zip is used as part of that.

 2. (Note, some DOCX files are encrypted OOXML documents, and that is actually 
a different format described in a different specification, even though the 
file will still have the .docx extension ending its name.)

 3. There is some indication that mobile applications are not necessarily 
producing the DOCX that LO/OOo is expecting.  It may be non-standard. 
Whatever it is, MS Office is forgiving about it.


 - Dennis E. Hamilton
   tools for document interoperability,  http://nfoWorks.org/
   dennis.hamil...@acm.org  gsm: +1-206-779-9430  @orcmid




-Original Message-
From: ESChamp [mailto:esch...@gmail.com]
Sent: Wednesday, November 02, 2011 09:45
To: Libre Office
Subject: [libreoffice-users] The guts of ODF files

Is there a reference somewhere that specifies what has to be in an ODF
file to be recognized as one of the ODF types?

I'm asking because I have a DOCX file created by an app on my phone that
opens in MS Office, but is not recognized by LO.

Thanks.

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? 
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] The guts of ODF files

2011-11-02 Thread ESChamp
Dennis E. Hamilton has written on 11/2/2011 1:01 PM:
 Short Answer: DOCX files are not in ODF format.

 Longer Answer:

  1. There is such information in the ODF 1.2 Specification Parts 1 and 3. 
 However, it will not help with correctly recognizing a DOCX file in LO or 
 OOo. 
 There is a separate International Standard on the OOXML format used by DOCX 
 and how Zip is used as part of that.

Oops!

  2. (Note, some DOCX files are encrypted OOXML documents, and that is 
 actually 
 a different format described in a different specification, even though the 
 file will still have the .docx extension ending its name.)

  3. There is some indication that mobile applications are not necessarily 
 producing the DOCX that LO/OOo is expecting.  It may be non-standard. 
 Whatever it is, MS Office is forgiving about it.

I found an on-line validator at
http://www.document-interoperability.com/validator

When I fed it the original OfficeSuite-created file, it said,

Inspecting ZIP ...
 Mismatch between local header and central record (weakened ZIP
resilience)

Checking OPC Package ...
 Entry with MIME type
application/vnd.openxmlformats-package.core-properties+xml has
unrecognized relationship type
http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties;
(see ISO/IEC 29500-1:2008, Clause 15.2.12.1)
 1 problem found with OPC package


The one which resulted when I opened the original in 2010 Office and did
a Save As gave this:

Checking OPC Package ...
 Entry with MIME type
application/vnd.openxmlformats-package.core-properties+xml has
unrecognized relationship type
http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties;
(see ISO/IEC 29500-1:2008, Clause 15.2.12.1)
 1 problem found with OPC package

Hmmm...same as the original.

The one that was created with Libre Office as a brand new file had the
same message as the one created with the Android app





-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



RE: [libreoffice-users] The guts of ODF files

2011-11-02 Thread Dennis E. Hamilton
Hi Pete,

The Zip-related message may be a warning, not a fatality. It also may be 
related to up-/down-level compatibility among the PKWare Zip specifications. 
When I use WinZip 9.0 SR-1, there are no problems reported.  I haven't checked 
the files against the PKWare APPNOTE 6.2.0 to see if there is an issue at that 
level.

With regard to IS 29500-1:2008 section 15.2.12.1, I am looking at the 
specification and it definitely has opendocument/2006/relationships/... in 
the URL where the files that fail validation have 
package/2006/relationships/

I checked for recent corrections and amendments.  Looking at IS 29500-1:2011 
that (well, ECMA-376 ed.3, which is free and already available), there is no 
change from IS 29500-1:2008.  I also went all the way back to ECMA-376 ed.1 of 
December 2006. There has never been any different definition than what the IS 
29500 editions say.  I also checked iS 29500-4:2011 on Transitional Migration 
Features to see if there is a different case for this relationship.  What is 
strange is that 15.2.12.1 is listed as having a difference, but the Source 
Relationship value given is no different than the value in 29500-1:2011. 
(There may be a difference and I am blind to it somehow.  Time to see the 
opthomalogist.)

The validator message appears to be completely correct but LO does not fail 
when that is the only flaw.  LO accepts the apparently-incorrect .docx from 
Word 2010.  It apparently fails on the Zip itself, not the .rels file inside 
the Zip.

It seems this defect was not noticed and the problem appears to be with 
Microsoft Office too.  Everyone seems to tolerate it.  Maybe because I have 
not found all of the right places, maybe because of a desire to be compatible 
with what Office actually does.  I can't tell.

It is clear that the problem for LO is the discrepancy in the Zip though. 
When that is removed, LO opens the file just fine.

Yuck.

Thanks for tracking down the apparent discrepancy.


 - Dennis E. Hamilton
   tools for document interoperability,  http://nfoWorks.org/
   dennis.hamil...@acm.org  gsm: +1-206-779-9430  @orcmid


-Original Message-
From: ESChamp [mailto:esch...@gmail.com]
Sent: Wednesday, November 02, 2011 16:51
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] The guts of ODF files

Dennis E. Hamilton has written on 11/2/2011 1:01 PM:
 Short Answer: DOCX files are not in ODF format.

 Longer Answer:

  1. There is such information in the ODF 1.2 Specification Parts 1 and 3.
 However, it will not help with correctly recognizing a DOCX file in LO or 
 OOo.
 There is a separate International Standard on the OOXML format used by DOCX
 and how Zip is used as part of that.

Oops!

  2. (Note, some DOCX files are encrypted OOXML documents, and that is 
 actually
 a different format described in a different specification, even though the
 file will still have the .docx extension ending its name.)

  3. There is some indication that mobile applications are not necessarily
 producing the DOCX that LO/OOo is expecting.  It may be non-standard.
 Whatever it is, MS Office is forgiving about it.

I found an on-line validator at
http://www.document-interoperability.com/validator

When I fed it the original OfficeSuite-created file, it said,

Inspecting ZIP ...
 Mismatch between local header and central record (weakened ZIP
resilience)

Checking OPC Package ...
 Entry with MIME type
application/vnd.openxmlformats-package.core-properties+xml has
unrecognized relationship type
http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties;
(see ISO/IEC 29500-1:2008, Clause 15.2.12.1)
 1 problem found with OPC package


The one which resulted when I opened the original in 2010 Office and did
a Save As gave this:

Checking OPC Package ...
 Entry with MIME type
application/vnd.openxmlformats-package.core-properties+xml has
unrecognized relationship type
http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties;
(see ISO/IEC 29500-1:2008, Clause 15.2.12.1)
 1 problem found with OPC package

Hmmm...same as the original.

The one that was created with Libre Office as a brand new file had the
same message as the one created with the Android app





-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? 
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list