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

Yewondwossen Assefa yassefa at dmsolutions.ca
Wed Mar 12 13:01:30 PDT 2008



Stephen Woodbridge wrote:
> 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,

  Isn't is what the function shape_arabic (from the PostArabic) module 
does?  If that is the case, the source code in C and an original perl 
source code are available on the web.

Best Regards,


> -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
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the MapServer-users mailing list