<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1256" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<title>English-Arabic Transliteration</title>
</head>
<body>
<center>
<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>
</div>
<div class="Paragraph" dir="rtl">
<br />
إذا كنت ترغب في بناء تطبيق لمن لا يستطيع التحدث بالإنجليزية ويحاول التفاهم مع شخص لا يعرف العربية، فإن هذا المثال يوضح كيفية الاستفادة من هذا الصنف في كتابة العبارات الإنجليزية بأحرف عربية:
<?php
include('ArTransliteration.class.php');
$tr = new ArTransliteration();
$en_sentences = array('I go to the market on Monday',
'How much tea do you want',
'How many tomatoes do you want',
'They walk in the mountains at the weekend',
'Does a secretary type letter',
'They are good players',
'They sometimes play basketball at the sports hall',
'Did he leave his bag in front of the house'
);
?>
<ul>
<?php
foreach($en_sentences as $str){
$ar_str = $tr->en2ar($str);
echo "<li>$str<br />$ar_str</li><br />";
}
?>
</ul>
</div>
</center>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1268287-1";
urchinTracker();
</script>
</body>
</html>
|