Description: When using the option "Set Character Spacing" in "Properties" section of the sidebar, if the text is Arabic, then kashida is used to stretch the text, and because kashida is placed in wrong places, it causes defect in Arabic/Persian text rendering. There was an old bug in Arabic/Persian text rendering that created defects, it was fixed before AO 3, then It was recreated when HarfBuzz was used, and it is now fixed in LibreOfffice 5.3. But it seems that there are still issues needed to be fixed. Bug 35320 - EDITING: Justified problem in arabic https://bugs.documentfoundation.org/show_bug.cgi?id=35320 Steps to Reproduce: 1. Open libreoffice Writer or Impress. 2. Type some Arabic/Persian language text like "به نام خدا". 3. Open "Properties" from sidebar. 4. Open "Set Character Spacing" box, then choose "Very Loose". Actual Results: Wrong placement of kashida causes defect in Arabic/Persian text rendering Expected Results: kashida should be placed to increase the size of rendered words Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Created attachment 131617 [details] Screenshot of defect in LO Writer
Created attachment 131618 [details] Defect in LO Writer
Created attachment 131619 [details] Defect in LO Impress
Reproduced. Arch Linux 64-bit, KDE Plasma 5 Version: 5.4.0.0.alpha0+ Build ID: ed0e8f970ff552e75222dc92ed2879aa3b3e5851 CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group Built on March 4th 2016
This does not look like a new issue, can some one test with 5.2 or earlier?
Bug 104921 explains the root of most of these kashida issues. It is bad design decision that has been band-aided all the time instead of fixing the root cause.
Created attachment 131765 [details] There is this bug in 5.2.5.1 version too. There is this bug in version 5.2.5.1 too.
I suspect it even goes older than that, even all the way back to the first LibreOffice release.
(In reply to Khaled Hosny from comment #8) > I suspect it even goes older than that, even all the way back to the first > LibreOffice release. Yep. Char spacing Very Loose == 6 pts. Arch Linux 64-bit LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4
Using letter spacing with Arabic script does not make much sense as it breaks the letters. CSS even goes far to require that browsers ignore letter spacing for scripts like Arabic, we probably should do that at some point, if only to prevent users from shooting themselves in the foot.
Some presentation templates use custom letter spacing. This is usually the source of problem. It may work for other languages, but right now, not for languages based on Arabic script.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
I am using Version: 6.1.5.2 and I am still face this problem. I was just copying and pasting a text from the web. I don't find any workaround to solve this problem. I am not using letter spacing anyhow.
Created attachment 149834 [details] the bug in 6.1.5.2
Dear Hossein, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still reproducible in Version: 7.2.0.4 / LibreOffice Community Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded And also in the latest master: Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 18e49d2b998ba69d5363d25d285ee6fd188a698d CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: x11 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
(In reply to Fahad Al-Saidi from comment #14) > Created attachment 149834 [details] > the bug in 6.1.5.2 This is a different issue not related to the original bug report. For some reason starting the text with a LTR character messes up the spacing. Please report a separate issue for this one.
(In reply to Khaled Hosny from comment #17) > (In reply to Fahad Al-Saidi from comment #14) > > Created attachment 149834 [details] > > the bug in 6.1.5.2 > > This is a different issue not related to the original bug report. For some > reason starting the text with a LTR character messes up the spacing. Please > report a separate issue for this one. Same issue as bug 103492.
(In reply to Khaled Hosny from comment #17) > (In reply to Fahad Al-Saidi from comment #14) > > Created attachment 149834 [details] > > the bug in 6.1.5.2 > > This is a different issue not related to the original bug report. For some > reason starting the text with a LTR character messes up the spacing. Please > report a separate issue for this one. Done. Please see bug 150395 for the new bug report.
https://git.libreoffice.org/core/+/3901e029bd39575f700e69a73818565d62226a23 This fixes the extranous Kashidas, but leaves spaces between the letter (which is consistent which how other applications handle letter-spacing in Arabic). It might be worth opening a feature request to either ignore stretching for Arabic or insert Kashida instead of leaving gaps (it might be worth checking what other office suites do in this case).
Verified that "wrong" kashidas are replaced by empty spaces in: Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: c9e961e6803a70587bd4686d05abdd4ac11de434 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Thanks Khaled!