https://bugs.documentfoundation.org/show_bug.cgi?id=161509

--- Comment #12 from David Huggins-Daines <[email protected]> ---
(In reply to Mike Kaganski from comment #11)
> Hmm, but now, without further work, the style ids would have wrong case:
> 
>   <w:style w:type="paragraph" w:styleId="heading1">
>     <w:name w:val="heading 1"/>
>     <w:basedOn w:val="Normal"/>

Hmm... is the styleId derived from the <w:name> in LibreOffice?  My feeling is
that the styleId *is* case-sensitive, though I don't know if the built-in
styles have canonical styleIds.

I think this is why python-docx ends up special-casing a subset of styles to
give them lower-case <w:name>.  My intuition is that these styles seem to
correspond to the built-in styles in the old binary .DOC format, which you can
see in
https://github.com/LibreOffice/core/blob/b0aff34ccb12e1af815a059957d7c4f6a14eeaea/sw/source/filter/ww8/wrtw8sty.cxx#L147

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to