Bug 153346 - Incorrect display of styles in Russian UI
Summary: Incorrect display of styles in Russian UI
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: Writer-Styles-Paragraph DOCX-Styles
  Show dependency treegraph
 
Reported: 2023-02-03 10:00 UTC by aectann3
Modified: 2023-05-06 14:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
file with bug text (36.19 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-03 10:01 UTC, aectann3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aectann3 2023-02-03 10:00:46 UTC
Description:
The problem with styles in the Russian interface of libreoffice. When opening a file created in MS Word, different paragraphs of text have different font sizes (example - 10pt and 12pt). In the source material, the font size is the same. Also, if you switch to the English interface - the font will be the same size

Steps to Reproduce:
1.Open file example.docx
2.
3.

Actual Results:
Paragraphs are displayed at different sizes

Expected Results:
Text must be the same size


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.1.0.0+ (X86_64) / LibreOffice Community
Build ID: c3af56a1fe2fa8b004a445743478da610cf9af22
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: qt5 (cairo+xcb)
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded
Comment 1 aectann3 2023-02-03 10:01:28 UTC
Created attachment 185080 [details]
file with bug text
Comment 2 Mike Kaganski 2023-02-03 10:59:13 UTC
Repro using Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6836776fa295293c114c267bca38d18603993a54
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded

No repro using Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6836776fa295293c114c267bca38d18603993a54
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

The difference is in Default Paragraph Style, which imports with Char Height 12 when using en-US UI, but it is 10 when using ru-RU UI.

Also repro using 3.3.0; I couldn't test in OOo, because I don't have a multi-language setup of that.
Comment 3 Mike Kaganski 2023-02-03 13:22:22 UTC
The problem is the conflict of names in the document: it has a style named "Базовый", which is the UI name of style "Standard" in Russian UI, and which is used for Word's "Normal" style. First, Word's "Normal" is read, and its settings get written to the "Standard" style; then, Word's "Базовый" is read, and the custom name happens to find the UI name of "Standard" (in StyleSheetTable::ApplyStyleSheetsImpl, using a call to 'xStyles->getByName( sConvertedStyleName )'), and then its properties get overwritten.

No idea how to fix it.