transpect / docx2hub

Converts Microsoft docx to flat hub XML
BSD 2-Clause "Simplified" License
27 stars 15 forks source link

Treat built-in Word styles consistently no matter the locale #24

Closed gimsieke closed 3 years ago

gimsieke commented 3 years ago

Attached is a minimal document sent by 关宗江 via email.

It contains a Heading 1 paragraph that will display as such if opening in an English Word. However, it contains w:styleId="1" instead of w:styleId="Heading1".

If we used the information given in <w:name w:val="heading 1"/>, we could generate a css:rule/@name that will be processed correctly downstream in conversion processes, in particular when using the default docx2tex configuration.

gimsieke commented 3 years ago

1.docx

The attached document was missing.

If we need to map more built-in styles, we can reopen this issue.