Re: php-windows Digest 7 Jan 2003 22:58:11 -0000 Issue 1524
| From: | Neil Smith | Date: | Wed, 08 Jan 2003 12:15:03 +0000 |
| Subject: | Re: php-windows Digest 7 Jan 2003 22:58:11 -0000 Issue 1524 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17720@lists.php.net to get a copy of this message | ||
Hmm - I don't know that I really understand the problem you are having .
There is a web page using the CSS technique I have mentioned here - view the HTML source to see how the CSS is used with Unicode character encodings :
http://www.unicode.org/unicode/standard/translations/arabic.html
Before using any CSS based solution , you will have to emit the correct character encoding for your document : these should work for your users --
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-6"> or
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
You might find some help here - its the Arazilla (Mozilla) arabic fonts program :
http://www.langbox.com/AraZilla/index_ar.html
They have a mailing list which might be more appropriate to your problem.
subscribe to <mailto:arazilla-L-request@langbox.com?subject=subscribe>arazilla-L-request@langbox.com by putting "subscribe" in the subject.
describe your point or your suggestion to <mailto:arazilla-L@langbox.com>arazilla-L@langbox.com.
Regards,
Neil Smith.
At 22:58 07/01/2003 +0000, you wrote:
Message-ID: <001e01c2b648$95bff100$c352dbd9@mottaghi> From: "Mottaghi" <manghool@myrealbox.com> To: "PHP Windows Helplist" <php-windows@lists.php.net> Date: Tue, 7 Jan 2003 15:59:04 +0330 MIME-Version: 1.0 Content-Type: text/plain;charset="iso-8859-1"Content-Transfer-Encoding: 7bit Subject: Re: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL Hi, look... in Arabic/Persian Languages we have 4 forms of one character that it has only one UNICODE code, for example the "سسس" has 3 different view, "the first SIN", "the middle SIN" and "the last SIN". all of these three "SIN" will mix together like Latin hand writings (freehand). i reverse my sentences...but i cant write them currect on an image! OK, but How can i use CSS to export an image file??? :) Thanks a lot ----- Original Message ----- From: "Neil Smith" <neil@fresh-toast.uklinux.net> To: <php-windows-digest-help@lists.php.net> Cc: <manghool@myrealbox.com> Sent: Tuesday, January 07, 2003 3:43 PM Subject: Re: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL Well if you *insist* on using GD - but I promise you, CSS is a better way to do this. You will need to generate your string, spilt the string into an array of characters using the # character as a separator, then join your array in reverse order to a new (reversed) string. You can then pass this string to the imagettftext function. Of course, I am assuming you know how to use the GD functions, and that you have a suitable arabic font with corresponding Unicode characters.