Here is the small sample that I put together for that ticket, so you can test locally and provide feedback: https://github.com/mapserver/mapserver/files/1005449/ticket-5426-arabic-labels.zip

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2017-06-15 7:23 PM, apollolm wrote:
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!



_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to