Re:WordPerfect for DOS Updated
by paultopia on Sunday November 01, 2020 @10:22PM
(#24964561)
I'm a little bit confused by this. Isn't the modern docx format just a bunch of XML markup in a zip file?
Actually, I'm sure the modern docx format is just a bunch of XML markup. I just created a toy docx with the text "This is a test." and ripped it open with a little bit of python that I had lying around from previous experiments along those lines[1]
Looking at the output of the file 'word/document.xml', in relevant part, we see:
which looks like the underlying XML representation indeed intersperses formatting codes in the stream, at least in part---certainly it's clear that the "is" is italicized"...
That seems like enough information to build reveal codes out of...
Actually, I'm sure the modern docx format is just a bunch of XML markup. I just created a toy docx with the text "This is a test." and ripped it open with a little bit of python that I had lying around from previous experiments along those lines[1]
Looking at the output of the file 'word/document.xml', in relevant part, we see:
which looks like the underlying XML representation indeed intersperses formatting codes in the stream, at least in part---certainly it's clear that the "is" is italicized"...That seems like enough information to build reveal codes out of...
[1] https://github.com/paultopia/dedocx/blob/master/deconstruct....