Bug 163618 - Incorrect joining of characters in justified Arabic/Persian text
Summary: Incorrect joining of characters in justified Arabic/Persian text
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-25 14:51 UTC by Hossein
Modified: 2024-11-09 03:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Excessive overlap of joined characters in a justified text box (33.04 KB, image/png)
2024-10-25 14:51 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-10-25 14:51:20 UTC
Created attachment 197236 [details]
Excessive overlap of joined characters in a justified text box

Description:
Even with the recent fixes for kashida placement (for example, tdf#151748), you can still see places where two joining characters have overlapped excessively, and the result is visible defects in the text rendering.

Steps to Reproduce:
1. Open attachment 183252 [details]
2. Go to the second page and zoom in to see the rendering 

Actual Results:
Excessive overlapping between joining characters

Expected Results:
Joining characters should not overlap excessively. Joining should be done in a way that there is no gap, but it should not be excessive. In a test for such cases in a justified text, I have previously set ~10% overlap at max. But, this is just a rough value.

tdf#139627 Test justified Arabic/Persian text to avoid gaps/big overlaps
https://gerrit.libreoffice.org/c/core/+/138328

Reproducible: Always


User Profile Reset: No


Additional Info:
The problem happens with the latest LO 25.2 dev master:
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9517639bc3189e3ea4dc4d2f7004d4b33d754d47
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Please note that this issue is not about misplacing an extra kashida character, but rather about slightly misplacing the characters themselves. On the other hand, this issue IS related to kashida, as joining characters (almost always) have a small horizontal half line, in the left and/or right part of them. With this half lines, printed Arabic/Persian characters overlap and join together.