<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILSAVE DOCX and DOC: Language information lost upon saving text"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125411#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILSAVE DOCX and DOC: Language information lost upon saving text"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125411">bug 125411</a>
              from <span class="vcard"><a class="email" href="mailto:lajo@rn.dk" title="Lars Jødal <lajo@rn.dk>"> <span class="fn">Lars Jødal</span></a>
</span></b>
        <pre>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="<a href="http://schemas.openxmlformats.org/officeDocument/2006/relationships">http://schemas.openxmlformats.org/officeDocument/2006/relationships</a>"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="<a href="http://schemas.openxmlformats.org/wordprocessingml/2006/main">http://schemas.openxmlformats.org/wordprocessingml/2006/main</a>"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:wp="<a href="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing</a>"
xmlns:wps="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">http://schemas.microsoft.com/office/word/2010/wordprocessingShape</a>"
xmlns:wpg="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup">http://schemas.microsoft.com/office/word/2010/wordprocessingGroup</a>"
xmlns:mc="<a href="http://schemas.openxmlformats.org/markup-compatibility/2006">http://schemas.openxmlformats.org/markup-compatibility/2006</a>"
xmlns:wp14="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing">http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing</a>"
xmlns:w14="<a href="http://schemas.microsoft.com/office/word/2010/wordml">http://schemas.microsoft.com/office/word/2010/wordml</a>"
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="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas">http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas</a>"
xmlns:mc="<a href="http://schemas.openxmlformats.org/markup-compatibility/2006">http://schemas.openxmlformats.org/markup-compatibility/2006</a>"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="<a href="http://schemas.openxmlformats.org/officeDocument/2006/relationships">http://schemas.openxmlformats.org/officeDocument/2006/relationships</a>"
xmlns:m="<a href="http://schemas.openxmlformats.org/officeDocument/2006/math">http://schemas.openxmlformats.org/officeDocument/2006/math</a>"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp14="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing">http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing</a>"
xmlns:wp="<a href="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing</a>"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:w="<a href="http://schemas.openxmlformats.org/wordprocessingml/2006/main">http://schemas.openxmlformats.org/wordprocessingml/2006/main</a>"
xmlns:w14="<a href="http://schemas.microsoft.com/office/word/2010/wordml">http://schemas.microsoft.com/office/word/2010/wordml</a>"
xmlns:w15="<a href="http://schemas.microsoft.com/office/word/2012/wordml">http://schemas.microsoft.com/office/word/2012/wordml</a>"
xmlns:wpg="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup">http://schemas.microsoft.com/office/word/2010/wordprocessingGroup</a>"
xmlns:wpi="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingInk">http://schemas.microsoft.com/office/word/2010/wordprocessingInk</a>"
xmlns:wne="<a href="http://schemas.microsoft.com/office/word/2006/wordml">http://schemas.microsoft.com/office/word/2006/wordml</a>"
xmlns:wps="<a href="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">http://schemas.microsoft.com/office/word/2010/wordprocessingShape</a>"
mc:Ignorable="w14 w15 wp14"><w:body> [...] </w:body></w:document></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>