Bug 139627 - Justified paragraph rendering defect when inserting Arabic diacritics
Summary: Justified paragraph rendering defect when inserting Arabic diacritics
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2021-01-15 09:17 UTC by afshin
Modified: 2021-08-10 19:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Justified (25.16 KB, image/png)
2021-01-15 09:19 UTC, afshin
Details
dash under letter and space between letter. (6.72 KB, image/png)
2021-01-15 09:19 UTC, afshin
Details
Minimal file to reproduce justified text rendering problem with Arabic diacritics (11.47 KB, application/vnd.oasis.opendocument.text)
2021-02-12 06:16 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description afshin 2021-01-15 09:17:22 UTC
Description:
Hello.
My documents are in Persian (Farsi) language.
When I set the alignment of the paragraph relative to the "Justified", inserts a dash line under some letters of word and a space between of that word!



Actual Results:
Inserts a dash line under some letters of word and a space between of that word!

Expected Results:
There should be no space between the letters and line under the letters. 


Reproducible: Always


User Profile Reset: No



Additional Info:
I think there is this bug only in RTL direction language, for example Persian (Farsi).
Comment 1 afshin 2021-01-15 09:19:06 UTC
Created attachment 168899 [details]
Justified
Comment 2 afshin 2021-01-15 09:19:59 UTC
Created attachment 168900 [details]
dash under letter and space between letter.
Comment 3 Hossein 2021-02-12 06:11:22 UTC
I can confirm that the bug is present, even in the latest LibreOffice 7.2 Dev master build. The problem arises when some harakat (Arabic diacritic) is inserted.

https://en.wikipedia.org/wiki/Arabic_diacritics

The problem with justified text is a long lasted bug, which is important to fix, because it affects multiple languages that use Arabic script, like Arabic itself and also "Persian (Farsi/Dari), Uyghur, Kurdish, Punjabi, Sindhi, Balochi, Pashto, Lurish, Urdu, Kashmiri, Rohingya, Somali and Mandinka."

https://en.wikipedia.org/wiki/Arabic_script
Comment 4 Hossein 2021-02-12 06:16:55 UTC
Created attachment 169697 [details]
Minimal file to reproduce justified text rendering problem with Arabic diacritics

This is the minimal file to reproduce justified text rendering problem with Arabic diacritics.

This file is tested with the latest LibreOffice master build (7.2 Dev).
Comment 5 Buovjaga 2021-03-24 08:46:25 UTC
In 6.3 there happened two changes. The rendering of attachment 169697 [details] in the oldest of 6.3 shows the first paragraph on page 1 is shown as not justified and the others on page 1 with a huge gap. With this change, even the first paragraph is shown with a huge gap:
https://git.libreoffice.org/core/commit/0a8e9cc5c1782f1cd50ef338ec2aa4f6776a4c0e
tdf#124109: Revert "Only do kashida insertion with fonts that have non-zero width kashidas"

The other change in 6.3 brought the current state:
https://git.libreoffice.org/core/commit/f8ca6e0a59bff51fcb09af4fa6d9cd458b32f223
tdf#124109: Fix missing kashida glyphs

Also seen on Windows

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: bdbb5d0389642c0d445b5779fe2a18fda3e4a4d4
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded