Procedural File: ArGlyphs.class.php
Source Location: /sub/ArGlyphs.class.php
Classes:
ArGlyphs
This PHP class render Arabic text by performs Arabic glyph joining on it
Page Details:
----------------------------------------------------------------------
Copyright (C) 2009 by Khaled Al-Shamaa. http://www.ar-php.org ---------------------------------------------------------------------- LICENSE This program is open source product; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>. ---------------------------------------------------------------------- Class Name: Arabic Glyphs is a simple class to render Arabic text Filename: ArGlyphs.class.php Original Author(s): Khaled Al-Sham'aa <khaled.alshamaa@gmail.com> Purpose: This class takes Arabic text (encoded in Windows-1256 character set) as input and performs Arabic glyph joining on it and outputs a UTF-8 hexadecimals stream that is no longer logically arranged but in a visual order which gives readable results when formatted with a simple Unicode rendering just like GD and UFPDF libraries that does not handle basic connecting glyphs of Arabic language yet but simply outputs all stand alone glyphs in left-to-right order. ---------------------------------------------------------------------- Arabic Glyphs is class to render Arabic text PHP class to render Arabic text by performs Arabic glyph joining on it, then output a UTF-8 hexadecimals stream gives readable results on PHP libraries supports UTF-8. Example: include('./Arabic.php');
$Arabic = new Arabic('ArGlyphs');
$text = $Arabic->utf8Glyphs($text);
Tags:
|