[mapserver-users] Arabic labeling problem again?!!!

Jackey Cheung cheung.jackey at gmail.com
Mon Nov 17 21:17:28 PST 2008


We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to
try show Arabic labels. But the words are not joined. Then we've tried on an
MS4W 2.3.0 server, it's worse.
We are using PostGIS, and the database is using UTF8 (pgpr.png), while all
Arabic data can be shown correctly on my English Windows XP, and we've tried
some more machines, or on IE, to make sure that Arabic text in database are
really UTF8.

Here's the images: http://www3.mapasia.com/jackout/ara.png

The part of the map file is as follow, where the "arbic-trans" is a Arabic
TrueType font named "Arabic Transparent":
LABEL
ANGLE FOLLOW
PRIORITY [priority]
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arbic-trans"
SIZE 7
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 500
BUFFER 1
MINFEATURESIZE 50
END

Any clue?



On Tue, Sep 9, 2008 at 10:56 PM, Stephen Woodbridge <woodbri at swoodbridge.com
> wrote:

> Hello Saka,
>
> There are a lot of pieces that you have to get working together to get this
> to work:
>
> 1) mapserver 5.2 MUST be built with fribidi2 support. I beleieve this is
> also designated as version fribidi-0.19.1
>
> 2) A typetype font file that contains the shape gliphs that you might need
> along with the characters that you need to display.
>
> 3) And I'm sure this works with UTF-8, but unsure about other encodings.
>
> 4) your data converted to UTF-8 if it is in some other encoding
>
> 5) and finally you mapfile label definition which specifies an encoding of
> utf-8.
>
> You might get other variations of this to work, I would be interested in
> hearing your reports of you can get others to work. I have sucessfully
> gotten the above to work.
>
> Best regards,
>  -Stephen Woodbridge
>
> Saka Royban wrote:
>
>>
>> Hi all.
>> I've asked this problem in MS4W mailing list but no success. it sounds it
>> originally relates to mapserver
>> According to what History.txt  for MS4W2.2.8 says, problem for arabic and
>> hebrew languages has been solved by using UTF8. But i couldn't get a good
>> result.
>> In fact, UTF8 doesn't show letters correctly (just some symbols). i have
>> tried lots of fonts but the same result.
>> in current version, the problem of joining letters have been solved
>> because i can get result using 'ISO8859-6' encoding which is for arabic but
>> now this encoding changes some of letters with each other.
>> In last version, 'Windows-1256' encoding (for arabic) worked well for
>> showing letters just they were separate not joint. but in cuurent versions
>> this encoding just shows some symbols.
>> I'm confused. maybe i should setup sth which i don't do or i don't know
>> sth else.
>> that would be my appreciate to help me because it is really a need. Maps
>> without labels have less usage.
>> Thanks in advance
>> (See attachments)
>> My Mapfile: LABEL
>>  TYPE TrueType
>>  FONT timesnewromans
>>  ENCODING 'windows-1256'
>>  SIZE 12
>> END
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/a3b42ac2/attachment.htm>


More information about the MapServer-users mailing list