We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Farsi, Arabic, and R2L languages
Page Index Toggle Pages: 1
Farsi, Arabic, and R2L languages (Read 1224 times)
Farsi, Arabic, and R2L languages
May 3rd, 2010, 8:47am
 
Hello,

I'm writing a program that displays strings in Farsi that are stored in a MYSQL database. The program is able to display the font and letters correctly, but at some point in the transition from the db to the screen, the Farsi text gets reversed, and the letters become separated from each other. This is an issue for users of the program, because Farsi, Arabic and related languages are written in cursive, and even if I write a script to reverse the order of the string, the fact that the cursiveness is broken up means the text is unreadable.

I can't find any answers on this board that relate to my problem. I understand that rendering R2L languages is consistently an issue, but I would hope that there is some solution since these languages are so widespread.

Any help would be very appreciated by myself and my users in Kabul.

thanks!
/noah
Re: Farsi, Arabic, and R2L languages
Reply #1 - Jun 4th, 2010, 12:01am
 
Hi,

Unfortunately, Processing does not support right-to-left scripts with joining characteristics and different forms of letters. See this registered bug and Ben Fry's response:

http://dev.processing.org/bugs/show_bug.cgi?id=1458

But there is a smart hack done by Mohamed A. Maksoud which can be found here:

http://processing.org/discourse/yabb2/num_1248708129.html#10

I didn't test this yet, but the method seems valid to me. Of course, some adaptations are needed for Farsi to include "گچ پژ".

Cheers,
Shervin
Page Index Toggle Pages: 1