Opened 14 years ago

Last modified 4 years ago

#6352 assigned bug

webpositive does not render arabic fonts.

Reported by: khallebal Owned by: leavengood
Priority: normal Milestone: R1.1
Component: Servers/app_server Version: R1/alpha2
Keywords: Cc:
Blocked By: #16087 Blocking:
Platform: All

Description

it seems that webpositive has no support for the arabic language,so you might want to take a look at the bezilla source code to see how it is implemented,this will save you time trying to figure it out. i've attached 2 screenshots one with webpositive and another with bezilla showing the same site.

Attachments (6)

screenshot1.png (349.9 KB ) - added by khallebal 14 years ago.
screenshot2.png (427.6 KB ) - added by khallebal 14 years ago.
Capture.png (225.2 KB ) - added by khallebal 11 years ago.
Capture-1.png (360.5 KB ) - added by khallebal 11 years ago.
screenshot1.2.png (198.3 KB ) - added by khallebal 11 years ago.
screenshot2.2.png (310.8 KB ) - added by khallebal 11 years ago.

Download all attachments as: .zip

Change History (21)

by khallebal, 14 years ago

Attachment: screenshot1.png added

by khallebal, 14 years ago

Attachment: screenshot2.png added

comment:1 by khallebal, 14 years ago

Component: - GeneralApplications/WebPositive
Owner: changed from nobody to stippi

comment:2 by khallebal, 14 years ago

hi guys thanks for the great job you're doing. any chance that this will get fixed soon,i'm not pushing on or anything,it's just that i want to avoid using bezilla,and this might not be so difficult to implement?

comment:3 by stimut, 14 years ago

Is this still a problem? #6171 describes a similar problem but with cjk fonts which has already been fixed (except potentionally for some font fallback issues).

in reply to:  3 ; comment:4 by stimut, 14 years ago

Replying to stimut:

Is this still a problem? #6171 describes a similar problem but with cjk fonts which has already been fixed (except potentionally for some font fallback issues).

Sorry, I should be more specific. Does this problem still occur with the proper fonts installed?

The aljazeera page still loads without text for me, but I don't know what a suitable font would be to test it with.

in reply to:  4 comment:5 by khallebal, 14 years ago

Replying to stimut:

Replying to stimut:

Is this still a problem? #6171 describes a similar problem but with cjk fonts which has already been fixed (except potentionally for some font fallback issues).

Sorry, I should be more specific. Does this problem still occur with the proper fonts installed?

The aljazeera page still loads without text for me, but I don't know what a suitable font would be to test it with.

in reply to:  4 comment:6 by khallebal, 14 years ago

Replying to stimut:

Replying to stimut:

Is this still a problem? #6171 describes a similar problem but with cjk fonts which has already been fixed (except potentionally for some font fallback issues).

Sorry, I should be more specific. Does this problem still occur with the proper fonts installed?

The aljazeera page still loads without text for me, but I don't know what a suitable font would be to test it with.

it's possibly a webkit issue,as i read on the net that all the webkit based browsers, from safari to chrome had sufferd from this problem in the past and got fixed by their respective devs. and it's not a font issue either,because,a)i'm using the default ones that work in Tracker and i also tested with some specific arabic fonts the problem remained unchanged,b)the font fallback problem affects arabic & hebrew chars see ticket #6967, where as web+ displays hebrew sites correctly. so hopefully this info gives you some directions as to where to look.

comment:7 by leavengood, 13 years ago

Owner: changed from stippi to leavengood
Status: newassigned

Yeah this is related to #7053 and is indeed a WebKit problem (in our port) since Arabic is definitely complex text. The fact that BeZilla mostly works (the layout isn't perfect though) provides some hope that Haiku can at least display this text.

I think soon I'll implement a basic version of complex text layout in our WebKit port and then someday explore properly implementing it using one of the complex text layout libraries, as discussed on the mailing list .

That fact that you can test Arabic support is good, since you'll know better than me whether it is being displayed properly. Though I suppose displaying something, even if imperfect, is better than nothing.

I'll update this ticket when I've implementing basic support, hopefully in the next week or two.

comment:8 by pulkomandy, 11 years ago

Hello, The basic version of complex text mentionned by ryan above is available now, and we render some Arabic characters on that page. However, I have no idea if what I get is correct.

It would be nice if you could provide a test page as an attachment to the ticket, and a reference rendering in a browser that gets it right. It's hard to compare my results against an old screenshot of a page that changes all the time. A simple page with a paragraph of text on it would do fine. Is there an equivalent to Lorem Ipsum for Arabic text? (http://en.wikipedia.org/wiki/Lorem_ipsum)

comment:9 by khallebal, 11 years ago

Hello Sorry for the delay,i moved to a place where i didn't have a phone line. Now, web+ now displays some text indeed, and what's missing now is the R2L input method, and the Bindings for the Arabic scripting which is the most important part of it. On some sites web+ displays the letters in the correct order though the letters as mentioned above are De-attached and look bigger than usual, on some other sites the letters are still displayed in the Wrong order also, de-attached. I have attached screenshots for both cases and screenshots from Firefox displaying both sites Correctly. seeing that we're using a fairly recent revision of webkit and the problem is still not solved,it's safe to assume that webkit does not provide/offer a complete solution for the complex text, and maybe we shoould consider adding a backend for both web+ and Haiku,and one that comes to mind is Harffbuz which was mentioned by ryan in the list,this is the same backend used by the recent firefox, gnome ,Qt and other big projects, i think ryan onto something there. the link to that conversation is on this ticket.

Version 0, edited 11 years ago by khallebal (next)

by khallebal, 11 years ago

Attachment: Capture.png added

by khallebal, 11 years ago

Attachment: Capture-1.png added

by khallebal, 11 years ago

Attachment: screenshot1.2.png added

by khallebal, 11 years ago

Attachment: screenshot2.2.png added

comment:10 by khallebal, 11 years ago

On the 1rst and 3rd screenshots Firefox correct, Web+ incorrect from L2R and no bindings. On the 2nd and 4rth screenshots Firefox correct, Web+ correct order but with no bindings

comment:11 by pulkomandy, 11 years ago

Hello, Yes, WebKit now calls Haiku text drawing functions, and these don't support layouting of Arabic text yet. We will implement that using either Harfbuzz or the ICU layout engine.

comment:12 by pulkomandy, 10 years ago

Some interesting notes on the way this is handled on Linux (a bit out of date, but gives an idea of the involved software): http://behdad.org/text/

comment:13 by bitigchi, 5 years ago

Blocked By: 16087 added

comment:14 by pulkomandy, 4 years ago

Milestone: R1R1.1

comment:15 by nephele, 4 years ago

Component: Applications/WebPositiveServers/app_server
Note: See TracTickets for help on using tickets.