PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Khaled Al-Shamaa   EnTransliteration   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: EnTransliteration
Transliterate Arabic words into English
Author: By
Last change: Improve transliterate algorithm from Arabic to English using Dr. Mansour M. Alghamdi notes (Example show the differences now)
Date: 16 years ago
Size: 3,602 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

<meta http-equiv="Content-Type" content="text/html;charset=windows-1256" />

<meta name="Subject" content="Arabic-English Transliteration" />
<meta name="Description" content="Arabic-English Transliteration" />
<meta name="Classification" content="PHP and Arabic Language" />
<meta name="Keywords" content="English, Transliteration, PHP, Arabic, Language, Development, Implementation, Open Source, Free, GPL, Classes, Code" />
<meta name="Language" content="English, Arabic" />
<meta name="Author" content="Khaled Al-Shamaa" />
<meta name="Copyright" content="Khaled Al-Shamaa" />
<meta name="Designer" content="Khaled Al-Shamaa" />
<meta name="Publisher" content="Khaled Al-Shamaa" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="INDEX,FOLLOW" />
<meta name="City" content="Aleppo" />
<meta name="Country" content="Syria" />

<link rel="shortcut icon" href="../favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<title>Arabic-English Transliteration</title>


<div style="width: 80%; position:absolute; left:10%; top:0%; z-index:1">
<br />
<div class="tabArea" align="center">
  <a class="tab" href="example.php">Example 1</a>
  <a class="tab" href="example2.php">Example 2</a>
  <a class="tab" href="about.html">About</a>
  <a class="tab" href="">Homepage</a>

<div class="Paragraph">

@ini_set('zend.ze1_compatibility_mode', '1');

$tr = new EnTransliteration();

$ar_terms = array(' ', ' ', ' ',
' ', ' ', ' ', '
, ' ', ' ', ' ', '
, ' ');

$new_ar_terms = array('', '', '', '', '', ' ');

<table border="0" cellspacing="2" cellpadding="5" width="60%" dir="rtl">
<tr><td bgcolor="#27509D" align="center" dir="ltr" width="50%"><b><font color="#ffffff">Arabic (sample input)</font></b></td>
<td bgcolor="#27509D" align="center" dir="ltr" width="50%"><b><font color="#ffffff" face="Tahoma">English (auto generated output)</font></b></td></tr>

foreach($ar_terms as $term) {
'<tr><td bgcolor="#f5f5f5" align="right"><font face
'<td bgcolor="#f5f5f5" align="left"><font face="Verdana">'.$tr->ar2en

$new_ar_terms as $term) {
'<tr><td bgcolor="#f5f5c0" align="right"><font face
'<td bgcolor="#f5f5c0" align="left"><font face="Verdana">'.$tr->ar2en

<table border="0" cellspacing="0" align="left">
    <td bgcolor="#448800">&nbsp;&nbsp;</td>
    <td bgcolor="#66aa00">&nbsp;&nbsp;</td>
    <td bgcolor="#77bb00">&nbsp;&nbsp;</td>
    <td bgcolor="#aadd00">&nbsp;&nbsp;</td>
    <td bgcolor="#eeff66">&nbsp;&nbsp;</td>
          <script src="" type="text/javascript">
          <script type="text/javascript">
          _uacct = "UA-1268287-1";