notofonts / arabic

Noto Arabic
SIL Open Font License 1.1
15 stars 2 forks source link

Allah does not ligate #227

Closed curya closed 7 months ago

curya commented 8 months ago

Title

Allah does not ligate

Font

NotoNaskhArabic[wght].ttf NotoSansArabic[wdth,wght].ttf NotoKufiArabic[wght].ttf

Where the font came from, and when

https://github.com/notofonts/arabic/releases

Font Version

Naskh 2.018 Sans 2.012 Kufi 2.108

OS name and version

Windows 10

Application name and version

All.

Issue

Allah (الله) does not ligate when typed even though the ligature does exist.

  1. Type الله
  2. Observe that it does not change to the ligature.

Character data

الله

Mercury13 commented 8 months ago

Well, he did not write character data. Simple ALLH. 0627+0644+0644+0647

curya commented 8 months ago

Probably important to mention that we discussed this issue here: https://github.com/Mercury13/unicodia/issues/324

Some fonts ligate and some don't. Noto is one of the fonts that does not ligate.

@Mercury13 I actually copied the character data directly from that same Wikipedia page. Whatever font GitHub is using must be ligating it.

Mercury13 commented 8 months ago

Ligate: Amiri (IDK where came from), KacstBook (IDK where came from), Scheherazade New (newest) Do not ligate: Scheherazade (IDK where came from, replaced with New), Noto Naskh (newest)

khaledhosny commented 8 months ago

This is intentional, see https://github.com/notofonts/arabic/issues/192

Mercury13 commented 8 months ago

192 says about LLH, I’ll check.

Amiri and KacstBook ligate. Scheherazade New does not. I think, the entire ALLH should ligate.

curya commented 8 months ago

@khaledhosny You said here that الله should ligate...

Edit: Wait. Copying اللّٰه from that post does ligate. But copying from my original post above does not. ????

khaledhosny commented 8 months ago

@khaledhosny You said here that الله should ligate...

The sequence there is: ARABIC LETTER ALEF ا ARABIC LETTER LAM ل ARABIC LETTER LAM ل ARABIC SHADDA ّ ARABIC LETTER SUPERSCRIPT ALEF ٰ ARABIC LETTER HEH ه

curya commented 8 months ago

It appears that the ligature is not any different from literally typing it out manually. In which case, why even have the ligature at all?

Is there a real world case where you would purposely want to type Allah without the shadda and superscript alef?

khaledhosny commented 8 months ago

It appears that the ligature is not any different from literally typing it out manually. In which case, why even have the ligature at all?

That would be a bug.

Is there a real world case where you would purposely want to type Allah without the shadda and superscript alef?

The sequence might be a different word/part of word in other languages.

curya commented 8 months ago

That would be a bug.

So it is! image Ligatures on on the left. Ligatures turned off on the right. It seems that this bug only affects Noto Naskh Arabic. It's the only one that doesn't change.

Edit: Oh wait! It works for Naskh if you turn "discretionary ligatures" on! image