2 ms·
Its still not great, I've found no way to convert DocX into a sane intermediate format so I've ended up writing a few specialised parsers that can make fairly d
by amiga-workbench 8y ago
Its still not great, I've found no way to convert DocX into a sane intermediate format so I've ended up writing a few specialised parsers that can make fairly decent sense of a few small cases like tables of contents, tables and lists.
My table parser still isn't perfect, its had a few documents thrown at it with merged cells that look just fine in Word, but don't have the colspan attributes I'm expecting.
Its still significantly reducing the workload of our content guy, he just has to double check how its displaying.
I've largely tried to avoid styling extraction but I did have a quick go, tables do contain properties for background colours and border tinting but the values don't seem to match what is being displayed within word. I think DocX has an equivalent of a stylesheet kicking around somewhere which may contain more accurate styling info but my work hasn't required that I look into it yet.