forked from neechalkaran/tamilwrappermaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrapper.php
17 lines (17 loc) · 7.82 KB
/
wrapper.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$maps= array(array("க்ஷொ","¦‡¡"), array("க்ஷோ","§‡¡"), array("க்ஷௌ","¦‡ª"), array("க்ஷா","‡¡"), array("க்ஷி","‡¢"), array("க்ஷீ","‡£"), array("க்ஷு","‡¤"), array("க்ஷூ","‡¥"), array("க்ஷெ","¦‡"), array("க்ஷே","§‡"), array("க்ஷை","¨‡"), array("கொ","¦¸¡"), array("கோ","§¸¡"), array("கௌ","¦¸ª"), array("க்ஷ்","Œ"), array("ஙொ","¦¹¡"), array("ஙோ","§¹¡"), array("ஙௌ","¦¹ª"), array("சொ","¦º¡"), array("சோ","§º¡"), array("சௌ","¦ºª"), array("ஞொ","¦»¡"), array("ஞோ","§»¡"), array("ஞௌ","¦»ª"), array("டொ","¦¼¡"), array("டோ","§¼¡"), array("டௌ","¦¼ª"), array("ணொ","¦½¡"), array("ணோ","§½¡"), array("ணௌ","¦½ª"), array("தொ","¦¾¡"), array("தோ","§¾¡"), array("தௌ","¦¾ª"), array("நொ","¦¿¡"), array("நோ","§¿¡"), array("நௌ","¦¿ª"), array("பொ","¦À¡"), array("போ","§À¡"), array("பௌ","¦Àª"), array("மொ","¦Á¡"), array("மோ","§Á¡"), array("மௌ","¦Áª"), array("யொ","¦Â¡"), array("யோ","§Â¡"), array("யௌ","¦Âª"), array("ரொ","¦Ã¡"), array("ரோ","§Ã¡"), array("ரௌ","¦Ãª"), array("லொ","¦Ä¡"), array("லோ","§Ä¡"), array("லௌ","¦Äª"), array("வொ","¦Å¡"), array("வோ","§Å¡"), array("வௌ","¦Åª"), array("ழொ","¦Æ¡"), array("ழோ","§Æ¡"), array("ழௌ","¦Æª"), array("ளொ","¦Ç¡"), array("ளோ","§Ç¡"), array("ளௌ","¦Çª"), array("றொ","¦È¡"), array("றோ","§È¡"), array("றௌ","¦Èª"), array("னொ","¦É¡"), array("னோ","§É¡"), array("னௌ","¦Éª"), array("ஜொ","¦ƒ¡"), array("ஜோ","§ƒ¡"), array("ஜௌ","¦ƒª"), array("ஷொ","¦„¡"), array("ஷோ","§„¡"), array("ஷௌ","¦„ª"), array("ஸொ","¦…¡"), array("ஸோ","§…¡"), array("ஸௌ","¦…ª"), array("ஸ்ரீ","‚"), array("ஹொ","¦†¡"), array("ஹோ","§†¡"), array("ஹௌ","¦†ª"), array("கா","¸¡"), array("கி","¸¢"), array("கீ","¸£"), array("கெ","¦¸"), array("கே","§¸"), array("கை","¨¸"), array("க்ஷ","‡"), array("ஙா","¹¡"), array("ஙி","¹¢"), array("ஙீ","¹£"), array("ஙெ","¦¹"), array("ஙே","§¹"), array("ஙை","¨¹"), array("சா","º¡"), array("சி","º¢"), array("சீ","º£"), array("செ","¦º"), array("சே","§º"), array("சை","¨º"), array("ஞா","»¡"), array("ஞி","»¢"), array("ஞீ","»£"), array("ஞெ","¦»"), array("ஞே","§»"), array("ஞை","¨»"), array("டா","¼¡"), array("டெ","¦¼"), array("டே","§¼"), array("டை","¨¼"), array("ணா","½¡"), array("ணி","½¢"), array("ணீ","½£"), array("ணெ","¦½"), array("ணே","§½"), array("ணை","¨½"), array("தா","¾¡"), array("தி","¾¢"), array("தீ","¾£"), array("தெ","¦¾"), array("தே","§¾"), array("தை","¨¾"), array("நா","¿¡"), array("நி","¿¢"), array("நீ","¿£"), array("நெ","¦¿"), array("நே","§¿"), array("நை","¨¿"), array("பா","À¡"), array("பி","À¢"), array("பீ","À£"), array("பெ","¦À"), array("பே","§À"), array("பை","¨À"), array("மா","Á¡"), array("மி","Á¢"), array("மீ","Á£"), array("மெ","¦Á"), array("மே","§Á"), array("மை","¨Á"), array("யா","¡"), array("யி","¢"), array("யீ","£"), array("யெ","¦Â"), array("யே","§Â"), array("யை","¨Â"), array("ரா","á"), array("ரி","â"), array("ரீ","ã"), array("ரெ","¦Ã"), array("ரே","§Ã"), array("ரை","¨Ã"), array("லா","Ä¡"), array("லி","Ä¢"), array("லீ","Ä£"), array("லெ","¦Ä"), array("லே","§Ä"), array("லை","¨Ä"), array("வா","Å¡"), array("வி","Å¢"), array("வீ","Å£"), array("வெ","¦Å"), array("வே","§Å"), array("வை","¨Å"), array("ழா","Æ¡"), array("ழி","Æ¢"), array("ழீ","Æ£"), array("ழெ","¦Æ"), array("ழே","§Æ"), array("ழை","¨Æ"), array("ளா","Ç¡"), array("ளி","Ç¢"), array("ளீ","Ç£"), array("ளெ","¦Ç"), array("ளே","§Ç"), array("ளை","¨Ç"), array("றா","È¡"), array("றி","È¢"), array("றீ","È£"), array("றெ","¦È"), array("றே","§È"), array("றை","¨È"), array("னா","É¡"), array("னி","É¢"), array("னீ","É£"), array("னெ","¦É"), array("னே","§É"), array("னை","¨É"), array("ஜா","ƒ¡"), array("ஜி","ƒ¢"), array("ஜீ","ƒ£"), array("ஜு","ƒ¤"), array("ஜூ","ƒ¥"), array("ஜெ","¦ƒ"), array("ஜே","§ƒ"), array("ஜை","¨ƒ"), array("ஷா","„¡"), array("ஷி","„¢"), array("ஷீ","„£"), array("ஷு","„¤"), array("ஷூ","„¥"), array("ஷெ","¦„"), array("ஷே","§„"), array("ஷை","¨„"), array("ஸா","…¡"), array("ஸி","…¢"), array("ஸீ","…£"), array("ஸு","…¤"), array("ஸூ","…¥"), array("ஸெ","¦…"), array("ஸே","§…"), array("ஸை","¨…"), array("ஹா","†¡"), array("ஹி","†¢"), array("ஹீ","†£"), array("ஹு","†¤"), array("ஹூ","†¥"), array("ஹெ","¦†"), array("ஹே","§†"), array("ஹை","¨†"), array("கு","Ì"), array("கூ","Ü"), array("க்","ì"), array("ஙு","™"), array("ஙூ","›"), array("ங்","í"), array("சு","Í"), array("சூ","Ý"), array("ச்","î"), array("ஞு","š"), array("ஞூ","œ"), array("ஞ்","ï"), array("டி","Ê"), array("டீ","Ë"), array("டு","Î"), array("டூ","Þ"), array("ட்","ð"), array("ணு","Ï"), array("ணூ","ß"), array("ண்","ñ"), array("து","Ð"), array("தூ","à"), array("த்","ò"), array("நு","Ñ"), array("நூ","á"), array("ந்","ó"), array("பு","Ò"), array("பூ","â"), array("ப்","ô"), array("மு","Ó"), array("மூ","ã"), array("ம்","õ"), array("யு","Ô"), array("யூ","ä"), array("ய்","ö"), array("ரு","Õ"), array("ரூ","å"), array("ர்","÷"), array("லு","Ö"), array("லூ","æ"), array("ல்","ø"), array("வு","×"), array("வூ","ç"), array("வ்","ù"), array("ழு","Ø"), array("ழூ","è"), array("ழ்","ú"), array("ளு","Ù"), array("ளூ","é"), array("ள்","û"), array("று","Ú"), array("றூ","ê"), array("ற்","ü"), array("னு","Û"), array("னூ","ë"), array("ன்","ý"), array("ஜ்","ˆ"), array("ஷ்","‰"), array("ஸ்","Š"), array("ஹ்","‹"), array("ஆ","¬"), array("இ","þ"), array("ஈ","®"), array("உ","¯"), array("ஊ","°"), array("எ","±"), array("ஏ","²"), array("ஐ","³"), array("ஒ","´"), array("ஓ","µ"), array("ஔ","¶"), array("ஃ","·"), array("க","¸"), array("ங","¹"), array("ச","º"), array("ஞ","»"), array("ட","¼"), array("ண","½"), array("த","¾"), array("ந","¿"), array("ப","À"), array("ம","Á"), array("ய","Â"), array("ர","Ã"), array("ல","Ä"), array("வ","Å"), array("ழ","Æ"), array("ள","Ç"), array("ற","È"), array("ன","É"), array("ஜ","ƒ"), array("ஷ","„"), array("ஸ","…"), array("ஹ","†"), array("௲","Ÿ"));
$text="திசை திருப்பி";
for ($x = 0; $x <count($maps); $x++) {
$text = str_replace($maps[$x][0],$maps[$x][1],$text);
}
$im = @imagecreatetruecolor(120, 200)
or die('Cannot Initialize new GD image stream');
$text_color = imagecolorallocate($im, 233, 14, 91);
putenv('GDFONTPATH=' . realpath('.'));
$font = "TSCu_Paranar.ttf";
header('Content-Type: image/jpeg');
imagettftext($im, 10, 0, 5, 15, $text_color, $font, $text);
imagepng($im);
imagedestroy($im);
return;
?>