To kill the curosity right here....
"Bidirectional" here means the merging of langauages that read from Left to Right (English, French, Spanish etc) with some Native languages that are read from Right to Left, (Arabic, Farsi, Urdu etc).
Problem arises where L2R sub-strings are inserted in R2L string or vice versa.
Like an arabic sub-string in an enlish text. Suppose the lower case is english and upper case in urdu, a bidirectional string may look like.
i drive my CAR daily
but it should not look like this, as CAR should be from L2R in display and in selection.
i drive my RAC daily
--
If you have read this far I am sure this is the topic you are looking for.
Continue your reading here http://fribidi.sourceforge.net/
FriBiDi Functions
簡介
FriBiDi is a free implementation of the » Unicode Bidirectional Algorithm.
需求
You must download and install the » FriBiDi package.
安裝
本 » PECL 擴充功能未包含於 PHP 中。 安裝此 PECL 擴充功能的訊息可在手冊中標題為 PECL 擴充功能安裝的一章中找到。 更多訊息如新版本,下載,原始文件,維護者訊息以及更新日誌等可以在這裡找到: » http://pecl.php.net/package/fribidi.
In order to use these functions you must compile PHP with Fribidi support by using the --with-fribidi[=DIR] configure option.
Windows users will enable php_fribidi.dll inside of php.ini in order to use these functions. 可以從 » PHP 下載頁面或者 » http://snaps.php.net/ 下載此 PECL 擴充功能的 DLL 文件。
執行時期設定
資源類型
本擴充功能未定義任何資源類型。
預設常數
以下常數由擴充功能定義,因此只有在擴充功能被編譯到 PHP 中,或者在執行時被動態載入後才有效。
- FRIBIDI_CHARSET_UTF8 (integer)
- Unicode
- FRIBIDI_CHARSET_8859_6 (integer)
- Arabic
- FRIBIDI_CHARSET_8859_8 (integer)
- Hebrew
- FRIBIDI_CHARSET_CP1255 (integer)
- Hebrew/Yiddish
- FRIBIDI_CHARSET_CP1256 (integer)
- Arabic
- FRIBIDI_CHARSET_ISIRI_3342 (integer)
- Persian
- FRIBIDI_CHARSET_CAP_RTL (integer)
- Used for test purposes, will treat CAPS as non-English letters
- FRIBIDI_RTL (integer)
- Right to left
- FRIBIDI_LTR (integer)
- Left to right
- FRIBIDI_AUTO (integer)
- Autodetect the base direction
FriBiDi
webKami [at] akdomains.com
01-Apr-2005 04:58
01-Apr-2005 04:58
