Re: [OSM-talk] Mapnik: right-to-left labels are printed backward

2008-02-12 Thread Artem Pavlenko

On 11 Feb 2008, at 11:25, Moshe Sayag wrote:

 Hebrew and Arabic labels have to be printed in right-to-left order,  
 but are reversed by Mapnik.


Also, arabic script needs shaping!
Work in progress:

./bin/darwin/debug/unicode_test \320\234\320\276\321\201\320\272\320 
\262\320\260 \330\247\331\204\330\261\330\250\330\247\330\267 Oxford  
\345\220\203\343\204\220\343\204\212
testing unicode...
Москва الرباط Oxford 吃ㄐㄊ
Left-to-Right
u041c 0
u043e 1
u0441 2
u043a 3
u0432 4
u0430 5
u0020 6
Right-to-Left
u0637 7
u0627 8
u0628 9
u0631 10
u0644 11
u0627 12
Shaped arabic
ufec1
ufe8e
ufe91
ufeae
ufedf
ufe8d
Left-to-Right
u0020 13
u004f 14
u0078 15
u0066 16
u006f 17
u0072 18
u0064 19
u0020 20
u5403 21
u3110 22
u310a 23


 Moshe

Artem

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] Mapnik: right-to-left labels are printed backward

2008-02-11 Thread Moshe Sayag
Hebrew and Arabic labels have to be printed in right-to-left order, but are
reversed by Mapnik.

See the differences between the way they are printed in the Mapnik
(incorrect) and Osmarenderer (correct) layers.

Hebrew: http://www.openstreetmap.org/?lat=31.6786lon=34.5695zoom=14
Arabic: http://www.openstreetmap.org/?lat=33.8935lon=35.4925zoom=12

Moshe
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk