[mapserver-users] Farsi right-to-left labels

Stephen Woodbridge woodbri at swoodbridge.com
Wed Mar 12 13:02:06 EDT 2008


Hi Daniel,

I looked at the patch briefly.
It doesn't seem to be doing character joining for works in Arabic.

I'm thinking that if we had the algorithm to do the joining then we 
could add that and maybe a Tag or metadata item that enabled the joining 
  if needed. The joining algorithm, might be smart enough to only join 
Arabic letters and leave the rest alone.

If you are interested, I think I can get my hands on a perl script that 
does the joining.

-Steve W

Daniel Morissette wrote:
> Copying what I wrote earlier this morning on the ka-map list (sorry for 
> those on both lists):
> 
> FYI there is an open MapServer ticket about this:
>   http://trac.osgeo.org/mapserver/ticket/956
> 
> The ticket even includes a patch that you may want to try. I'll try to 
> address this one for MapServer 5.2.
> 
> Daniel
> 
> 
> R Isfahani wrote:
>> Hi,
>>
>> I'm trying to render some Farsi (Persian) labels on my map. As you may 
>> know, Farsi words are written from right to left, just like Hebrew.
>> I've changed the label's encoding to 'Windows-1256' in my mapfile and 
>> I'm using TrueType fonts. Farsi letters have appeared. But the problem 
>> is that letters are in revers order and letters are not joining properly.
>> Of course reversing the letters' order in database will cause the 
>> right order of them when rendering the map. But I wanna know if 
>> there's any other way to show farsi labels in right order with no 
>> joining problems.
>>  
>> [Actually, I'm using Ka-Map on the top of Mapserver to render my maps 
>> on the web. Ka-Mappers told me that my problem is a kind of Mapserver 
>> problems]
>>
>> Any new ideas are welcomed.
>> Thanx.
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list