<!-- <strong> <span class="ner-asai">நேரசை</span> </strong><?php echo $ptree->ner; ?> <strong><span class="nirai-asai">நிரையசை</span> </strong><?php echo $ptree->nirai; ?> </p> --> <?php if ($ptree->MetreType != NULL) { echo "<span class=\"uiTrant\">" . lancon(lat2tam($ptree->MetreType), $lang) . "</span>"; } else { // Translate below echo "<span class=\"uiTrant\">" . lancon(lat2tam("_e_nta pA vakYyu_m poru_ntavi_llY"), $lang) . "</span>"; } // Translate // this ?> <!-- <span style="float: left; padding-right:1em"><a href="/save" target="_blank"><span class="uiTran"><?php echo lanconTrnL("சேமி", $_SESSION['lang']); ?> </span></a></span> --> <span style="float: right;margin-left:15px;"><a href="/xml" target="_blank"><span class="uiTran"><?php echo lanconTrnL("XML வடிவில் காண", $_SESSION['lang']); ?>
if (isset($xml->Ornamentation->Rhyme)) { $type = $xml->Ornamentation->Rhyme['type']; echo lancon(lat2tam('_aTi _etukY'), $lang); echo " : "; if (isset($xml->Ornamentation->Rhyme)) { foreach ($xml->Ornamentation->Rhyme->Match as $match) { echo $match['line'] . " " . $match . " "; } } } echo "\n"; } echo "\n"; } if (isset($options['talai']) || !$showPartial) { echo lancon(lat2tam('taLY'), $lang) . "\n\n"; $footL = array(); foreach ($xml->MetricalLine as $line) { foreach ($line->MetricalFoot as $foot) { $footL[] = $foot; } } for ($i = 0; $i < count($footL) - 1; $i++) { foreach ($footL[$i]->Metreme as $metreme) { echo $metreme; } echo " → "; foreach ($footL[$i + 1]->Metreme as $metreme) { echo $metreme; } echo " : " . $footL[$i + 1]["linkage"] . "\n";
public function DisplayTodaiElements($TodaiArray, $Lines, $TodaiType, $TodaiClass) { $TodadiPatternName = array("12" => "_iNY", "13" => "poZi_ppu", "14" => "_orU_u", "123" => "kUZY", "134" => "mE_RkatuvA_y", "124" => "kI_Z_kkatuvA_y", "1234" => "mu_RRu"); $TodaiExists = FALSE; $Ornament = array(); for ($LineIndex = 0; $LineIndex < count($TodaiArray); $LineIndex++) { if ($TodaiClass == "Line") { echo "<em><span class=\"uiTran\">" . lanconTrnL("அடி", $this->Lang) . "</span> </em>" . ($LineIndex + 1) . " | "; echo "<span class=\"todailine uiTrant\">"; echo lancon(lat2tam($Lines[$LineIndex]), $this->Lang); echo "</span>" . "<br/><br/>"; } $TodaiLine = $TodaiArray[$LineIndex]; $LineWordCount = count(explode(" ", trim($Lines[$LineIndex]))); foreach ($TodaiLine as $TodaiSeer) { if (count($TodaiSeer) > 1) { $TodaiExists = true; for ($TodaiIndex = 0; $TodaiIndex < count($TodaiSeer); $TodaiIndex++) { foreach ($TodaiSeer[$TodaiIndex] as $Index => $Word) { } echo "<span class=\"todaiindex\">"; echo $Index + 1 . " "; echo "</span>"; $TodaiPattern = $TodaiPattern . ($Index + 1); if ($TodaiType == "mOVY") { $Ornament[$LineIndex][0][$Index] = lancon(lat2tam($Word), $this->Lang); echo "<span class=\"todaiword uiTrant\">"; echo lancon(lat2tam(substr($Word, 0, 2)), $this->Lang); echo "</span>"; echo "<span class=\"uiTrant\">" . lancon(lat2tam(substr($Word, 2)), $this->Lang) . "</span>" . " "; } if ($TodaiType == "_etukY") { $Ornament[$LineIndex][0][$Index] = lancon(lat2tam($Word), $this->Lang); echo "<span class=\"uiTrant\">" . lancon(lat2tam(substr($Word, 0, 2)), $this->Lang) . "</span>"; echo "<span class=\"todaiword uiTrant\">"; echo lancon(lat2tam(substr($Word, 2, 2)), $this->Lang); echo "</span>"; echo "<span class=\"uiTrant\">" . lancon(lat2tam(substr($Word, 4)), $this->Lang) . "</span>" . " "; } if ($TodaiType == "_iyYpu") { $Ornament[$LineIndex][0][$Index] = lancon(lat2tam($Word), $this->Lang); $Word = trim($Word); echo "<span class=\"uiTrant\">" . lancon(lat2tam(substr($Word, 0, -2)), $this->Lang) . "</span>"; echo "<span class=\"todaiword uiTrant\">"; echo lancon(lat2tam(substr($Word, -2)), $this->Lang); echo "</span>" . " "; } } echo "<span class=\"todaipattern uiTrant\">"; if ($TodadiPatternName[$TodaiPattern] != "" && $TodaiClass == "Line" && $LineWordCount == 4) { echo " | " . lancon(lat2tam($TodadiPatternName[$TodaiPattern] . " " . $TodaiType), $this->Lang); $Ornament[$LineIndex][1] = lancon(lat2tam($TodadiPatternName[$TodaiPattern] . " " . $TodaiType), $this->Lang); } echo "</span>"; echo "<br/>"; $TodaiPattern = ""; } } if (!$TodaiExists) { echo "<span class=\"uiTran\">" . lanconTrnL(lat2tam($TodaiType), $this->Lang) . "</span> " . "<span class=\"uiTran\">" . lanconTrnL("இல்லை", $this->Lang) . "</span></br/>"; } $TodaiExists = FALSE; echo "<br/>"; } return $Ornament; }
<li><a href="asiriyappa"><span class="uiTrant">' . lancon("ஆசிரியப்பா", $_SESSION['lang']) . '</span></a></li> <li><a href="kalippa"><span class="uiTrant">' . lancon("கலிப்பா", $_SESSION['lang']) . '</span></a></li> <li ><a href="vanjippa"><span class="uiTrant">' . lancon("வஞ்சிப்பா", $_SESSION['lang']) . '</span></a></li> <li><a href="venpavinam"><span class="uiTrant">' . lancon("வெண்பாவினம்", $_SESSION['lang']) . '</span></a></li> <li><a href="asiriyappavinam"><span class="uiTrant">' . lancon("ஆசிரியப்பாவினம்", $_SESSION['lang']) . '</span></a></li> <li><a href="kalippavinam"><span class="uiTrant">' . lancon("கலிப்பாவினம்", $_SESSION['lang']) . '</span></a></li> <li ><a href="vanjippavinam"><span class="uiTrant">' . lancon("வஞ்சிப்பாவினம்", $_SESSION['lang']) . '</span></a></li> <li ><a href="thodai"><span class="uiTrant">' . lancon("தொடை", $_SESSION['lang']) . '</span></a></li> </ul> </div>'; $foot = '<br/><table align="center"> <tr> <td> <img src="css/images/buddha-dharmachakra.png" height="80" style="float:left;" > </td> <td> <h5 class="subtitle"><br/> <span class="uiTrant">' . lancon("மிக்கவன் போதியின் மேதக்கு இருந்தவன் மெய்த்தவத்தால்", $_SESSION['lang']) . "</span><br/>" . '<span class="uiTrant">' . lancon("தொக்கவன் யார்க்கும் தொடர ஒண்ணாதவன் தூயன் எனத்", $_SESSION['lang']) . "</span><br/>" . '<span class="uiTrant">' . lancon("தக்கவன் பாதம் தலைமேல் புனைந்து தமிழுரைக்க !", $_SESSION['lang']) . '</span><br/> </h5> </td> <!-- <td> <img src="bhah_lotus.jpg" height="70" style="float:left;" > </td> !--> </tr> </table> <br/> <div class="footnote" style="text-align:center;color:grey"> Copyright © 2013 <a href="http://www.virtualvinodh.com">Vinodh Rajan</a>. This software is released under GNU AGPL v3 license. You may read the license <a href="http://www.gnu.org/licenses/agpl.html">here</a></div> <br/>';