Arabic ligatures

guifa's picture

What is the optimal way to handle the lam_alef ligatures?

No matter how I do it, the ligature doesn't show up, although all my Latin/Greek ligatures do. If I type lam, then alef, they connect as if they were any other letters in the alphabet. In FontForge everything shows up okay.

I admit it may be my program to edit with (TextEdit) since I don't have InDesign ME, but the ligature substitution seems to work okay for other OTF fonts in TextEdit. All other substitutions appear okay.

John Hudson's picture

Since the lam_alif ‘ligature’ is a required form, the lookup should be located in the Required Ligatures {rlig} feature.

In Arabic OT shaping, positional form substitutions are applied first, so ligature input glyphs need to be appropriate positional forms:

lam.init alif.fina -> lam_alif
lam.medi alif.fina -> lam_alif.fina

If you've done the above and it doesn't work in your test app, then your test app doesn't support Arabic OpenType.

guifa's picture

How might the other Arabic OT fonts be working? Is there another way I'm not aware of to do this substitution?

I'm downloading Mellel since it claims it has its own OTF extensions. Is there any other good (free or inexpensive) programs to use to test the Arabic OT fonts? Mac or PC, as I could probably swipe my roommate's PC if need be.

«El futuro es una línea tan fina que apenas nos damos cuenta de pintarla nosotros mismos». (La Luz Oscura, por Javier Guerrero)

John Hudson's picture

What are the other Arabic OT fonts? Are you sure they are using OTL tables and not AAT tables?

Mellel should work well for you. The apps should work too, but I've never tried the Mac version.

On Windows, you can test in Wordpad and NotePad.

DTY's picture

TextEdit on OS X 10.5 forms the lam_alif ligature correctly in Adobe Arabic. This one just has the OT tables, doesn't it?

John Hudson's picture

Yes, Adobe Arabic uses OT.

Matthew, are you using FontLab Studio for OTL work? If so, can you perhaps post the FDK syntax code you are using for the ligatures?

I use VOLT for OTL work, so I might not be able to spot a problem, but perhaps someone will be able to.

If you are using VOLT, you could send me your source font, and I could troubleshoot it for you.

guifa's picture

*takes out dunce hat and places on head while walking to the corner stool*

The tutorial I was following had

feature rlig { # Required Ligatures
script arab; # Arabic
lookupflag IgnoreMarks, RightToLeft;
sub lam.isol alef.isol by lam_alef.isol;
sub lam.fina alef.isol by lam_alef.fina;
} rlig;

Even though you mentioned it should be media it just slipped right by me. Now I've got it working. Now as to whether I got everything properly designed, that's another question haha. BTW, I'm actually using FontForge, it's not too hard to convert the syntax. For posting for a critique on an arabic font is the critique section better or the special interest group?

«El futuro es una línea tan fina que apenas nos damos cuenta de pintarla nosotros mismos». (La Luz Oscura, por Javier Guerrero)

John Hudson's picture

You could post the images in the critique section, and then post an announcement on the Arabic SIG.

Syndicate content Syndicate content