Issue 27689 - no lam alif ligature replacement when the font don't contain arabic glyphs
Summary: no lam alif ligature replacement when the font don't contain arabic glyphs
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1.1
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: hdu@apache.org
QA Contact: issues@gsl
URL:
Keywords:
: 22336 23769 (view as issue list)
Depends on: 25565
Blocks:
  Show dependency tree
 
Reported: 2004-04-11 22:15 UTC by bulbul
Modified: 2004-08-16 16:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
document illustrating the bug, with embedded screenshots (8.97 KB, application/vnd.sun.xml.writer)
2004-04-15 04:39 UTC, bulbul
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bulbul 2004-04-11 22:15:59 UTC
When i set the font to Times, then type a lam, then an alif, i get a normal lam
connected to a normal alif instead of a lam alif ligature. This does not happen
for the other fonts i have tried. When you type a lam then an alif, these two
characters should be replaced with a lam alif ligature.

I have opened OOo 1.1.0 and 1.1.1 side by side to try this out. The bug only
shows up in 1.1.1.
Comment 1 christof.pintaske 2004-04-14 12:08:17 UTC
please provide a sample document showing the behavior, please provide a
screenshot as well. What (Arabic) fonts do you have installed on your system ?
Comment 2 bulbul 2004-04-15 04:39:11 UTC
Created attachment 14523 [details]
document illustrating the bug, with embedded screenshots
Comment 3 bulbul 2004-04-15 04:46:19 UTC
Here are the Arabic fonts i found on my system, but maybe you have other
suggestions of where to look:

/usr/X11R6/lib/X11/fonts/drakfont/ttf/Naqsh.ttf
/usr/share/fonts/ttf/arabic/KacstDecorative.ttf
/usr/share/fonts/ttf/arabic/Kacst-Qr.ttf
/usr/share/fonts/ttf/arabic/KacstArt.ttf
/usr/share/fonts/ttf/arabic/KacstBook.ttf
/usr/share/fonts/ttf/arabic/nastaliq_unicode.ttf
/usr/share/fonts/ttf/arabic/KacstDigital.ttf
/usr/share/fonts/ttf/arabic/KacstLetter.ttf
/usr/share/fonts/ttf/arabic/KacstPoster.ttf
/usr/share/fonts/ttf/arabic/KacstTitle.ttf
/usr/share/fonts/ttf/arabic/KacstTitleL.ttf
Comment 4 hdu@apache.org 2004-05-05 15:20:06 UTC
A great sample document. Thanks!
Now I see what the problem is. Since the fonts you selected do not contain
support for Arabic and not even for the required glyphs, a "glyph fallback" is
performed. This glyph fallback should take care of the shaping too, but it
fails. Need to analyze...
Comment 5 hdu@apache.org 2004-05-06 09:33:21 UTC
Fixed in CWS vcl22.

HDU->HDU: fixed merging single charpos into BiDi fallback run. Since this has
been a general problem that may have occurred in a lot of circumstances the
priority should be increased to 3.
Comment 6 hdu@apache.org 2004-05-06 09:40:48 UTC
*** Issue 22336 has been marked as a duplicate of this issue. ***
Comment 7 bulbul 2004-05-06 20:09:45 UTC
Thanks for fixing this so quickly.
Comment 8 hdu@apache.org 2004-05-12 13:56:53 UTC
*** Issue 23769 has been marked as a duplicate of this issue. ***
Comment 9 hdu@apache.org 2004-05-27 09:21:47 UTC
reopening for reassignment
Comment 10 hdu@apache.org 2004-05-27 09:23:58 UTC
HDU->US: please verify
Tesing hint: make sure that there is no non-X11 Times font available for the
display.
Comment 11 hdu@apache.org 2004-05-27 09:26:16 UTC
changing back to FIXED after reassignment
Comment 12 ulf.stroehler 2004-06-10 18:31:46 UTC
Unfortunately this does not work for me.
If Lucidasans isn't available font fallback seems to find a reasonable
alternative (as seen on my W2k host).
But on Linux where Lucidasans is available (found in pspfontcache) the lam-alif
characters are represented by the well known rectangle. Apparently a Lucida
XFont is used. 
Comment 13 ulf.stroehler 2004-06-10 18:32:44 UTC
Reassigning to HDU.
Comment 14 hdu@apache.org 2004-06-14 16:09:58 UTC
HDU->US: As discussed, this fix is for the problem, that glyphs get reversed
when the glyph fallback is triggered in a RTL text for a X11 font.

The issue with Lucda Sans and the Lam Alef ligure is a different problem (issue
30093), which will be addressed in a later CWS.
Comment 15 hdu@apache.org 2004-06-14 16:10:31 UTC
Setting back to fixed,
Comment 16 ulf.stroehler 2004-06-14 18:01:40 UTC
Accepting HDU's suggestion.
Issue verified in cws vcl22.
Comment 17 ulf.stroehler 2004-07-30 14:03:17 UTC
Issue can not be verified+closed because of isssue 25565.
Comment 18 ulf.stroehler 2004-08-06 15:42:20 UTC
The problem here is that glyph fallback doesn't seem to work anymore. This
worked in former releases. Even when the default CTL font is set to traditional
arabic. 
Regression.
Comment 19 ulf.stroehler 2004-08-06 15:44:52 UTC
Transferring to HDU.
Comment 20 ulf.stroehler 2004-08-06 15:46:14 UTC
Tested version src680_m49.
Comment 21 ulf.stroehler 2004-08-06 19:24:25 UTC
I have to be more precise: GlyphFallback seems to work in general, but fails for
the lam alif ligature.
Comment 22 ulf.stroehler 2004-08-16 15:58:21 UTC
Setting back to FIXED. I made a mistake.
Comment 23 ulf.stroehler 2004-08-16 16:02:49 UTC
As reported in issue 30093 the lam alif ligature only produces rectangles in
conjunction with Lusidasans from the java package.
This fix has been verified on mws src680_m50 with the "Traditional Arabic" and
the "Kacst" font family.
Comment 24 munzirtaha 2004-08-16 16:21:47 UTC
If you want to verify this issue you shouldn't do this with traditional arabic 
or kacst fonts since they support arabic glyphs and no need for fallback. You 
should try it with other fonts that doesn't contain arabic glyphs. It's still 
available in 1.1.3 builds. 
 
also how come you marked this as closed/fixed and 
http://www.openoffice.org/issues/show_bug.cgi?id=30093 
still new?