36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<?php
|
|
$filename = "./fr_es.wb";
|
|
|
|
$nbstrings = filesize($filename)/84;
|
|
$string = file ($filename);
|
|
for($i = 0 ; $i < $nbstrings ; $i++)
|
|
{
|
|
$chaine = substr($string[0],$i*84,84);
|
|
$chaine = str_replace("é","e", $chaine);
|
|
$chaine = str_replace("é","e", $chaine);
|
|
$chaine = str_replace("à","a", $chaine);
|
|
$chaine = str_replace("ô","o", $chaine);
|
|
//$chaine = str_replace("ç","c", $chaine);
|
|
$chaine = str_replace("è","e", $chaine);
|
|
$chaine = str_replace("ô","o", $chaine);
|
|
$chaine = str_replace("ê","e", $chaine);
|
|
$chaine = str_replace("ë","e", $chaine);
|
|
$chaine = str_replace("Ã| ","a", $chaine);
|
|
$chaine = str_replace("ç","c", $chaine);
|
|
$chaine = str_replace("ï","i", $chaine);
|
|
$chaine = str_replace("û","u", $chaine);
|
|
$chaine = str_replace("î","i", $chaine);
|
|
$chaine = str_replace("ö","o", $chaine);
|
|
$chaine = str_replace("~R","'", $chaine);
|
|
//$chaine = str_replace("~S","«", $chaine);
|
|
//$chaine = str_replace("~T","»", $chaine);
|
|
$chaine = str_replace("Â","", $chaine);
|
|
$chaine = str_replace("¼","cx", $chaine);
|
|
//$chaine = str_replace("«","«", $chaine);
|
|
//$chaine = str_replace("& ","&", $chaine);
|
|
|
|
//$chaine = str_replace($chaine, "","");
|
|
echo trim(substr($chaine, 0, 30))."@English@".trim(substr($chaine,31,54));
|
|
echo "\n";
|
|
}
|
|
?>
|