PHP Classes

PHPBiDi: Get visual representation of right to left strings

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 425 This week: 1All time: 6,354 This week: 560Up
Version License PHP version Categories
phpbidi 1.0GNU General Publi...5.0HTML, Localization, PHP 5, Text proce...
Description 

Author

PHPBiDi is an implementation of the Unicode Bidirectional Algorithm in PHP.

This package can be used to get the visual representation of text strings for languages that are written from right to left.

It can parse right to left strings of plain text or HTML and returns visually, rather than logically, ordered strings of characters.

Innovation Award
PHP Programming Innovation award nominee
February 2008
Number 3


Prize: One copy of the Zend Studio
The documents that are in certain idioms use writing systems, like the Arabic, Hebrew and Persian, that have the text characters rendered from right to left (RTL), unlike texts that use the Latin alphabet, that have the text rendered from left to right (LTR).

When you have documents that mix RTL and LTR text, you have a bidirectional text (BiDi). Bidirectional documents present a greater challenge to be rendered, as you need to figure how to render the different sections of the text.

This class provides a solution to process bidirectional documents in such way that it returns the text ordered according the way it is visually rendered.

Manuel Lemos
Picture of Efthimios Mavrogeorgiadis
Name: Efthimios ... is available for providing paid consulting. Contact Efthimios ... .
Classes: 1 package by
Country: Greece Greece
Age: 54
All time rank: 346220 in Greece Greece
Week rank: 411 Up4 in Greece Greece Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example File
Plain text file phpbidi.php Class PHPBiDi Class File
Plain text file unicode.php Class UniChar Class File
Accessible without login Plain text file unicode_data.php Aux. Data File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:425
This week:1
All time:6,354
This week:560Up