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

            Bug ID: 115856
           Summary: Docx export: In non-English versions, styles.xml does
                    not contain reference to international styles
           Product: LibreOffice
           Version: 5.0 all versions
          Hardware: All
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: fra...@settlenext.com

Description:
In general, MS Word apps provide localized styles for non-Englis languages
(e.g. Titre1, Titre2... in French, instead of Heading1, Heading2...) and they
are exported verbatim in the document.xml file. 

However, the styles.xml file should contains a reference to standard "latent"
styles so that any application receiving those localized styles can recognized
what they actually mean, an can process them correctly.

Fixing that aspect would allow non-Englis versions of OpenOffice to "speak" not
only to Ms Word, but also to a host of libraries that expect docx documents.

Steps to Reproduce:
1. Create the a file with a **non-English version of LibreOffice**, with a
heading.
2. Export the file in .docx
3. Give the file to pandoc: pandoc xxxx.docx. The headings will be missed and
converted into plain text.



Actual Results:  
In style.xml:

<w:style w:type="paragraph" w:styleId="Titre1">
  <w:name w:val="Titre 1"/>
  <w:basedOn w:val="Titre"/>
  <w:next w:val="Corpsdetexte"/>
  <w:pPr>
    <w:numPr>
      <w:ilvl w:val="0"/>
      <w:numId w:val="1"/>
    </w:numPr>
    <w:spacing w:before="240" w:after="120"/>
    <w:outlineLvl w:val="0"/>
    <w:outlineLvl w:val="0"/>
  </w:pPr>
  <w:rPr>
    <w:b/>
    <w:bCs/>
    <w:sz w:val="36"/>
    <w:szCs w:val="36"/>
  </w:rPr>
</w:style>

Expected Results:
<w:style w:type="paragraph" w:styleId="Titre1">
   <w:name w:val="heading 1"/>
   <w:basedOn w:val="Titre"/>
   <w:next w:val="Corpsdetexte"/>
   <w:pPr>
     <w:numPr>
       <w:numId w:val="1"/>
     </w:numPr>
     <w:outlineLvl w:val="0"/>
   </w:pPr>
   <w:rPr>
     <w:b/>
     <w:bCs/>
     <w:sz w:val="36"/>
     <w:szCs w:val="36"/>
   </w:rPr>
 </w:style>


Reproducible: Always


User Profile Reset: No



Additional Info:
1. Word (as an application) is itself tolerant toward that kind of omission and
it will spontaneously correct it.

2. In general, feeding a docx file to pandoc is a sure way to make a litmus
check.

3. I have check in the release notes to see whether this bug has been fixed in
later versions, but I have failed to see any.


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0)
Gecko/20100101 Firefox/58.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to