Bug 13904 - Please add OOXML mime types
Summary: Please add OOXML mime types
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 02:21 UTC by Götz Waschk
Modified: 2009-02-21 05:31 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
add some of the OOXML mime types (1.79 KB, patch)
2008-01-03 02:22 UTC, Götz Waschk
Details | Splinter Review
Add generic icons for all OpenXML types (1.71 KB, patch)
2008-10-19 04:10 UTC, Milan Bouchet-Valat
Details | Splinter Review
updated patch (2.30 KB, patch)
2008-10-20 04:09 UTC, Götz Waschk
Details | Splinter Review

Description Götz Waschk 2008-01-03 02:21:22 UTC
The new formats from MS Office 2007 are not yet included, some are somehow supported by OO.o and others.
Comment 1 Götz Waschk 2008-01-03 02:22:57 UTC
Created attachment 13477 [details] [review]
add some of the OOXML mime types
Comment 2 Pino Toscano 2008-03-04 04:49:33 UTC
Could you please some documentation about the mimetype names, and some details of extension/content?

Thanks.
Comment 3 Götz Waschk 2008-03-04 05:10:13 UTC
I'm sorry, I don't have it. Read my simple patch, I have found the information with Google. Microsoft has some sample documents that are recognized with this patch, but I don't find them anymore :-( The Wikipedia page has some information about the file content:

http://en.wikipedia.org/wiki/Office_Open_XML#File_format_and_structure
Comment 4 Tim Christie 2008-03-07 08:13:17 UTC
I added .docx and to freedesktop.org.xml by copying the existing mime type for odt and changing it to .docx.
Comment 5 Dave Cline 2008-04-14 18:13:05 UTC
Here's a site

  http://technet2.microsoft.com/Office/ja-JP/library/f88d06fb-c9a4-413c-a1d3-
       40c97e340c5a1041.mspx?mfr=true

with the Office 2007 document type definitions.
Comment 6 Bastien Nocera 2008-04-15 03:34:12 UTC
(In reply to comment #5)
> Here's a site
> 
>   http://technet2.microsoft.com/Office/ja-JP/library/f88d06fb-c9a4-413c-a1d3-
>        40c97e340c5a1041.mspx?mfr=true
> 
> with the Office 2007 document type definitions.

That link doesn't seem to work.
Comment 7 Sebastian Dröge (slomo) 2008-05-28 22:41:01 UTC
Works just fine here when putting removing the newline in the middle of the URL ;)
Comment 8 Frederik Himpe 2008-05-29 04:39:23 UTC
While the posted patch contains the most important mime types, there are more of them. The list which can be found at http://www.webmasterworld.com/apache/3539138.htm seems more complete.
Comment 9 Milan Bouchet-Valat 2008-10-19 04:10:21 UTC
Created attachment 19741 [details] [review]
Add generic icons for all OpenXML types
Comment 10 Milan Bouchet-Valat 2008-10-19 04:19:50 UTC
Attached is a simple patch that adds generic icons for all OpenXML types. This should fix missing icons on Linux desktops.

I noticed several new 'esoteric' Microsoft mimetypes liste here:
http://www.webmasterworld.com/apache/3539138.htm
have not been added to freedesktop.org.xml. Wouldn't it be worth to do so?

And BTW, calling these files "Word 2007 Document" is quite terrible for Microsoft :-p. While I'm no supporter of so-called OpenXML formats, wouldn't it be clearer for user to add to this description "(OOXML 1.0)" or something like that?

As a sidenote, I noticed that Mozilla Firefox does not know how to open Word 2007 documents (on Ubuntu 8.10). Do you have an idea of where it gets its information from?
Comment 11 Götz Waschk 2008-10-20 04:09:14 UTC
Created attachment 19757 [details] [review]
updated patch

This merges the previous two patches.
Comment 12 Milan Bouchet-Valat 2009-01-31 04:08:25 UTC
No news on that bug? The patch is here, only need to commit! We can't wait for 6 month before free desktops support this format: it's becoming standard for some administrations, so though it's horrible we really need proper icons.

Thanks in advance...
Comment 13 Matthew Barnes 2009-02-06 14:46:54 UTC
An Evolution user received a ".docx" attachment and wondered why Evolution couldn't open it directly.  I promised Bastien I'd find out the MIME type:

   application/vnd.openxmlformats-officedocument.wordprocessingml.document

Which is consistent with the information referenced here.
Comment 14 Bastien Nocera 2009-02-09 08:00:18 UTC
Is there any particular reason we need to separate "macros-enabled" document types? Otherwise I'll merge the macros-disabled/macros-enabled ones together.
Comment 15 Milan Bouchet-Valat 2009-02-21 04:14:30 UTC
Bastien: I don't know if there's a good reason for it, but this is what Microsoft says to do:
http://technet.microsoft.com/ja-jp/library/cc179224.aspx
http://blogs.msdn.com/vsofficedeveloper/pages/Office-2007-Open-XML-MIME-Types.aspx

At least since these MIME types exist, we have to handle them separately I guess.
Comment 16 Bastien Nocera 2009-02-21 05:31:18 UTC
(In reply to comment #15)
> Bastien: I don't know if there's a good reason for it, but this is what
> Microsoft says to do:
> http://technet.microsoft.com/ja-jp/library/cc179224.aspx
> http://blogs.msdn.com/vsofficedeveloper/pages/Office-2007-Open-XML-MIME-Types.aspx
> 
> At least since these MIME types exist, we have to handle them separately I
> guess.

Reading http://technet.microsoft.com/en-us/library/cc179191.aspx (linked from http://en.wikipedia.org/wiki/Microsoft_Office_2007_file_extensions), I believe Microsoft thinks it will help with security.

"
Stores macro code for use with other Word documents. Does not always contain macro code, but is configured to support macro code storage. Word documents created from a macro-enabled template do not inherit the VBAProject part of the template. By default, documents are saved as .docx files even when they are created from a Office Word 2007 XML macro-enabled template.
"

No purpose. I've added the macros-enabled version of the mime-types as aliases of the normal ones, and added the globs too.

* freedesktop.org.xml.in: Patch from Götz Waschk and
Milan Bouchet-Valat to add Office 2007/OpenXML documents
mime-types (Closes: #13904)
* tests/list:
* tests/sample.docx:
* tests/sample.pptx:
* tests/sample.xlsx: Add test files for the above


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.