https://bugs.documentfoundation.org/show_bug.cgi?id=125411
--- Comment #1 from Eike Rathke <[email protected]> ---
With your example, having unzip'ed the stored .docx document and inspecting the
contained word/document.xml file I spot nothing wrong:
<w:p><w:pPr><w:pStyle
w:val="Normal"/><w:rPr></w:rPr></w:pPr><w:r><w:rPr></w:rPr><w:t>This sentence
is in English.</w:t></w:r></w:p><w:p><w:pPr><w:pStyle
w:val="Normal"/><w:rPr><w:lang
w:val="de-DE"/></w:rPr></w:pPr><w:r><w:rPr><w:lang
w:val="de-DE"/></w:rPr><w:t>Diesen Satz ist in
Deutsch.</w:t></w:r></w:p><w:p><w:pPr><w:pStyle w:val="Normal"/><w:rPr><w:lang
w:val="da-DK"/></w:rPr></w:pPr><w:r><w:rPr><w:lang
w:val="da-DK"/></w:rPr><w:t>Denne sætning er på dansk.</w:t></w:r></w:p>
The paragraphs are clearly tagged with <w:lang w:val="de-DE"/> and <w:lang
w:val="da-DK"/>
Having selected only the words within the sentences (excluding the . dot) to
force a non-paragraph attribution there's
<w:p><w:pPr><w:pStyle
w:val="Normal"/><w:rPr></w:rPr></w:pPr><w:r><w:rPr></w:rPr><w:t>This sentence
is in English.</w:t></w:r></w:p><w:p><w:pPr><w:pStyle
w:val="Normal"/><w:rPr></w:rPr></w:pPr><w:r><w:rPr><w:lang
w:val="de-DE"/></w:rPr><w:t>Diesen Satz ist in
Deutsch</w:t></w:r><w:r><w:rPr></w:rPr><w:t>.</w:t></w:r></w:p><w:p><w:pPr><w:pStyle
w:val="Normal"/><w:rPr></w:rPr></w:pPr><w:r><w:rPr><w:lang
w:val="da-DK"/></w:rPr><w:t>Denne sætning er på
dansk</w:t></w:r><w:r><w:rPr></w:rPr><w:t>.</w:t></w:r></w:p>
Nothing wrong either, IMHO (someone with more OOXML WordprocessingML experience
may want to verify).
Reloading the .docx into LibreOffice also works as expected, preserving the
language attribution
For reference see the OOXML specification ECMA-376-1:2016 17.3.2.20 lang
(Languages for Run Content) and 22.9.2.6 ST_Lang (Language Reference).
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs