Bug 109308

Summary: FILESAVE: DOCX - Drop caps is lost when saving
Product: LibreOffice Reporter: Pénzes Dávid <penzes_david>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: chrishamill, contact, jluth, kelemeng, nemeth, philipz85, rb.henschel, vmiklos
Priority: medium Keywords: filter:docx
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=109318
https://bugs.documentfoundation.org/show_bug.cgi?id=109320
https://bugs.documentfoundation.org/show_bug.cgi?id=147351
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104520, 107830, 109316, 113340    
Attachments: the original file
drop caps saved docx
docx and odt comparation LibreOffice
docx and odt comparation LibreOffice and MS Office
sledgehammer patch for exporting drop-caps

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.
Comment 9 Regina Henschel 2021-02-28 00:42:02 UTC
The error still exists in Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 10 Dieter 2022-03-08 15:28:36 UTC
*** Bug 147351 has been marked as a duplicate of this bug. ***
Comment 11 medmedin2014 2023-03-05 02:47:17 UTC
Repro on :

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: 50(Build:3)
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
7.5.0-1
Calc: threaded
Comment 12 BogdanB 2023-12-15 05:49:01 UTC
*** Bug 158673 has been marked as a duplicate of this bug. ***