[mapserver-users] Reversed Arabic Words/Numbers

apollolm apollolm at gmail.com
Thu Jun 15 15:23:00 PDT 2017


Hi - I opened an Issue in the Git repo here:
https://github.com/mapserver/mapserver/issues/5426, but wanted to also ask
here if anybody has encountered this same issue with Mapserver 7.0.4.

Copied from Github:

We recently upgraded from MapServer 6.2.1 to 7.0.4.

One issue we're seeing is that Arabic road labels that contain a number and
a word like طريق 30 is being displayed with the 30 to the right of the
phrase. (So Road 30 instead of 30 Road)

(See the link for screenshots of 6.2.1 vs. 7.0.4)

The '30' should appear to the left of the word.

We are using fribidi_0.19.6 and harfbuzz_1.4.1 (both in our new and previous
versions of MapServer). This is happening on both a Windows and Ubuntu 16.04
environment, and seems to only affect the ordering of labels when a number
is present in an Arabic label.

One thing that changed in our installation had to do with a
freetype/harfbuzz circular dependency:
I had to compile and install freetype w/o harfbuzz. Then install harfbuzz.
And then compile and install freetype w/ harfbuzz on top of existing
freetype. I am pretty sure that when I installed freetype the second time it
overwrote the freetype libraries from the first installation of freetype.

Here are the options we used when compiling:
-DWITH_GDAL=1 -DWITH_HARFBUZZ=1 -DWITH_THREAD_SAFETY=1 -DWITH_JAVA=1
-DWITH_CAIRO=0 -DWITH_GEOS=0 -DWITH_POSTGIS=0 -DWITH_RSVG=0
-DWITH_CLIENT_WMS=0 -DWITH_CLIENT_WFS=0 -DWITH_WFS=0 -DWITH_LIBXML2=0
-DWITH_KML=0 -DWITH_GIF=0 -DWITH_EXEMPI=0 -DWITH_FCGI=0

The input data for both versions is identical - the only thing I can tell
that is different is the version of MapServer.

Based on the comments in the Git issue, I tried using the ENCODING block as
well with no effect.

Thanks!





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Reversed-Arabic-Words-Numbers-tp5324414.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list