[Libreoffice-bugs] [Bug 125411] FILSAVE DOCX and DOC: Language information lost upon saving text

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 21 11:15:46 UTC 2019


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

--- Comment #1 from Eike Rathke <erack at redhat.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190521/a129d291/attachment-0001.html>


More information about the Libreoffice-bugs mailing list