«« mul pituvata

bhaaxaa venas vena þani pituvak

meþana penvana krama þaman þula æþi yunikeeþaya nisaa yunikood akuru aþaharinna bæri ayataþ hoÐayi. æþþatama lákaavee yunikood aalaya nisaa (haa síhala maði kamak nisaa?) síhala / ðemaLa ðekata veb pituvala ðena kudammaagee sælakilla ðakina vita ena veeðanaava nisaayi meeka liyanna siþuvee.

mama HTML / Javascript igenagannee meþaninuyi: W3schools.com. magee síhala haa ðemaLa ðekama laþingaþa þani bayit akuruyi. ee kiyannee, eevaayee pasuþalayee þiyennee æþþatama yuroopiiya bhaaxaavala vagee laþin akuruvala sákeeþayi. namuþ, eevaa apee næNakuru magin ruupavaþ vuna vita ðeeziiya akuruvalin penenavaa. kisi vitekaþ lovee koþanakaþ eeva ðis kiriimata akuru næþiva glyph not found kiyana praznaarþha lakuNu, kotu aaðiyata yanne næþa. mee lipisákhyaa (text) yunikood akuru vagee bayit barin adak venavaa. ee nisaa ikmanata veb þalayen pæmiNenavaa. ee ekkama apee næNakuru fontnuþ pæmiNenavaa.

mama veb pitu veb þalayee þiyena þænata yavannee veb þalayee soyaagaþa hæki nomiLee ðena Filezilla anvaya harahaayi; pitu liyannee nomiLee læbena Notepad++ eka æþuleeyi. eekee tæb huGak þiyaagena ekaværa veb pitu oona gaNanak liviya hækiyi. ee vageema liyana pituva save nokara væhuvaþ eeka anik vara ðuvavanakota navaþþapu þæna ehemama þiyenavaa.

þaman pituva liyana baasaava HTML5 kiyalaa lakuNu karalaa Encode in UTF-8 kiyalaa viðhaana karavanna. (sæ.yu.: hæma vitama Notepad hoo onææma lipiphalakayaka sæðuu lipiyak vunaþ yal pænapu ANSI vargayee nova UTF-8 see þænpaþ karanna puruðuvenna).

mama penvana viðihata baasaa þunen veb pitu sæðiima saralayi, bayit barin hæælluyi, yatiþalaya pæhæðiliyi. mee kramayee vizexaya, api veb adaviyakin genvana font visin akuru pen‌viimayi. api baasaa þunatama venama font þunak hæðuvaa. ee font þunama saamaanya JPEG ruupayakataþ vadaa sæhælluyi. ee akuru usamahaþin samaana nisaa mizrava liyanakota vyaakula vennee nææ. pituvee ihalinma style tæg aþara genvana font mesee saÐahan karanavaa.

<style>
@font-face{font-family:aruna;src:url(http://romanized.online/woff/aruna.woff) format("woff");}
@font-face{font-family:araci;src:url(http://romanized.online/woff/araci.woff) format("woff");}
@font-face{font-family:latinASF;src:url(http://romanized.online/woff/latinASF.woff) format("woff")}
.sing{font-family:aruna;text-rendering:geometricPrecision;font-feature-settings: "liga" 1;}
.taml{font-family:araci;text-rendering:geometricPrecision;font-feature-settings: "liga" 1;}
.latn{font-family:latinASF;}

iþin api síhala, ðemaLa saha ígriisi þunen vena venama kiyavanna pituvak haðannee kohomaða? api pituvee udinma baasaava meekayi kiyalaa mehema viðhaana karanavaa: <body id="pituva" class="sing">. mulinma ekkoo síhalen næþnam ígriisiyen pituva haðanna. ee pituva Firefox vagee bravsarayakin balaagena peeli ekin eka ‌Notepad ekata liyaaganna. iita passee, ee eka eka peeliya mul basin kiyavalaa parivarþana karalaa hariyata liyaaganna. mama ðemaLa noðanna nisaa, varigee naha noganna, Google Translator pituvata gihí varak ðemaLeta haravalaa hariyata þeeruma enakam ee praþiphalaya aaye-aayeþ ðemalen aapasu haravamin peeliya haðaagannavaa.

ee læbena ðemaLa akuru dabal-bayit yunikood eevaayi. iþin, mama eevaa balaagena þani-bayit ðemalin liyanavaa. baasaava bæri vunaata tayip karanna leesiyi. laþingaþa síhala haa ðemaLa yana þænee kiyavanna.

ðæn apita baasaa þuneema peeli þiyenavaa. ara mul pitapaþee pituva þava þænakata pitapaþ karalaa, ee ee peeli anik baasaavakata venas karanna. aþana-meþana ígriisi þiyenavaa nam ee þæn spææn tæg valata mee vagee mæði karanna: ‌<span class="latn">[english content]</span>. ðæn venaþ parivarþana kaLa basaka pituva uda ehi baasaava mesee (ðemaLata kaLaa vagee) nirðeeza karanna: <body id="pituva" class="taml">

ðæn eka baasaavakata haðaagaþþa pituvee <body></body> tæg ðekee anþaraya aragena eekee hidæs siyalla makanna. iita passee, hæma " saha ' yana quote salakuNu iðiripitin vamata æla ðanda mee vagee ðaanna: \" hoo \'. < salakuNu venuvata &‌lt‌; kiyaa liyanna. mee vagee baasaa þuneema lipisákhyaa vena venama haðaaganna. ee ekin eka pahaþa uðaaharaNaya see bhaaxaava anuva texts, textt, texte yana ekakata aaðeeza karanna.

ihaþin apee veb pituvee baasaa þunee pitapaþ læbunaa. apata oone eka veb pituvaka batn piDuvakata gahalaa baasaava þoorannayi. ee saÐahaa api mee vagee Javascript kramayoogayak haðalaa, yatama </body> tæg ekata udin liyanavaa:

<script>
texts = "síhala akuru";
textt = "þamiø urai";
texte = "English text";
function anikBasa(b) {
  switch (b) {
    case "s":
      document.getElementById("pituva").className = "sing";
      document.getElementById("pituva").innerHTML = texts;
      break;
    case "t":
      document.getElementById("pituva").className = "taml";
      document.getElementById("pituva").innerHTML = textt;
      break;
    case "e":
      document.getElementById("pituva").className = "latn";
      document.getElementById("pituva").innerHTML = texte;
      break;
  }
}
</script>

ema kramayoogaya kæÐavanna mee vagee batn piDuvalata puLuvana. meevaa pituvee udin penvanna:
<button type="button" onclick="anikbasa('s')"><span class="sing">síhala</span></button>
<button type="button" onclick="anikbasa('t')"><span class="taml">þamiø</span></button>
<button type="button" onclick="anikbasa('e')"><pan class="latn">English</span></button>