Salaam,
This might be of interest to Roozbeh and Behdad
(apologies if I massacred the spelling of any of your names)...
I saw in the IRC log of the Arabeyes party (sorry
not to have shown up I was very sick that day) that you were to integrate a
glyph shaping engine in fribidi. Why not reuse Akka's? It's a pretty good engine
and is adaptable to many encodings (plus it would move it from Akka to the
fribidi layer there).
The architecture of the glyph rendering engine in
Akka is as follows:
1) you initialize it by loading a glyph map,
basically a file containing 5-tuples (index, lone, beginning, middle, end),
where index is the characters' index in the used encoding (e.g. ISO-8859-6,
Unicode, anything) and the 4 other numbers are the letter's glyph position in
the font used according to the letter's position in the word.
2) it takes a raw character string (i.e. with the
letters encoded in the standard encoding) and maps it to the glyph using a
simple one pass algorithm.
It is very flexible and efficient, so if you ever
want help in doing it, I am at your disposal.
Regards,
Chahine
|