Bug 150439 - Disjointed arabic ligatures at the end of line
Summary: Disjointed arabic ligatures at the end of line
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Kamil Landa
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 13:06 UTC by Kamil Landa
Modified: 2022-08-30 13:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example for Writer (57.66 KB, application/vnd.oasis.opendocument.text)
2022-08-16 13:06 UTC, Kamil Landa
Details
Functional ligatures-breaking for latin script (35.57 KB, application/vnd.oasis.opendocument.text)
2022-08-17 09:25 UTC, Kamil Landa
Details
some fonts disjoints the ligature, some no (48.91 KB, image/png)
2022-08-17 15:13 UTC, Kamil Landa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Landa 2022-08-16 13:06:42 UTC
Created attachment 181806 [details]
Example for Writer

Problem is if the ligature is at the end of line and there isn't a space for whole ligature, then Libre disjoints the ligature instead to move the ligature to new line. 


Probably it is inherited from OOo. I thought it will be solved with this bug https://bugs.documentfoundation.org/show_bug.cgi?id=104921 but it looks it is more complicated. 


Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c1446da82b999349e1a09fed3420bd1c38d7b38c
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL
Comment 1 Kamil Landa 2022-08-16 16:17:42 UTC

*** This bug has been marked as a duplicate of bug 85426 ***
Comment 2 Kamil Landa 2022-08-16 16:21:06 UTC
I'm sorry, it isn't duplicate of the bug 85426, I clicked badly. But I don't know how to delete previous comment.
Comment 3 ⁨خالد حسني⁩ 2022-08-17 02:01:12 UTC
I don’t think this is a bug. If there is no suitable line breaking place (i.e. there is no space) LO will break between any two characters (the equivalent of CSS “word-break: break-all;”). The line breaking code does not know there is a ligature here and will happily break inside it, and I think this is acceptable given that this is an emergency hatch.
Comment 4 Kamil Landa 2022-08-17 09:25:19 UTC
Created attachment 181826 [details]
Functional ligatures-breaking for latin script

The ligatures-breaking is functional for latin script, but for arabic script no, so I suppose it is bug or backlog.
Comment 5 ⁨خالد حسني⁩ 2022-08-17 13:17:25 UTC
Amiri does not have ligatures for Arabic, if you test a font that actually has ligatures (e.g. KacstBook) it will behave the same way as Latin.
Comment 6 Kamil Landa 2022-08-17 15:13:28 UTC
Created attachment 181831 [details]
some fonts disjoints the ligature, some no

Ok, there aren't ligatures for Arabic in Amiri, there are Contextual Substitutions. The Contextual Substitutions are also in Scheherazade, but not so sophisticated like in Amiri. 

I tried some fonts with Ligature definitions, and the fact is I wasn't able to disjoint final lamAlif in KacstBook or KFGQPC Uthman Taha Naskh. But there is disjointed lamAlif for example in Arabic Typesetting, Simplified Arabic and Traditional Arabic.
Comment 7 ⁨خالد حسني⁩ 2022-08-29 20:12:49 UTC
(In reply to Kamil Landa from comment #6)
> I tried some fonts with Ligature definitions, and the fact is I wasn't able
> to disjoint final lamAlif in KacstBook or KFGQPC Uthman Taha Naskh. But
> there is disjointed lamAlif for example in Arabic Typesetting, Simplified
> Arabic and Traditional Arabic.

What versions do you have of these fonts, I can’t reproduce this here.
Comment 8 Kamil Landa 2022-08-30 13:17:38 UTC
Traditional Arabic 6.0
Arabic Typesettings 6.84
Simplified Arabic 6.98
Amiri 0.117
Scheherazade 2.100
KacstBook 2.01

But interestingness is I'm also not able to reproduce it now, but I don't know why :-).  


Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 8f058de233e5110720daa5b42e0c66e7c3b2c31f
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: en-US
Calc: CL