[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 15:41:48 UTC 2019


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

--- Comment #2 from Lars Jødal <lajo at rn.dk> ---
Good idea to unzip the docx-file. After similar experiments myself, I get the
suspicion that the bug is in MS Word 2013, not in LO Writer:

1) Testing with MS Word 2016 (rather than 2013), the problem disappears.

2) Opening the file in MS Word 2013 (finding apparent spelling errors) and
saving from there, the unzipped docx file contains no "lang" tag. I.e., MS Word
2013 missed the tag.

3) Opening the file in MS Word 2013, changing languages and then saving, the
unzipped docx file does contain "lang" tags. I am no xml expert, but from a
cursory look, the tags looks very much like the original. The main difference
seems to be in the introductory formatting.

So, I may quite possibly have reported a bug that does not belong to LO but to
an old version of MS Word. 

Just in case somebody can get useful information from it, I report below the
introductory xml codes from both versions of the file. If it is not interesting
(not giving tips to a better docx export filter), then this bug can simply be
closed.


Original (saved by LO):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"
mc:Ignorable="w14 wp14"><w:body> [...] </w:body></w:document>

Saved from Word 2013 after specifically setting languages:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document
xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"
xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"
xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"
xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk"
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"
xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
mc:Ignorable="w14 w15 wp14"><w:body> [...] </w:body></w:document>

-- 
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/508a5324/attachment.html>


More information about the Libreoffice-bugs mailing list