[Libreoffice-bugs] [Bug 115856] Docx export: In non-English versions, styles.xml does not contain reference to international styles

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 5 21:09:59 UTC 2018


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

fralau at settlenext.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #14 from fralau at settlenext.com ---
I have checked (on 6.1.3.2) and, indeed, the output seems the expected one,
with the reference to the canonic style Heading1.

This is how Microsoft Word presents it:

  <w:style w:type="paragraph" w:styleId="Titre1">
    <w:name w:val="heading 1"/>
    <w:basedOn w:val="Normal"/>
    <w:next w:val="Normal"/>
    <w:link w:val="Titre1Car"/>
    <w:uiPriority w:val="9"/>
    <w:qFormat/>
    <w:rsid w:val="00D363B2"/>
    <w:pPr>
      <w:keepNext/>
      <w:keepLines/>
      <w:spacing w:before="240"/>
      <w:outlineLvl w:val="0"/>
    </w:pPr>
    <w:rPr>
      <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia"
w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi"/>
      <w:color w:val="365F91" w:themeColor="accent1" w:themeShade="BF"/>
      <w:sz w:val="32"/>
      <w:szCs w:val="32"/>
    </w:rPr>
  </w:style>

And this is how LibreOffice presents it:

  <w:style w:type="paragraph" w:styleId="Titre1">
    <w:name w:val="Heading 1"/>
    <w:basedOn w:val="Normal"/>
    <w:next w:val="Normal"/>
    <w:link w:val="Titre1Car"/>
    <w:uiPriority w:val="9"/>
    <w:qFormat/>
    <w:rsid w:val="00d363b2"/>
    <w:pPr>
      <w:keepNext w:val="true"/>
      <w:keepLines/>
      <w:spacing w:before="240" w:after="0"/>
      <w:outlineLvl w:val="0"/>
    </w:pPr>
    <w:rPr>
      <w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:eastAsia="MS ゴシック"
w:cs="" w:asciiTheme="majorHAnsi" w:cstheme="majorBidi"
w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi"/>
      <w:color w:val="365F91" w:themeColor="accent1" w:themeShade="bf"/>
      <w:sz w:val="32"/>
      <w:szCs w:val="32"/>
    </w:rPr>
  </w:style>

It's pretty much identical!

This should make it possible for pandoc to process it correctly... And yet
pandoc finds a difference between the 2. It compiles correctly the docx
produced by Word: 

$ pandoc simple.docx
<h1 id="this-is-the-title-1">This is the title 1</h1>
<h2 id="this-is-the-title-2">This is the title 2</h2>
<p>Hello this is the paragraph hello. …</p>

while for the same docx produced by LibreOffice:

$ pandoc simple.docx
<p>This is the title 1</p>
<p>This is the title 2</p>
<p>Hello this is the paragraph hello.</p>

Admittedly, passing the pandoc compilation might not be the in the spec of
LibreOffice Write. But, as Data would say, "This is intriguing."

-- 
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/20181105/df1355c3/attachment.html>


More information about the Libreoffice-bugs mailing list