Bug 109308 - FILESAVE: DOCX - Drop caps is lost when saving
Summary: FILESAVE: DOCX - Drop caps is lost when saving
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX DOCX-Paragraph Paragraph-Drop-Caps RTF-Paragraph
  Show dependency treegraph
 
Reported: 2017-07-24 12:01 UTC by Pénzes Dávid
Modified: 2019-09-24 07:25 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
the original file (13.67 KB, application/vnd.oasis.opendocument.text)
2017-07-24 12:01 UTC, Pénzes Dávid
Details
drop caps saved docx (14.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-07-24 12:01 UTC, Pénzes Dávid
Details
docx and odt comparation LibreOffice (176.06 KB, image/png)
2017-07-24 12:02 UTC, Pénzes Dávid
Details
docx and odt comparation LibreOffice and MS Office (206.01 KB, image/png)
2017-07-24 12:03 UTC, Pénzes Dávid
Details
sledgehammer patch for exporting drop-caps (5.93 KB, patch)
2017-08-17 01:20 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pénzes Dávid 2017-07-24 12:01:05 UTC
Created attachment 134817 [details]
the original file

Reproduce:
1. Make one or more paragraph, any type of text.
2. The first letter of the pharagraps are changed to drop caps
3. Save the file DOCX format.
4. Reopened and the drop caps are lost.

The place of the drop caps is not important, all of the drop caps are lost.
Comment 1 Pénzes Dávid 2017-07-24 12:01:35 UTC
Created attachment 134818 [details]
drop caps saved docx
Comment 2 Pénzes Dávid 2017-07-24 12:02:56 UTC
Created attachment 134819 [details]
docx and odt comparation LibreOffice
Comment 3 Pénzes Dávid 2017-07-24 12:03:16 UTC
Created attachment 134820 [details]
docx and odt comparation LibreOffice and MS Office
Comment 4 Yousuf Philips (jay) (retired) 2017-07-24 16:53:08 UTC
LibreOffice isnt outputting the <w:framePr> paragraph property as well the necessary run properties in the saved ooxml.

How Word outputs it.

 <w:p ...>
   <w:pPr>
     <...>
     <w:framePr w:dropCap="drop" w:lines="3" w:wrap="around" w:vAnchor="text" w:hAnchor="text" />
     <...>
     <w:rPr>
       <w:rFonts w:cs="Liberation Serif" />
       <w:position w:val="-11" />
       <w:sz w:val="113" />
     </w:rPr>
   </w:pPr>
   <w:r>
     <w:rPr>
       <w:rFonts w:cs="Liberation Serif" />
       <w:position w:val="-11" />
       <w:sz w:val="113" />
     </w:rPr>
     <w:t>L</w:t>
   </w:r>
 </w:p>

http://www.datypic.com/sc/ooxml/e-w_framePr-1.html
Comment 5 Justin L 2017-08-17 01:20:40 UTC
Created attachment 135599 [details]
sledgehammer patch for exporting drop-caps

also submitted at https://gerrit.libreoffice.org/41235

I'm going to need so much help to get this one publishable. I'm just posting how far I got and am walking away.
Comment 6 Pénzes Dávid 2018-07-30 09:10:54 UTC
I can be reproduced in RTF.
Comment 7 QA Administrators 2019-08-19 07:00:32 UTC Comment hidden (obsolete)
Comment 8 Pénzes Dávid 2019-09-24 07:25:21 UTC
Still reproduce in LibreOffice 6.3.