Bug 138199 - Justification of Farsi text with footnote reference botched on document open
Summary: Justification of Farsi text with footnote reference botched on document open
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL Footnote-Endnote
  Show dependency treegraph
 
Reported: 2020-11-13 19:23 UTC by Farid
Modified: 2022-08-05 19:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
a writer document to show the bug (12.27 KB, application/vnd.oasis.opendocument.text)
2020-11-13 19:24 UTC, Farid
Details
screenshot showing the problem (108.48 KB, image/png)
2020-11-13 19:25 UTC, Farid
Details
Writer document exhibiting the bug (13.86 KB, application/vnd.oasis.opendocument.text)
2021-02-26 19:40 UTC, Eyal Rozenberg
Details
character rendering problem even with Liberation Sans font (36.05 KB, image/png)
2021-02-27 05:22 UTC, Farid
Details
Document exhibiting the bug with LibreOffice Sans font (18.38 KB, application/vnd.oasis.opendocument.text)
2022-08-05 19:51 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Farid 2020-11-13 19:23:48 UTC
Description:
In the attached document, the first right-to-left paragraph with Persian alphabet and footnotes is fully justified. When the document is opened freshly, the justification is messed up and the lines of text undershoot or overshoot the content area boundary (see the screenshot). The paragraph renders flawlessly when we start editing e.g. insert a new paragraph with Enter.

The second paragraph with the same content but without the footnotes is just fine.


Steps to Reproduce:
Open the attached document. Press enter to insert a new paragraph so to fix the justification

Actual Results:
Open the attached document.

Expected Results:
The first paragraph should be fully justified like the second one.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
justify the first paragraph properly
Comment 1 Farid 2020-11-13 19:24:48 UTC
Created attachment 167283 [details]
a writer document to show the bug
Comment 2 Farid 2020-11-13 19:25:41 UTC
Created attachment 167284 [details]
screenshot showing the problem
Comment 3 Dieter 2020-12-22 15:40:32 UTC
I confirm ith with

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 315c7570c4a72f4c834086082825533b1e50d1bf
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 4 Eyal Rozenberg 2021-02-26 19:40:32 UTC
Created attachment 170090 [details]
Writer document exhibiting the bug

Uploaded a version of the document in which the font is manually set to Liberation Sans Serif ; as the original document may be rendered in Liberation serif - that's what happened for me - in which case you don't see the bug: https://i.imgur.com/Jrf1s00.png .
Comment 5 Farid 2021-02-27 05:22:51 UTC
Created attachment 170100 [details]
character rendering problem even with Liberation Sans font
Comment 6 Farid 2021-02-27 05:24:35 UTC
I don't have "Liberation Sans Serif" on my system but I get your same result (in the screenshot) with "Liberation Sans" font on Debian. However, even though the justification seems alright, some characters are misrepresented (new attached image). If you enter to insert a new paragraph they render alright.

By the way, I tried other Farsi fonts (other than Liberation Sans) and I get the same justification glitch.

thanks
Comment 7 Eyal Rozenberg 2022-08-05 19:51:47 UTC
Created attachment 181630 [details]
Document exhibiting the bug with LibreOffice Sans font

With this document, the bug is manifested differently: A bunch of extra space appears near the 1 and the parenthesis to its right. If you press Enter and Backspace, the extra space disappears and the first paragraph becomes identical to the second.

See screenshot in attachment #170100 [details].

Tested with:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 5c68399e6bea3aa18477487400f8bb143d6ed84e
CPU threads: 4; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US