Page MenuHomePhabricator

<timeline> has incorrect font for farsi
Open, NormalPublic

Description

<timeline> doesn't support correctly in fa.wiki it's table fonts are some rectangles (un none characters)!!
http://fa.wikipedia.org/wiki/%DA%AF%D8%A7%D9%87%E2%80%8C%D9%86%DA%AF%D8%A7%D8%B1%DB%8C_%D8%B3%D8%A8%DA%A9%D9%87%D8%A7%DB%8C_%D9%85%D8%B9%D9%85%D8%A7%D8%B1%DB%8C#1750.E2.80.94present


Version: unspecified
Severity: normal

Details

Reference
bz30790

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 11:48 PM
bzimport set Reference to bz30790.
Yamaha5 created this task.Sep 6 2011, 10:49 PM
brion added a comment.Sep 7 2011, 12:31 AM

Adding bug 4030 (RTL problems) as a dependency; note though that Arabic-script languages may require more work than the Hebrew example in bug 4030 (where there's apparently already a working font, but the chars are laid out as LTR incorrectly)

Amir, once bug 4030 has been done, can you please look into this, too?

in fa.wiki it doesn't have any effects.
1-the time line doesn't change from LTR to RTL
2-the Farsi texts are like rectangle

I think this may be a duplicate of bug 4030. Amir, please assess.

Because Georgian uses a simple left-to-right alphabet. Rendering Georgian is very simple for the computer, in comparison to Arabic and to many other scripts - even simpler than rendering Latin.

I am working on fixing this bug, but it may take some time.

Hi amir in Bug 32317 I uploaded some fonts that will solve Farsi rectangle Characters problems for Arabic characters.would you please test them?
In these fonts(mono,Sans,Serif) I added Farsi Arabic and Farsi characters.

is it possible to add fonts that i attached in Bug 32317 ?they supports Farsi glyphs.

Amir:
This report has been in ASSIGNED status for more than one year and you are set as its assignee. In case that you are not actively working on a fix, please reset the bug status to NEW/UNCONFIRMED.
In case you do not plan to work on a fix in the near future: Please also edit the "Assigned To" field by clicking "Reset Assignee to default", in order to not prevent potential contributors from working on a fix. Thanks for your help!
[assigned>=1y]

awight added a comment.Aug 8 2013, 6:58 AM

This works for me:

putenv("GDFONTPATH=/usr/share/fonts/truetype/ttf-dejavu");
$wgTimelineSettings->fontFile = "DejaVuSans";

Please confirm whether this helps on fawiki.

awight added a comment.Aug 8 2013, 7:00 AM

ugh... but the characters are reversed, bug 4030

(In reply to comment #11)

ugh... but the characters are reversed, bug 4030

may be https://bugzilla.wikimedia.org/show_bug.cgi?id=17766#c29 will be useful (Pdf collection also had this bug and Volker Haas solved it)

(In reply to comment #13)

http://test.wikipedia.org/wiki/User:Yamaha5/time#.D8.A7.D8.B2_.DB.B1.DB.B7.
DB.B5.DB.B0_.D9.85.DB.8C.D9.84.D8.A7.D8.AF.DB.8C_.D8.AA.D8.A7_.D8.AD.D8.A7.
D9.84
https://test2.wikipedia.org/wiki/User:Yamaha5/time
http://fa.wikipedia.org/w/index.
php?title=%DA%AF%D8%A7%D9%87%E2%80%8C%D9%86%DA%AF%D8%A7%D8%B1%DB%8C_%D8%B3%D8
%A8%DA%A9%E2%80%8C%D9%87%D8%A7%DB%8C_%D9%85%D8%B9%D9%85%D8%A7%D8%B1%DB%8C&old
id=10839337
the new patch doesn't have any effect!

I don't see any patch linked from this bug. Was a patch submitted?

excuse me I mean https://bugzilla.wikimedia.org/show_bug.cgi?id=4030#c20 I forgot to send this message there :) any way it should have an effect on this bug

Note, workaround (but causes other problems) is instead of using <timeline> tag, use <timeline method="svg2png">.

We should still change the font


Changing PATH_TO_REVIEW -> NEW. I cannot find any currently pending patches for this, and the issue still appears to be present, so I don't think anyone submitted one. If someone did submit a patch, please link to it.

(In reply to comment #15)

excuse me I mean https://bugzilla.wikimedia.org/show_bug.cgi?id=4030#c20 I
forgot to send this message there :) any way it should have an effect on this
bug

Hmm, there is that. I think we should call these separate bugs. Making it so glyphs work in png mode for farsi (even with the bidi issues) should be done, which is a separate issue from making svg2png work better, which is a better long term solution.

(In reply to comment #16)

Note, workaround (but causes other problems) is instead of using <timeline>
tag, use <timeline method="svg2png">.

this changing doesn't work properly because the links are moved to right side and the wiki links aren't work as link! and we should search on right side to find hidden links!

awight removed a subscriber: awight.Mar 21 2019, 4:06 PM