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
: 147351 158673 (view as bug list)
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: 2023-12-15 05:49 UTC (History)
8 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.
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. ***