Bug 157128 - A specific RTF opens with all text in italics
Summary: A specific RTF opens with all text in italics
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: https://ask.libreoffice.org/t/rtf-ope...
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF-Character
  Show dependency treegraph
 
Reported: 2023-09-07 07:02 UTC by Mike Kaganski
Modified: 2023-09-13 10:15 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Should be regular, not italics (346.73 KB, application/msword)
2023-09-07 07:02 UTC, Mike Kaganski
Details
The Text style in Word 2016 and Writer (177.40 KB, image/png)
2023-09-13 10:15 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-09-07 07:02:27 UTC
Created attachment 189403 [details]
Should be regular, not italics

The attached RTF opens with everything in italics, while it should not (it opens in regular in Word).

Already repro using OOo 2.4.3.

Ref: https://ask.libreoffice.org/t/rtf-opens-with-everything-in-italics/95553
Comment 1 Xisco Faulí 2023-09-07 07:17:46 UTC
Reproduced in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 55eef24a55afb3708f2e02abf65b6934bed7f3de
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-US (es_ES.UTF-8); UI: en-US
Calc: threaded

@Miklos, I thought you might be interested in this issue
Comment 2 Gabor Kelemen (allotropia) 2023-09-13 10:15:39 UTC
Created attachment 189546 [details]
The Text style in Word 2016 and Writer

So there are several styles used in this example, such as IntexTitle (the first para), HeaderLtr (the letter A), Main (the entries) which are all based on the Text style. 

This is imported incorrectly: in Word, it is based on (no style) as parent. 
In Writer it is imported as inherited from the Caption style.

The Caption style is imported incorrectly too: in Word it has bold formatting, in Writer it is italic.