News for hackers. Stuff that matters.
Re:Microsoft's Calibri font is at the center of a political ... by auxym on Wednesday July 12, 2017 @07:37AM (#14751642)
Open XML formats (.docx, etc) came with Office 2003.

From what I remember, the EU wanted to standardize an open document format, and had their eye set on OO ODF, as the most mature of those at the time. Microsoft put out their OXML format, gave out free patent grants, lobbied hard, and managed to get it into ISO.

If you want some nightmares though, open an office XML file in a text editor some day.

Re:Microsoft's Calibri font is at the center of a political ... by vetinari on Wednesday July 12, 2017 @08:48AM (#14752027)
> Open XML formats (.docx, etc) came with Office 2003.

They came with Office 2007. For Office 2003, there was a plugin that allowed to open the XML files, in a limited way.

Re:Microsoft's Calibri font is at the center of a political ... by davidgerard on Wednesday July 12, 2017 @09:21AM (#14752252)
No, there was a separate XML format for 2003 before OOXML, called WordprocessingML. Basically nothing else ever used it, but later MS Office and LibreOffice still read it.
Re:Microsoft's Calibri font is at the center of a political ... by nxc18 on Wednesday July 12, 2017 @07:52AM (#14751721)
I wrote a tool to convert pptx files to markdown. Using python it was maybe a 3 hour project. I'm sure some of the more nuanced formatting is a challenge, but the format really isn't bad and keeps the content quite manageable.
Re:Microsoft's Calibri font is at the center of a political ... by xyzxyz998 on Wednesday July 12, 2017 @07:59AM (#14751753)
You're not going to leave us hanging, are you?
Re:Microsoft's Calibri font is at the center of a political ... by l1n on Wednesday July 12, 2017 @10:32AM (#14752798)
Re:Microsoft's Calibri font is at the center of a political ... by nxc18 on Wednesday July 12, 2017 @10:52AM (#14752980)
That is in fact what I was referring to, although I don't think it should still be up.

I wrote that and on a whim thought, "I'll make this a pip package," severely underestimating that task. The tool works but I never finished that packaging. The working source should be on github if you're interested.

Re:Microsoft's Calibri font is at the center of a political ... by wglb on Wednesday July 12, 2017 @09:32AM (#14752340)
If you want some nightmares though It is not really all that bad. The hardest part of pulling it all out and reassembling it into what you want is the shared strings aspect.

It is really quite distinct from the memory dump of pre-xml doc/excel files.

Re:Microsoft's Calibri font is at the center of a political ... by pacaro on Wednesday July 12, 2017 @01:23PM (#14754443)
For real. On Palladium/NGSCB there was a strong effort to maintain correspondence between documentation and code, to the point that there was an effort to have header files be generated directly from the specs, which were Word docs. The biggest practical challenge was that the extractor had to instantiate Word just to read the text content of paragraphs with the specified style. This is not something that you want in your build pipeline if you can avoid it.
Re:Microsoft's Calibri font is at the center of a political ... by wglb on Wednesday July 12, 2017 @08:40PM (#14757930)
Ewwww.

I woulda cobbled something together to suck the text out of them.

Re:Microsoft's Calibri font is at the center of a political ... by pacaro on Thursday July 13, 2017 @01:57AM (#14759045)
Hahaha, me too, but the old Word format really is as bad as everyone says, and we were trying to build a system with formal correspondence from spec to code (and sometimes from spec to proof to code), so having a "cobbled" together something really didn't fit the model.

The real problem was using word as our documentation format, but at Microsoft in the early oughts there really weren't many alternatives.

Re:Microsoft's Calibri font is at the center of a political ... by wglb on Friday July 14, 2017 @04:19PM (#14772855)
Well, I do believe LaTeX was available.

The cobble-together part, to be successful, would pull the text out reliably. And the format is readily documented, and Open/Libre office processes it as well. The code to do the extract might be ugly, but so long as it reliably produced the text in a CI/CD environment, that would be OK.

Re:Microsoft's Calibri font is at the center of a political ... by pacaro on Friday July 14, 2017 @04:56PM (#14773102)
The constraints were entirely organizational, many better technical solutions were suggested