Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: Transliteration

Source Location: /sub/Transliteration.class.php

Class Overview


This PHP class transliterate English words into Arabic


Author(s):

Copyright:

  • 2006-2010 Khaled Al-Shamaa

Variables

Methods



Class Details

[line 99]
This PHP class transliterate English words into Arabic



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2006-2010 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Variables

static $ar2enPregReplace = array()

[line 110]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $ar2enPregSearch = array()

[line 109]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $ar2enStrReplace = array()

[line 112]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $ar2enStrSearch = array()

[line 111]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $arFinePatterns = array("/'+/", "/([\- ])'/", '/(.)#/')

[line 101]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $arFineReplacements = array("'", '\\1', "\\1'\\1")

[line 102]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $en2arPregReplace = array()

[line 105]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $en2arPregSearch = array()

[line 104]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $en2arStrReplace = array()

[line 107]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $en2arStrSearch = array()

[line 106]



Tags:

access:  protected

Type:   mixed


[ Top ]

$ar2enInput =  'utf-8'

[line 118]

"ar2en" method input charset



Tags:

access:  public

Type:   String


[ Top ]

$ar2enVars = array('string')

[line 124]

Name of the textual "ar2en" method parameters



Tags:

access:  public

Type:   Array


[ Top ]

$en2arOutput =  'utf-8'

[line 130]

"en2ar" method output charset



Tags:

access:  public

Type:   String


[ Top ]



Class Methods


static method ar2en [line 197]

static String ar2en( string $string)

Transliterate Arabic string into English by render them in the orthography of the English language



Tags:

return:  Out of vocabulary Arabic string in English characters
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $string   Arabic string you want to transliterate

[ Top ]

static method arNum [line 266]

static String arNum( string $string)

Render numbers in given string using HTML entities that will show them as Indian digits (i.e. ١, ٢, ٣, etc.) whatever browser language settings are (if browser supports UTF-8 character set).



Tags:

return:  Original string after replace digits by HTML entities that will show given number using Arabic digits
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $string   String includes some digits here or there

[ Top ]

static method en2ar [line 169]

static String en2ar( string $string)

Transliterate English string into Arabic by render them in the orthography of the Arabic language



Tags:

return:  Out of vocabulary English string in Arabic characters
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $string   English string you want to transliterate

[ Top ]

static method enNum [line 242]

static String enNum( string $string)

Render numbers in given string using HTML entities that will show them as Arabic digits (i.e. 1, 2, 3, etc.) whatever browser language settings are (if browser supports UTF-8 character set).



Tags:

return:  Original string after replace digits by HTML entities that will show given number using Indian digits
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $string   String includes some digits here or there

[ Top ]

constructor __construct [line 135]

Transliteration __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]


Documentation generated on Sat, 14 Aug 2010 13:23:59 -0700 by phpDocumentor 1.4.0