Closed mapserver-bot closed 12 years ago
Author: dmorissette Date: 2008/03/17 - 20:15 Some useful info from TC Haddad on the mapserver-users list:
The Arabic and Farsi are going to have identical joining issues. So if
your code handles Arabic it *should* cover Farsi no problem.
In general joined letters are used in the middle of a word (like
cursive handwriting in english). Most Arabic words are composed almost
exclusively of joined letters. There is no such thing as "print" vs.
"cursive" - you would never write a multi-letter word using unjoined
letters in Arabic.
Unjoined letters are used when characters stand alone - either because
they are single-letter words, or because certain characters stand
alone by convention when used at the beginning or end of a word (sort
of like bookends).
The joined vs. unjoined version of any letter is stored in the font
just as an English font stores both lower and upper case characters.
Although the Arabic and Farsi look very similar, they do use slightly
different alphabets (some characters (and sounds) exist in Farsi that
don't exist in Arabic - maybe also vice versa).
Author: woodbri Date: 2008/03/19 - 01:17 Here is the page with the appropiate links for information and downloads:
http://fribidi.freedesktop.org/wiki/
fribidi2 has been released as fribidi-0.19.1.tar.gz and can be downloaded from:
http://fribidi.org/download/fribidi-0.19.1.tar.gz
google for fribidi2 turns up lots of links, some with reported problems that might be helpful to sort out existing problems verses integration issues.
Author: project10 Date: 2008/04/08 - 17:54 I can confirm that MapServer works with version 0.19.1 of the FriBiDi library on win32. FTR, MapServer now uses deprecated functions (as of version 0.19.1).
The arabic joining/shaping looks great!
I needed to make a Visual Studio project to build the .dll/.lib and was then able to link this into MapServer. If anyone has any interest I can try to roll up my VS project files so anyone who's interested could also build on win32.
Author: dmorissette Date: 2008/06/18 - 19:50 Closing as worksforme (nohing to do) since Fribidi v0.19.1 supports joining.
Author: mohmaher Date: 2009/01/27 - 11:01 Replying to [comment:4 dmorissette]:
Closing as worksforme (nohing to do) since Fribidi v0.19.1 supports joining. Project10 would you please send me the .dll/.lib that works with Mapserver.
I'm running Mapserver on Win32 and I need to solve this arabic characters problems without going into Mapserver code and recompilation.
Thanks in Advance
Author: assefa Date: 2009/01/27 - 14:16 mohmaher
You can get them from ms4w (http://maptools.org/ms4w/). latest version 2.3.1, should have this fix.
Author: mohmaher Date: 2009/01/27 - 15:05 Sorry for being pushy..
But, I have the latest Binaries installed , and still the arabic is rendered in a reverse order ..
I'm using the ENCODING 'Windows-1256' in the Label section
Am I missing anything ?!
Author: assefa Date: 2009/01/27 - 15:14 I am not sure about the encoding value. The test data I used when testing this had an encoding of: ENCODING "CP1256". Could you try it with this encoding?
Author: mohmaher Date: 2009/01/27 - 15:24 Assefa ,
U r wonderful, "CP1256" did it.
Except almost one character which is the "J" or "Shift+j" in arabic keyboard of course.
Any Idea??
Author: assefa Date: 2009/01/27 - 15:39 Not really. You might have more luck on the fribidi mailing list or main Mapserver mailing list.
Author: mohmaher Date: 2009/01/27 - 15:47 Assefa,
Thanks again and again ..
Reporter: dmorissette Date: 2008/03/17 - 19:59 Trac URL: http://trac.osgeo.org/mapserver/ticket/2549 Ticket #956 added support for right-to-left labels using the FriBidi library, but that still does not support joining of characters.
This ticket is about adding support for joining of characters. Sounds like FriBidi2 will include joining support and would be the way to go.
There was a thread on mapserver-users around 2008-03-12 with some useful information about this: http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054789.html
and that thread later on moved to mapserver-dev: http://www.nabble.com/Re:-Farsi--right-to-left--labels-td16057385.html