r/ProgrammerTIL • u/officialvfd • Oct 03 '17
Other TIL that every year the OpenOffice team has to reverse-engineer Microsoft Office's proprietary file formats
I never would have considered it, but of course Microsoft would never provide specs to their competitors.
198
Upvotes
107
u/backwood_redneck Oct 03 '17
That appears to be out of date. .docx is just a zip file of XML documents as are most of the other new formats. It appears to be ratified spec by ECMA corporation the same group that writes the specification for Javascript. (ECMA-376)
50
u/seanprefect Oct 04 '17
it's an "open" Standard that has a 7000 page definition document. For reference the ISO standard for the entire C programing language is like 500 pages.
21
u/jhartwell Oct 03 '17
This seems out of date as office uses Office Open XML now and not the typical binary file they used in the past.
18
u/metaconcept Oct 03 '17
OOXML (the MS Word / Excel file format) is an ISO standard; the standardisation process wasn't without controversy. Microsoft rigged the committee.
It's a... big standards document.
6
u/form_d_k Oct 17 '17 edited Oct 17 '17
That information was true prior to Microsoft being required, both by the U.S. Department of Justice and the E.U., to document Microsoft protocols including Office file formats. I worked on both the protocol team and the Office Interop team, who has periodic meetings with LibreOffice. Specs describing Office formats began being published around 2007 - 2008.
5
u/1202_alarm Oct 04 '17
More like the Libreoffice and Document Liberation Project teams. OpenOffice is not really very active any more.
9
u/metaconcept Oct 03 '17
Pro tip: If you need to export to a Word or Excel file, just write out HTML and give it a .doc or .xls extension (and, over HTTP, set the content type to application/msword or application/vnd.ms-excel). For Excel files, just make a single <table>; I haven't worked out how to make multiple sheets.
Microsoft Word and Excel will open these as if they were native documents.
9
u/albertowtf Oct 04 '17
Just to add something to this. Most developers have move to Libreoffice. Openoffice is slightly dead now
The only thing of value they have now is the name people still use and recognize
3
u/xian0 Oct 10 '17
There's an OpenOffice team? when I looked into it a few years ago it seems like there were just a few guys left and it was closed to outsiders.