Bhikkhu-Kosalla 5 éve
szülő
commit
68fb104f14
5 módosított fájl, 958 hozzáadás és 629 törlés
  1. 127 12
      app/calendar/index1.html
  2. 4 4
      app/calendar/julian.js
  3. 19 19
      app/calendar/lune.js
  4. 595 594
      app/studio/config.js
  5. 213 0
      documents/course/sadda_pan_goun.md

+ 127 - 12
app/calendar/index1.html

@@ -13,8 +13,8 @@
     <script src="../public/js/jquery.js"></script>
     <script src="../public/js/comm.js"></script>
     <script src="jquery-3.3.1.min.js"></script>
-    <script src="lib/julian.js"></script>
-    <script src="lib/lune.js"></script>
+    <script src="julian.js"></script>
+    <script src="lune.js"></script>
     <script src="suncalc.js"></script>
     <script src="../studio/js/fixedsticky.js"></script>
     <script src="../guide/guide.js"></script>
@@ -390,6 +390,19 @@
             margin-left: auto;
             margin-right: auto;
         }
+
+        .table_line {
+            display: flex;
+            border-bottom: solid;
+        }
+
+        .table_column {
+            flex: 1;
+        }
+
+        .correct {
+            background-color: gold;
+        }
     </style>
     <title id='title_text'>
     </title>
@@ -424,27 +437,38 @@
     </div>
     <div>
         <div onclick="show_time()">Sun time table</div>
-        <div><span id="today_dawn"></span></div>
-        <div><span id="today_solarNoon"></span></div>
-        <div><span id="today_sunset"></span></div>
+        <div>破晓<span id="today_dawn"></span></div>
+        <div>正午<span id="today_solarNoon"></span></div>
+        <div>日落<span id="today_sunset"></span></div>
         <div>月相<span id="today_moon_phase"></span></div>
         <div>圆满度<span id="today_moon_percent"></span></div>
-        <div>南偏西<span id="today_sun_azimuth"></span></div>
-        <div>北偏东<span id="today_moon_azimuth"></span></div>
+        <div>太阳相位于南偏西<span id="today_sun_azimuth"></span></div>
+        <div>月亮相位于北偏东<span id="today_moon_azimuth"></span></div>
         <div>日月角<span id="angle_sun_e_moon"></span></div>
         <div>月相角<span id="today_moon_angle"></span></div>
         <div>当前时间<span id="curr_time"></span></div>
         <div>现在时间<span id="now_time"></span></div>
-
+        <div>
+            <span>精准月相(强化戒德之日)</span>
+            <table id="lunar_phase_list" style="min-width: 40vw;">
+            </table>
+        </div>
 
     </div>
     <script>
-        var current_phase = lune.phase()
+        var current_phase = phase()
         console.log(current_phase)//输出到控制台
 
         $("#title_text").html(localString[g_language].BE);
+        var new_list = new Array()//新月列表
+        var first_list = new Array()//上弦月列表
+        var full_list = new Array()//满月列表
+        var last_list = new Array()//下弦月列表
         var g_coordinate_this = new Object();
         var g_now_date = new Date();
+        var today = new Date()
+        var start_day = new Date()
+        var next_year = new Date();
         var sun_times = new Object();
         var curr_position = localStorage.getItem("local_position");
         if (curr_position) {
@@ -475,6 +499,29 @@
             else {
                 today = g_now_date
             }
+            if (phase(today).phase <= 0.5) {
+                start_day.setDate(today.getDate() - 16)//退到本月的新月之前
+                start_day = phaseHunt(start_day).full_date//得到之前最近的满月日
+                start_day.setDate(start_day.getDate() + 1)
+            }
+            else {
+                start_day.setDate(today.getDate() - 31)//退到本月的新月之前
+                start_day = phaseHunt(start_day).full_date//得到之前最近的满月日
+                start_day.setDate(start_day.getDate() + 1)
+            }
+            next_year.setDate(start_day.getDate() + 360)
+
+            last_list = phaseRange(start_day, next_year, LAST)//获取下弦月列表
+            new_list = phaseRange(start_day, next_year, NEW)//获取新月列表
+            first_list = phaseRange(start_day, next_year, FIRST)//获取上弦月列表
+            full_list = phaseRange(start_day, next_year, FULL)//获取满月列表
+
+            console.log(last_list)//输出到控制台
+            console.log(new_list)//输出到控制台
+            console.log(first_list)//输出到控制台
+            console.log(full_list)//输出到控制台
+            lunar_phase_list_refresh()
+
             sun_times = SunCalc.getTimes(today, g_coordinate_this.AT, g_coordinate_this.LT, 0);
             sun_position = SunCalc.getPosition(today, g_coordinate_this.AT, g_coordinate_this.LT);
             moon_position = SunCalc.getMoonPosition(today, g_coordinate_this.AT, g_coordinate_this.LT);
@@ -484,8 +531,8 @@
             $("#today_sunset").html(sun_times.sunset.toLocaleTimeString());
             $("#today_sun_azimuth").html(angle_trans(sun_position.azimuth / Math.PI * 180));//太阳水平弧度
             $("#today_moon_azimuth").html(angle_trans(moon_position.azimuth / Math.PI * 180));//月亮水平弧度
-            $("#today_moon_phase").html(1 - 2 * moon_Illumination.phase);//月相值
-            $("#today_moon_percent").html(moon_Illumination.fraction);//月相值
+            $("#today_moon_phase").html(phase(today).phase);//月相值
+            $("#today_moon_percent").html(phase(today).illuminated);//月照度
             $("#today_moon_angle").html(angle_trans(moon_Illumination.angle / Math.PI * 180));//月相角
             $("#angle_sun_e_moon").html(angle_trans(Math.abs(Math.PI + sun_position.azimuth - moon_position.azimuth) / Math.PI * 180));//月亮水平弧度
             $("#curr_time").html(today.toLocaleTimeString());//当前时间
@@ -494,7 +541,75 @@
 
 
         }
-
+        function lunar_phase_list_refresh() {
+            let output = ""
+            //画表头
+            output += "<tr class='table_line'>"
+            output += "<th class='table_column'>月份</th>"
+            output += "<th class='table_column'>下弦</th>"
+            output += "<th class='table_column'>新月(诵戒)</th>"
+            output += "<th class='table_column'>上弦</th>"
+            output += "<th class='table_column'>满月(诵戒)</th>"
+            output += "</tr>"
+            //画内容
+            let month_num = Math.min(last_list.length, new_list.length, first_list.length, full_list.length)
+            for (let i_month = 0; i_month < month_num; i_month++) {
+                output += "<tr class='table_line'>"
+                output += "<td class='table_column'>"
+                output += i_month + 1
+                output += "</td>"
+                if (SunCalc.getTimes(last_list[i_month], g_coordinate_this.AT, g_coordinate_this.LT, 0).dawn - last_list[i_month] <= 0) {//如果在破晓之后,不修正
+                    output += "<td class='table_column' title='" + last_list[i_month].toLocaleTimeString() + "'>"
+                    output += last_list[i_month].toLocaleDateString()
+                    output += "</td>"
+                }
+                else {//如果在破晓之前,修正提前一天
+                    output += "<td class='table_column correct' title='" + last_list[i_month].toLocaleString() + "'>"
+                    let temp_date = last_list[i_month]
+                    temp_date.setDate(temp_date.getDate() - 1)
+                    output += temp_date.toLocaleDateString()
+                    output += "</td>"
+                }
+                if (SunCalc.getTimes(new_list[i_month], g_coordinate_this.AT, g_coordinate_this.LT, 0).dawn - new_list[i_month] <= 0) {//如果在破晓之后,不修正
+                    output += "<td class='table_column' title='" + new_list[i_month].toLocaleTimeString() + "'>"
+                    output += new_list[i_month].toLocaleDateString()
+                    output += "</td>"
+                }
+                else {//如果在破晓之前,修正提前一天
+                    output += "<td class='table_column correct' title='" + new_list[i_month].toLocaleString() + "'>"
+                    let temp_date = new_list[i_month]
+                    temp_date.setDate(temp_date.getDate() - 1)
+                    output += temp_date.toLocaleDateString()
+                    output += "</td>"
+                }
+                if (SunCalc.getTimes(first_list[i_month], g_coordinate_this.AT, g_coordinate_this.LT, 0).dawn - first_list[i_month] <= 0) {//如果在破晓之后,不修正
+                    output += "<td class='table_column' title='" + first_list[i_month].toLocaleTimeString() + "'>"
+                    output += first_list[i_month].toLocaleDateString()
+                    output += "</td>"
+                }
+                else {//如果在破晓之前,修正提前一天
+                    output += "<td class='table_column correct' title='" + first_list[i_month].toLocaleString() + "'>"
+                    let temp_date = first_list[i_month]
+                    temp_date.setDate(temp_date.getDate() - 1)
+                    output += temp_date.toLocaleDateString()
+                    output += "</td>"
+                }
+                if (SunCalc.getTimes(full_list[i_month], g_coordinate_this.AT, g_coordinate_this.LT, 0).dawn - full_list[i_month] <= 0) {//如果在破晓之后,不修正
+                    output += "<td class='table_column' title='" + full_list[i_month].toLocaleTimeString() + "'>"
+                    output += full_list[i_month].toLocaleDateString()
+                    output += "</td>"
+                }
+                else {//如果在破晓之前,修正提前一天
+                    output += "<td class='table_column correct' title='" + full_list[i_month].toLocaleString() + "'>"
+                    let temp_date = full_list[i_month]
+                    temp_date.setDate(temp_date.getDate() - 1)
+                    output += temp_date.toLocaleDateString()
+                    output += "</td>"
+                }
+                output += "</tr>"
+            }
+            $("#lunar_phase_list").html(output)
+        }
         function getLocation() {//自动定位
             if (navigator.geolocation) {
                 navigator.geolocation.getCurrentPosition(showPosition, showError);

+ 4 - 4
app/calendar/julian.js

@@ -1,12 +1,12 @@
 'use strict'
 
-function fromDate (date) {
+function fromDate(date) {
   return date.getTime() / 86400000 + 2440587.5
 }
 
-function toDate (julian) {
+function toDate(julian) {
   return new Date((julian - 2440587.5) * 86400000)
 }
 
-exports.fromDate = fromDate
-exports.toDate = toDate
+//exports.fromDate = fromDate
+//exports.toDate = toDate

+ 19 - 19
app/calendar/lune.js

@@ -16,7 +16,7 @@
 
 'use strict'
 
-const julian = require('./julian')
+//const julian = require('./julian')
 
 // Phases of the moon & precision
 const NEW = 0
@@ -46,7 +46,7 @@ const SYNODIC_MONTH = 29.53058868
  * @param  {Number} d Angle in degrees
  * @return {Number}   Angle in radians
  */
-function torad (d) {
+function torad(d) {
   return (Math.PI / 180.0) * d
 }
 
@@ -55,11 +55,11 @@ function torad (d) {
  * @param  {Number} r Angle in radians
  * @return {Number}   Angle in degrees
  */
-function dsin (d) {
+function dsin(d) {
   return Math.sin(torad(d))
 }
 
-function dcos (d) {
+function dcos(d) {
   return Math.cos(torad(d))
 }
 
@@ -68,7 +68,7 @@ function dcos (d) {
  * @param  {Number} au Distance in astronomical units
  * @return {Number}    Distance in kilometers
  */
-function tokm (au) {
+function tokm(au) {
   return 149597870.700 * au
 }
 
@@ -77,7 +77,7 @@ function tokm (au) {
  * @param  {Date}   date Date to get phase information of.
  * @return {Object}      Phase data
  */
-function phase (date) {
+function phase(date) {
   if (!date) {
     date = new Date()
   }
@@ -164,7 +164,7 @@ function phase (date) {
  * @param  {[type]} k     [description]
  * @return {[type]}       [description]
  */
-function meanphase (sdate, k) {
+function meanphase(sdate, k) {
   // Time in Julian centuries from 1900 January 12 noon UTC
   const delta = (sdate - -2208945600000.0) / 86400000.0
   const t = delta / 36525
@@ -181,7 +181,7 @@ function meanphase (sdate, k) {
  * @param  {[type]} tphase [description]
  * @return {[type]}        [description]
  */
-function truephase (k, tphase) {
+function truephase(k, tphase) {
   // restrict tphase to (0, 1, 2, 3)
   tphase = tphase & PHASE_MASK
 
@@ -253,7 +253,7 @@ function truephase (k, tphase) {
       break
   }
 
-  return julian.toDate(pt)
+  return toDate(pt)
 }
 
 /**
@@ -263,7 +263,7 @@ function truephase (k, tphase) {
  * @param  {Date} sdate Date to start hunting from (defaults to current date)
  * @return {Object}     Object containing recent past and future phases
  */
-function phaseHunt (sdate) {
+function phaseHunt(sdate) {
   if (!sdate) {
     sdate = new Date()
   }
@@ -278,7 +278,7 @@ function phaseHunt (sdate) {
   let k1 = Math.floor(12.3685 * (adate.getFullYear() + (1.0 / 12.0) * adate.getMonth() - 1900))
   let nt1 = meanphase(adate.getTime(), k1)
 
-  sdate = julian.fromDate(sdate)
+  sdate = fromDate(sdate)
   adate = nt1 + SYNODIC_MONTH
   let k2 = k1 + 1
   let nt2 = meanphase(adate, k2)
@@ -299,7 +299,7 @@ function phaseHunt (sdate) {
   }
 }
 
-function phaseRange (start, end, phase) {
+function phaseRange(start, end, phase) {
   if (!(start instanceof Date)) {
     throw new TypeError('First argument must be a Date object.')
   }
@@ -346,10 +346,10 @@ function phaseRange (start, end, phase) {
   return list
 }
 
-exports.PHASE_NEW = NEW
-exports.PHASE_FIRST = FIRST
-exports.PHASE_FULL = FULL
-exports.PHASE_LAST = LAST
-exports.phase = phase
-exports.phase_hunt = phaseHunt
-exports.phase_range = phaseRange
+//exports.PHASE_NEW = NEW
+//exports.PHASE_FIRST = FIRST
+//exports.PHASE_FULL = FULL
+//exports.PHASE_LAST = LAST
+//exports.phase = phase
+//exports.phase_hunt = phaseHunt
+//exports.phase_range = phaseRange

+ 595 - 594
app/studio/config.js

@@ -1,630 +1,631 @@
 //词性——语法
-var config=[
-{ "myApp":"" }
+var config = [
+    { "myApp": "" }
 ];
-var gramma_str=[
-{ "id":".n." , "a":".m.$.f.$.nt." , "b":".sg.$.pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc."  },
-{ "id":".ti." , "a":".m.$.f.$.nt." , "b":".sg.$.pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc."  },
-{ "id":".v." , "a":".1p.$.2p.$.3p.$.ind." , "b":".sg.$.pl." , "c":".pres.$.opt.$.imp.$.cond.$.aor.$.fut." },
-{ "id":".v:ind." , "a":".inf.$.abs.$.ger." , "b":"" , "c":"" },
-{ "id":".v:base." , "a":".pass.$.caus.$.desid.$.intens.$.denom.$_un_auto_factormean_" , "b":"" , "c":"" },
-{ "id":".ind." , "a":".adv.$.conj.$.prep.$.interj." , "b":"" , "c":""  },
-{ "id":".pron." , "a":".m.$.f.$.nt.$.1p.$.2p." , "b":".sg.$.pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
-{ "id":".num." , "a":"" , "b":".pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
-{ "id":".note." , "a":"" , "b":"" , "c":"" },
-{ "id":".ti:base." ,"a":".pp.$.fpp.$.grd.$.prp.$.adj.$_un_auto_factormean_" , "b":"" , "c":""  },
-{ "id":".n:base." , "a":".m.$.f.$.nt.$.m./.f.$.m./.nt.$.nt./.f." , "b":"" , "c":""  },
-{ "id":".pron:base." , "a":".1p.$.2p.$.3p." , "b":"" , "c":"" },
-{ "id":".num:base." , "a":"" , "b":"" , "c":"" },
-{ "id":".adj:base." , "a":".m.$.f.$.nt." , "b":"" , "c":""  },
-{ "id":".root." , "a":"" , "b":"" , "c":""  },
-{ "id":".suf." , "a":".m.$.f.$.nt." , "b":"" , "c":""  },
-{ "id":".pre." , "a":"" , "b":"" , "c":""  },
-{ "id":".end." , "a":".m.$.f.$.nt." , "b":".sg.$.pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc."  },
-{ "id":".adj." , "a":".m.$.f.$.nt." , "b":".sg.$.pl." , "c":".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc."  },
-{ "id":".comp." , "a":".ti.$.n.$.ind.$_un_auto_factormean_" , "b":"" , "c":"" },
-{ "id":".un." , "a":"" , "b":"" , "c":"" }
+var gramma_str = [
+    { "id": ".n.", "a": ".m.$.f.$.nt.", "b": ".sg.$.pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".ti.", "a": ".m.$.f.$.nt.", "b": ".sg.$.pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".v.", "a": ".1p.$.2p.$.3p.$.ind.", "b": ".sg.$.pl.", "c": ".pres.$.opt.$.imp.$.cond.$.aor.$.fut." },
+    { "id": ".v:ind.", "a": ".inf.$.abs.$.ger.", "b": "", "c": "" },
+    { "id": ".v:base.", "a": ".pass.$.caus.$.desid.$.intens.$.denom.$_un_auto_factormean_", "b": "", "c": "" },
+    { "id": ".ind.", "a": ".adv.$.conj.$.prep.$.interj.", "b": "", "c": "" },
+    { "id": ".pron.", "a": ".m.$.f.$.nt.$.1p.$.2p.", "b": ".sg.$.pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".num.", "a": "", "b": ".pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".note.", "a": "", "b": "", "c": "" },
+    { "id": ".ti:base.", "a": ".pp.$.fpp.$.grd.$.prp.$.adj.$_un_auto_factormean_", "b": "", "c": "" },
+    { "id": ".n:base.", "a": ".m.$.f.$.nt.$.m./.f.$.m./.nt.$.nt./.f.", "b": "", "c": "" },
+    { "id": ".pron:base.", "a": ".1p.$.2p.$.3p.", "b": "", "c": "" },
+    { "id": ".num:base.", "a": "", "b": "", "c": "" },
+    { "id": ".adj:base.", "a": ".m.$.f.$.nt.", "b": "", "c": "" },
+    { "id": ".root.", "a": "", "b": "", "c": "" },
+    { "id": ".suf.", "a": ".m.$.f.$.nt.", "b": "", "c": "" },
+    { "id": ".pre.", "a": "", "b": "", "c": "" },
+    { "id": ".end.", "a": ".m.$.f.$.nt.", "b": ".sg.$.pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".adj.", "a": ".m.$.f.$.nt.", "b": ".sg.$.pl.", "c": ".nom.$.acc.$.inst.$.dat.$.abl.$.gen.$.loc.$.voc." },
+    { "id": ".comp.", "a": ".ti.$.n.$.ind.$_un_auto_factormean_", "b": "", "c": "" },
+    { "id": ".un.", "a": "", "b": "", "c": "" }
 ];
 
-var dict_language_enable="en,tc,sc";//
-var language_gui="en";//
-var language_script="en";//
-var language_translation="en";//
+var dict_language_enable = "en,tc,sc";//
+var language_gui = "en";//
+var language_script = "en";//
+var language_translation = "en";//
 
-var wordmap_child_type=[
-{ "type":"null" , "value":".v.$.n.$.adj.$.ti.$.ind." },
-{ "type":".v." , "value":".v:base.$.suf.$.root.$.v:root.$.pre." },
-{ "type":".n." , "value":".n:base.$.suf.$.root.$.pre.$.suf.$.n:base.$.adj:base.$.ti:base." },
-{ "type":".adj." , "value":".adj:base.$.suf.$.pre.$.root.$.suf.$.n:base.$.adj:base.$.ti:base." },
-{ "type":".ti." , "value":".ti:base.$.suf.$.pre.$.root.$.suf.$.n:base.$.adj:base.$.ti:base." },
-{ "type":".ind." , "value":"" },
-{ "type":".conj." , "value":"" },
-{ "type":".adv." , "value":"" },
-{ "type":".v:ind." , "value":".root.$.v:root.$.v:base.$.suf." },
-{ "type":".comp." , "value":".n:base.$.adj:base.$.ti:base.$.n.$.adj.$.ti.$.suf." },
-{ "type":".pre." , "value":"" },
-{ "type":".suf." , "value":"" },
-{ "type":".root." , "value":"" },
-{ "type":".v:root." , "value":".pre.$.suf.$.root." },
-{ "type":".v:base." , "value":".pre.$.suf.$.root.$.v:root." },
-{ "type":".n:base." , "value":".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base.$.v:ind." },
-{ "type":".adj:base." , "value":".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base." },
-{ "type":".ti:base." , "value":".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base." },
-{ "type":".part." , "value":"" }
+var wordmap_child_type = [
+    { "type": "null", "value": ".v.$.n.$.adj.$.ti.$.ind." },
+    { "type": ".v.", "value": ".v:base.$.suf.$.root.$.v:root.$.pre." },
+    { "type": ".n.", "value": ".n:base.$.suf.$.root.$.pre.$.suf.$.n:base.$.adj:base.$.ti:base." },
+    { "type": ".adj.", "value": ".adj:base.$.suf.$.pre.$.root.$.suf.$.n:base.$.adj:base.$.ti:base." },
+    { "type": ".ti.", "value": ".ti:base.$.suf.$.pre.$.root.$.suf.$.n:base.$.adj:base.$.ti:base." },
+    { "type": ".ind.", "value": "" },
+    { "type": ".conj.", "value": "" },
+    { "type": ".adv.", "value": "" },
+    { "type": ".v:ind.", "value": ".root.$.v:root.$.v:base.$.suf." },
+    { "type": ".comp.", "value": ".n:base.$.adj:base.$.ti:base.$.n.$.adj.$.ti.$.suf." },
+    { "type": ".pre.", "value": "" },
+    { "type": ".suf.", "value": "" },
+    { "type": ".root.", "value": "" },
+    { "type": ".v:root.", "value": ".pre.$.suf.$.root." },
+    { "type": ".v:base.", "value": ".pre.$.suf.$.root.$.v:root." },
+    { "type": ".n:base.", "value": ".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base.$.v:ind." },
+    { "type": ".adj:base.", "value": ".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base." },
+    { "type": ".ti:base.", "value": ".pre.$.suf.$.root.$.n:base.$.adj:base.$.ti:base." },
+    { "type": ".part.", "value": "" }
 ];
 
-var local_sign_str=[
-{ "id":"," , "value":"" },
-{ "id":"‘" , "value":"" },
-{ "id":"’" , "value":"" },
-{ "id":"." , "value":"" },
-{ "id":"-" , "value":"" },
-{ "id":"[" , "value":"" },
-{ "id":"]" , "value":"" },
-{ "id":"?" , "value":"" },
-{ "id":"!" , "value":"" },
-{ "id":"1" , "value":"" },
-{ "id":"2" , "value":"" },
-{ "id":"3" , "value":"" },
-{ "id":"4" , "value":"" },
-{ "id":"5" , "value":"" },
-{ "id":"6" , "value":"" },
-{ "id":"7" , "value":"" },
-{ "id":"8" , "value":"" },
-{ "id":"9" , "value":"" },
-{ "id":"0" , "value":"" }
+var local_sign_str = [
+    { "id": ",", "value": "" },
+    { "id": "‘", "value": "" },
+    { "id": "’", "value": "" },
+    { "id": ".", "value": "" },
+    { "id": "-", "value": "" },
+    { "id": "[", "value": "" },
+    { "id": "]", "value": "" },
+    { "id": "?", "value": "" },
+    { "id": "!", "value": "" },
+    { "id": "1", "value": "" },
+    { "id": "2", "value": "" },
+    { "id": "3", "value": "" },
+    { "id": "4", "value": "" },
+    { "id": "5", "value": "" },
+    { "id": "6", "value": "" },
+    { "id": "7", "value": "" },
+    { "id": "8", "value": "" },
+    { "id": "9", "value": "" },
+    { "id": "0", "value": "" }
 
 ];
 
-var local_letter_str=[
-{ "id":"k" , "value":"" },
-{ "id":"g" , "value":"" },
-{ "id":"d" , "value":"" },
-{ "id":"t" , "value":"" },
-{ "id":"ṭ" , "value":"" },
-{ "id":"ḍ" , "value":"" },
-{ "id":"c" , "value":"" },
-{ "id":"j" , "value":"" },
-{ "id":"b" , "value":"" },
-{ "id":"p" , "value":"" },
-{ "id":"ṇ" , "value":"" },
-{ "id":"ñ" , "value":"" },
-{ "id":"ṅ" , "value":"" },
-{ "id":"n" , "value":"" },
-{ "id":"ṃ" , "value":"" },
-{ "id":"s" , "value":"" },
-{ "id":"v" , "value":"" },
-{ "id":"h" , "value":"" },
-{ "id":"r" , "value":"" },
-{ "id":"l" , "value":"" },
-{ "id":"ḷ" , "value":"" },
-{ "id":"a" , "value":"" },
-{ "id":"i" , "value":"" },
-{ "id":"u" , "value":"" },
-{ "id":"ā" , "value":"" },
-{ "id":"ī" , "value":"" },
-{ "id":"ū" , "value":"" },
-{ "id":"e" , "value":"" },
-{ "id":"o" , "value":"" },
-{ "id":"y" , "value":"" }
+var local_letter_str = [
+    { "id": "k", "value": "" },
+    { "id": "g", "value": "" },
+    { "id": "d", "value": "" },
+    { "id": "t", "value": "" },
+    { "id": "ṭ", "value": "" },
+    { "id": "ḍ", "value": "" },
+    { "id": "c", "value": "" },
+    { "id": "j", "value": "" },
+    { "id": "b", "value": "" },
+    { "id": "p", "value": "" },
+    { "id": "ṇ", "value": "" },
+    { "id": "ñ", "value": "" },
+    { "id": "ṅ", "value": "" },
+    { "id": "n", "value": "" },
+    { "id": "ṃ", "value": "" },
+    { "id": "s", "value": "" },
+    { "id": "v", "value": "" },
+    { "id": "h", "value": "" },
+    { "id": "r", "value": "" },
+    { "id": "l", "value": "" },
+    { "id": "ḷ", "value": "" },
+    { "id": "a", "value": "" },
+    { "id": "i", "value": "" },
+    { "id": "u", "value": "" },
+    { "id": "ā", "value": "" },
+    { "id": "ī", "value": "" },
+    { "id": "ū", "value": "" },
+    { "id": "e", "value": "" },
+    { "id": "o", "value": "" },
+    { "id": "y", "value": "" }
 
 ];
 
-var local_code_str=[
-{ "id":"aa" , "value":"ā" },
-{ "id":"ii" , "value":"ī" },
-{ "id":"uu" , "value":"ū" },
-{ "id":"a:" , "value":"ā" },
-{ "id":"i:" , "value":"ī" },
-{ "id":"u:" , "value":"ū" },
-/*{ "id":"a-" , "value":"ā" },*/
-{ "id":"a-ā" , "value":"aā" },
-{ "id":"i-" , "value":"ī" },
-{ "id":"u-" , "value":"ū" },
-/*{ "id":"tt" , "value":"ṭ" },
-//{ "id":"dd" , "value":"ḍ" },
-//{ "id":"ll" , "value":"ḷ" },*/
-{ "id":"tx" , "value":"ṭ" },
-{ "id":"dx" , "value":"ḍ" },
-{ "id":"lx" , "value":"ḷ" },
-{ "id":"nx" , "value":"ṇ" },
-{ "id":"nz" , "value":"ṅ" },
-{ "id":"mx" , "value":"ṃ" },
-{ "id":"n-" , "value":"ñ" },
-{ "id":"n~" , "value":"ñ" },
-{ "id":"t." , "value":"ṭ" },
-{ "id":"d." , "value":"ḍ" },
-{ "id":"l." , "value":"ḷ" },
-{ "id":"n." , "value":"ṇ" },
-{ "id":"m." , "value":"ṃ" },
+var local_code_str = [
+    { "id": "aa", "value": "ā" },
+    { "id": "ii", "value": "ī" },
+    { "id": "uu", "value": "ū" },
+    { "id": "a:", "value": "ā" },
+    { "id": "i:", "value": "ī" },
+    { "id": "u:", "value": "ū" },
+    /*{ "id":"a-" , "value":"ā" },*/
+    { "id": "a-ā", "value": "aā" },
+    { "id": "i-", "value": "ī" },
+    { "id": "u-", "value": "ū" },
+    /*{ "id":"tt" , "value":"ṭ" },
+    //{ "id":"dd" , "value":"ḍ" },
+    //{ "id":"ll" , "value":"ḷ" },*/
+    { "id": "tx", "value": "ṭ" },
+    { "id": "dx", "value": "ḍ" },
+    { "id": "lx", "value": "ḷ" },
+    { "id": "nx", "value": "ṇ" },
+    { "id": "nz", "value": "ṅ" },
+    { "id": "mx", "value": "ṃ" },
+    { "id": "n-", "value": "ñ" },
+    { "id": "n~", "value": "ñ" },
+    { "id": "t.", "value": "ṭ" },
+    { "id": "d.", "value": "ḍ" },
+    { "id": "l.", "value": "ḷ" },
+    { "id": "n.", "value": "ṇ" },
+    { "id": "m.", "value": "ṃ" },
 
-{ "id":".t" , "value":"ṭ" },
-{ "id":".d" , "value":"ḍ" },
-{ "id":".l" , "value":"ḷ" },
-{ "id":".n" , "value":"ṇ" },
-{ "id":".m" , "value":"ṃ" },
+    { "id": ".t", "value": "ṭ" },
+    { "id": ".d", "value": "ḍ" },
+    { "id": ".l", "value": "ḷ" },
+    { "id": ".n", "value": "ṇ" },
+    { "id": ".m", "value": "ṃ" },
 
-{ "id":".r" , "value":"ṛ" },
-{ "id":"r." , "value":"ṛ" },
-{ "id":".h" , "value":"ḥ" },
-{ "id":"h." , "value":"ḥ" },
-{ "id":".s" , "value":"ṣ" },
-{ "id":"s." , "value":"ṣ" },
-{ "id":"'s" , "value":"ś" },
-{ "id":"''s" , "value":"ś" },
+    { "id": ".r", "value": "ṛ" },
+    { "id": "r.", "value": "ṛ" },
+    { "id": ".h", "value": "ḥ" },
+    { "id": "h.", "value": "ḥ" },
+    { "id": ".s", "value": "ṣ" },
+    { "id": "s.", "value": "ṣ" },
+    { "id": "'s", "value": "ś" },
+    { "id": "s'", "value": "ś" },
+    { "id": "''s", "value": "ś" },
 
 
-{ "id":"t-" , "value":"	" },
-{ "id":"lr" , "value":"ḷ" },
-{ "id":"nr" , "value":"ṇ" },
-{ "id":"ny" , "value":"ñ" },
-/*{ "id":"mm" , "value":"ṃ" },
-//{ "id":"nn" , "value":"ṅ" },
-//{ "id":"ng" , "value":"ŋ" },
-//{ "id":"mz" , "value":"ṁ" },*/
-{ "id":"lḷ" , "value":"ḷḷ" },
-{ "id":"ḷl" , "value":"ḷḷ" },
-{ "id":"ṃm" , "value":"mm" },
-{ "id":"mṃ" , "value":"mm" },
-{ "id":"ṃa" , "value":"ma" },
-{ "id":"ṃi" , "value":"mi" },
-{ "id":"ṃe" , "value":"me" },
-{ "id":"ṃo" , "value":"mo" },
-{ "id":"ṃu" , "value":"mu" },
-{ "id":"ṃā" , "value":"mā" },
+    { "id": "t-", "value": "	" },
+    { "id": "lr", "value": "ḷ" },
+    { "id": "nr", "value": "ṇ" },
+    { "id": "ny", "value": "ñ" },
+    /*{ "id":"mm" , "value":"ṃ" },
+    //{ "id":"nn" , "value":"ṅ" },
+    //{ "id":"ng" , "value":"ŋ" },
+    //{ "id":"mz" , "value":"ṁ" },*/
+    { "id": "lḷ", "value": "ḷḷ" },
+    { "id": "ḷl", "value": "ḷḷ" },
+    { "id": "ṃm", "value": "mm" },
+    { "id": "mṃ", "value": "mm" },
+    { "id": "ṃa", "value": "ma" },
+    { "id": "ṃi", "value": "mi" },
+    { "id": "ṃe", "value": "me" },
+    { "id": "ṃo", "value": "mo" },
+    { "id": "ṃu", "value": "mu" },
+    { "id": "ṃā", "value": "mā" },
 
 
 
-{ "id":"ng" , "value":"ṅg" },
-{ "id":"nk" , "value":"ṅk" },
-{ "id":"ṃg" , "value":"ṅg" },
-{ "id":"ṃk" , "value":"ṅk" },
-{ "id":"mg" , "value":"ṅg" },
-{ "id":"mk" , "value":"ṅk" },
-{ "id":"ṇg" , "value":"ṅg" },
-{ "id":"ṇk" , "value":"ṅk" },
+    { "id": "ng", "value": "ṅg" },
+    { "id": "nk", "value": "ṅk" },
+    { "id": "ṃg", "value": "ṅg" },
+    { "id": "ṃk", "value": "ṅk" },
+    { "id": "mg", "value": "ṅg" },
+    { "id": "mk", "value": "ṅk" },
+    { "id": "ṇg", "value": "ṅg" },
+    { "id": "ṇk", "value": "ṅk" },
 
-{ "id":"ṇt" , "value":"ṇṭ" },
-{ "id":"ṇd" , "value":"ṇḍ" },
-{ "id":"ṇn" , "value":"ṇṇ" },
-{ "id":"nṇ" , "value":"ṇṇ" },
-{ "id":"nṭ" , "value":"ṇṭ" },
-{ "id":"nḍ" , "value":"ṇḍ" },
-{ "id":"ṅt" , "value":"ṇṭ" },
-{ "id":"ṅd" , "value":"ṇḍ" },
-{ "id":"mṭ" , "value":"ṇṭ" },
-{ "id":"mḍ" , "value":"ṇḍ" },
-{ "id":"tṭ" , "value":"ṭṭ" },
-{ "id":"dḍ" , "value":"ḍḍ" },
-{ "id":"ṭt" , "value":"ṭṭ" },
-{ "id":"ḍd" , "value":"ḍḍ" },
+    { "id": "ṇt", "value": "ṇṭ" },
+    { "id": "ṇd", "value": "ṇḍ" },
+    { "id": "ṇn", "value": "ṇṇ" },
+    { "id": "nṇ", "value": "ṇṇ" },
+    { "id": "nṭ", "value": "ṇṭ" },
+    { "id": "nḍ", "value": "ṇḍ" },
+    { "id": "ṅt", "value": "ṇṭ" },
+    { "id": "ṅd", "value": "ṇḍ" },
+    { "id": "mṭ", "value": "ṇṭ" },
+    { "id": "mḍ", "value": "ṇḍ" },
+    { "id": "tṭ", "value": "ṭṭ" },
+    { "id": "dḍ", "value": "ḍḍ" },
+    { "id": "ṭt", "value": "ṭṭ" },
+    { "id": "ḍd", "value": "ḍḍ" },
 
 
-{ "id":"nc" , "value":"ñc" },
-{ "id":"nj" , "value":"ñj" },
-{ "id":"ñn" , "value":"ññ" },
-{ "id":"nñ" , "value":"ññ" },
-{ "id":"mc" , "value":"ñc" },
-{ "id":"mj" , "value":"ñj" },
-{ "id":"ṃc" , "value":"ñc" },
-{ "id":"ṃj" , "value":"ñj" },
-{ "id":"ṅc" , "value":"ñc" },
-{ "id":"ṅj" , "value":"ñj" },
+    { "id": "nc", "value": "ñc" },
+    { "id": "nj", "value": "ñj" },
+    { "id": "ñn", "value": "ññ" },
+    { "id": "nñ", "value": "ññ" },
+    { "id": "mc", "value": "ñc" },
+    { "id": "mj", "value": "ñj" },
+    { "id": "ṃc", "value": "ñc" },
+    { "id": "ṃj", "value": "ñj" },
+    { "id": "ṅc", "value": "ñc" },
+    { "id": "ṅj", "value": "ñj" },
 
-{ "id":"mt" , "value":"nt" },
-{ "id":"md" , "value":"nd" },
-{ "id":"ṃt" , "value":"nt" },
-{ "id":"ṃd" , "value":"nd" },
-{ "id":"ñt" , "value":"nt" },
-{ "id":"ñd" , "value":"nd" },
-{ "id":"ṅt" , "value":"nt" },
-{ "id":"ṅd" , "value":"nd" },
+    { "id": "mt", "value": "nt" },
+    { "id": "md", "value": "nd" },
+    { "id": "ṃt", "value": "nt" },
+    { "id": "ṃd", "value": "nd" },
+    { "id": "ñt", "value": "nt" },
+    { "id": "ñd", "value": "nd" },
+    { "id": "ṅt", "value": "nt" },
+    { "id": "ṅd", "value": "nd" },
 
-{ "id":"ṃp" , "value":"mp" },
-{ "id":"ṃb" , "value":"mb" },
-{ "id":"np" , "value":"mp" },
-{ "id":"nb" , "value":"mb" },
-{ "id":"ñp" , "value":"mp" },
-{ "id":"ñb" , "value":"mb" },
-{ "id":"ṅp" , "value":"mp" },
-{ "id":"ṅb" , "value":"mb" },
+    { "id": "ṃp", "value": "mp" },
+    { "id": "ṃb", "value": "mb" },
+    { "id": "np", "value": "mp" },
+    { "id": "nb", "value": "mb" },
+    { "id": "ñp", "value": "mp" },
+    { "id": "ñb", "value": "mb" },
+    { "id": "ṅp", "value": "mp" },
+    { "id": "ṅb", "value": "mb" },
 
-{ "id":"ia" , "value":"ya" },//test
-{ "id":"iu" , "value":"yu" },//test
-{ "id":"ie" , "value":"ye" },//test
-{ "id":"io" , "value":"yo" },//test
+    { "id": "ia", "value": "ya" },//test
+    { "id": "iu", "value": "yu" },//test
+    { "id": "ie", "value": "ye" },//test
+    { "id": "io", "value": "yo" },//test
 
-{ "id":"ua" , "value":"va" },//test
-{ "id":"uu" , "value":"vu" },//test
-{ "id":"ue" , "value":"ve" },//test
-{ "id":"uo" , "value":"vo" },//test
+    { "id": "ua", "value": "va" },//test
+    { "id": "uu", "value": "vu" },//test
+    { "id": "ue", "value": "ve" },//test
+    { "id": "uo", "value": "vo" },//test
 
-{ "id":"'ti'" , "value":"’ti" },//test
-//{ "id":"+ti" , "value":"+’ti" },//test
-{ "id":"‘ti" , "value":"’ti" },//test
-{ "id":"+nti" , "value":"ṃ+’ti" },//test
+    { "id": "'ti'", "value": "’ti" },//test
+    //{ "id":"+ti" , "value":"+’ti" },//test
+    { "id": "‘ti", "value": "’ti" },//test
+    //{ "id":"+nti" , "value":"ṃ+’ti" },//test
 
-{ "id":"Aa" , "value":"Ā" },
-{ "id":"Ii" , "value":"Ī" },
-{ "id":"Uu" , "value":"Ū" },
-{ "id":"AA" , "value":"Ā" },
-{ "id":"II" , "value":"Ī" },
-{ "id":"UU" , "value":"Ū" },
-{ "id":"A:" , "value":"Ā" },
-{ "id":"I:" , "value":"Ī" },
-{ "id":"U:" , "value":"Ū" },
-{ "id":"Tx" , "value":"Ṭ" },
-{ "id":"Dx" , "value":"Ḍ" },
-{ "id":"Lx" , "value":"Ḷ" },
-{ "id":"Nx" , "value":"Ṇ" },
-{ "id":"Mx" , "value":"Ṃ" },
-{ "id":"Nz" , "value":"Ṅ" },
-{ "id":"TX" , "value":"Ṭ" },
-{ "id":"DX" , "value":"Ḍ" },
-{ "id":"LX" , "value":"Ḷ" },
-{ "id":"NX" , "value":"Ṇ" },
-{ "id":"MX" , "value":"Ṃ" },
-{ "id":"NZ" , "value":"Ṅ" },	
-{ "id":"N-" , "value":"Ñ" }
+    { "id": "Aa", "value": "Ā" },
+    { "id": "Ii", "value": "Ī" },
+    { "id": "Uu", "value": "Ū" },
+    { "id": "AA", "value": "Ā" },
+    { "id": "II", "value": "Ī" },
+    { "id": "UU", "value": "Ū" },
+    { "id": "A:", "value": "Ā" },
+    { "id": "I:", "value": "Ī" },
+    { "id": "U:", "value": "Ū" },
+    { "id": "Tx", "value": "Ṭ" },
+    { "id": "Dx", "value": "Ḍ" },
+    { "id": "Lx", "value": "Ḷ" },
+    { "id": "Nx", "value": "Ṇ" },
+    { "id": "Mx", "value": "Ṃ" },
+    { "id": "Nz", "value": "Ṅ" },
+    { "id": "TX", "value": "Ṭ" },
+    { "id": "DX", "value": "Ḍ" },
+    { "id": "LX", "value": "Ḷ" },
+    { "id": "NX", "value": "Ṇ" },
+    { "id": "MX", "value": "Ṃ" },
+    { "id": "NZ", "value": "Ṅ" },
+    { "id": "N-", "value": "Ñ" }
 ];
-var local_codestr_sinhala=[
-{ "id":"bbhr" , "value":"බ‍්භ්‍ර්" },
-{ "id":"bbhv" , "value":"බ‍්භ්‍ව්" },
-{ "id":"bbhy" , "value":"බ‍්භ්‍ය්" },
-{ "id":"cchr" , "value":"ච‍්ඡ්‍ර්" },
-{ "id":"cchv" , "value":"ච‍්ඡ්‍ව්" },
-{ "id":"cchy" , "value":"ච‍්ඡ්‍ය්" },
-{ "id":"ddhr" , "value":"ද‍්ධ්‍ර්" },
-{ "id":"ddhv" , "value":"ද‍්ධ්‍ව්" },
-{ "id":"ddhy" , "value":"ද‍්ධ්‍ය්" },
-{ "id":"ḍḍhr" , "value":"ඩ‍්ඪ්‍ර්" },
-{ "id":"ḍḍhv" , "value":"ඩ‍්ඪ්‍ව්" },
-{ "id":"ḍḍhy" , "value":"ඩ‍්ඪ්‍ය්" },
-{ "id":"gghr" , "value":"ග‍්ඝ්‍ර්" },
-{ "id":"gghv" , "value":"ග‍්ඝ්‍ව්" },
-{ "id":"gghy" , "value":"ග‍්ඝ්‍ය්" },
-{ "id":"ṅkhr" , "value":"ඞ‍්ඛ්‍ර්" },
-{ "id":"ṅkhv" , "value":"ඞ‍්ඛ්‍ව්" },
-{ "id":"ṅkhy" , "value":"ඞ‍්ඛ්‍ය්" },
-{ "id":"ṅghr" , "value":"ඞ‍්ඝ්‍ර්" },
-{ "id":"ṅghv" , "value":"ඞ‍්ඝ්‍ව්" },
-{ "id":"ṅghy" , "value":"ඞ‍්ඝ්‍ය්" },
-{ "id":"jjhr" , "value":"ජ‍්ඣ්‍ර්" },
-{ "id":"jjhv" , "value":"ජ‍්ඣ්‍ව්" },
-{ "id":"jjhy" , "value":"ජ‍්ඣ්‍ය්" },
-{ "id":"kkhr" , "value":"ක‍්ඛ්‍ර්" },
-{ "id":"kkhv" , "value":"ක‍්ඛ්‍ව්" },
-{ "id":"kkhy" , "value":"ක‍්ඛ්‍ය්" },
-{ "id":"ñchr" , "value":"ඤ‍්ඡ්‍ර්" },
-{ "id":"ñchv" , "value":"ඤ‍්ඡ්‍ව්" },
-{ "id":"ñchy" , "value":"ඤ‍්ඡ්‍ය්" },
-{ "id":"ñjhr" , "value":"ඤ‍්ඣ්‍ර්" },
-{ "id":"ñjhv" , "value":"ඤ‍්ඣ්‍ව්" },
-{ "id":"ñjhy" , "value":"ඤ‍්ඣ්‍ය්" },
-{ "id":"ṇṭhr" , "value":"ණ‍්ඨ්‍ර්" },
-{ "id":"ṇṭhv" , "value":"ණ‍්ඨ්‍ව්" },
-{ "id":"ṇṭhy" , "value":"ණ‍්ඨ්‍ය්" },
-{ "id":"ṇḍhr" , "value":"ණ‍්ඪ්‍ර්" },
-{ "id":"ṇḍhv" , "value":"ණ‍්ඪ්‍ව්" },
-{ "id":"ṇḍhy" , "value":"ණ‍්ඪ්‍ය්" },
-{ "id":"nthr" , "value":"න්‍ථ්‍ර්" },
-{ "id":"nthv" , "value":"න්‍ථ්‍ව්" },
-{ "id":"nthy" , "value":"න්‍ථ්‍ය්" },
-{ "id":"ndhr" , "value":"න්‍ධ්‍ර්" },
-{ "id":"ndhv" , "value":"න්‍ධ්‍ව්" },
-{ "id":"ndhy" , "value":"න්‍ධ්‍ය්" },
-{ "id":"pphr" , "value":"ප‍්ඵ්‍ර්" },
-{ "id":"pphv" , "value":"ප‍්ඵ්‍ව්" },
-{ "id":"pphy" , "value":"ප‍්ඵ්‍ය්" },
-{ "id":"mphr" , "value":"ම‍්ඵ්‍ර්" },
-{ "id":"mphv" , "value":"ම‍්ඵ්‍ව්" },
-{ "id":"mphy" , "value":"ම‍්ඵ්‍ය්" },
-{ "id":"mbhr" , "value":"ම‍්භ්‍ර්" },
-{ "id":"mbhv" , "value":"ම‍්භ්‍ව්" },
-{ "id":"mbhy" , "value":"ම‍්භ්‍ය්" },
-{ "id":"tthr" , "value":"ත්‍ථ්‍ර්" },
-{ "id":"tthv" , "value":"ත්‍ථ්‍ව්" },
-{ "id":"tthy" , "value":"ත්‍ථ්‍ය්" },
-{ "id":"ṭṭhr" , "value":"ට‍්ඨ්‍ර්" },
-{ "id":"ṭṭhv" , "value":"ට‍්ඨ්‍ව්" },
-{ "id":"ṭṭhy" , "value":"ට‍්ඨ්‍ය්" },
-{ "id":"bbh" , "value":"බ‍්භ්" },
-{ "id":"cch" , "value":"ච‍්ඡ්" },
-{ "id":"ddh" , "value":"ද‍්ධ්" },
-{ "id":"ḍḍh" , "value":"ඩ‍්ඪ්" },
-{ "id":"ggh" , "value":"ග‍්ඝ්" },
-{ "id":"ṅkh" , "value":"ඞ‍්ඛ්" },
-{ "id":"ṅgh" , "value":"ඞ‍්ඝ්" },
-{ "id":"jjh" , "value":"ජ‍්ඣ්" },
-{ "id":"kkh" , "value":"ක‍්ඛ්" },
-{ "id":"ñch" , "value":"ඤ‍්ඡ්" },
-{ "id":"ñjh" , "value":"ඤ‍්ඣ්" },
-{ "id":"ṇṭh" , "value":"ණ‍්ඨ්" },
-{ "id":"ṇḍh" , "value":"ණ‍්ඪ්" },
-{ "id":"nth" , "value":"න්‍ථ්" },
-{ "id":"ndh" , "value":"න්‍ධ්" },
-{ "id":"pph" , "value":"ප‍්ඵ්" },
-{ "id":"mph" , "value":"ම‍්ඵ්" },
-{ "id":"mbh" , "value":"ම‍්භ්" },
-{ "id":"tth" , "value":"ත්‍ථ්" },
-{ "id":"ṭṭh" , "value":"ට‍්ඨ්" },
-{ "id":"bhr" , "value":"භ්‍ර්" },
-{ "id":"bhv" , "value":"භ්‍ව්" },
-{ "id":"bhy" , "value":"භ්‍ය්" },
-{ "id":"chr" , "value":"ඡ්‍ර්" },
-{ "id":"chv" , "value":"ඡ්‍ව්" },
-{ "id":"chy" , "value":"ඡ්‍ය්" },
-{ "id":"dhr" , "value":"ධ්‍ර්" },
-{ "id":"dhv" , "value":"ධ්‍ව්" },
-{ "id":"dhy" , "value":"ධ්‍ය්" },
-{ "id":"ḍhr" , "value":"ඪ්‍ර්" },
-{ "id":"ḍhv" , "value":"ඪ්‍ව්" },
-{ "id":"ḍhy" , "value":"ඪ්‍ය්" },
-{ "id":"ghr" , "value":"ඝ්‍ර්" },
-{ "id":"ghv" , "value":"ඝ්‍ව්" },
-{ "id":"ghy" , "value":"ඝ්‍ය්" },
-{ "id":"jhr" , "value":"ඣ්‍ර්" },
-{ "id":"jhv" , "value":"ඣ්‍ව්" },
-{ "id":"jhy" , "value":"ඣ්‍ය්" },
-{ "id":"khr" , "value":"ඛ්‍ර්" },
-{ "id":"khv" , "value":"ඛ්‍ව්" },
-{ "id":"khy" , "value":"ඛ්‍ය්" },
-{ "id":"phr" , "value":"ඵ්‍ර්" },
-{ "id":"phv" , "value":"ඵ්‍ව්" },
-{ "id":"phy" , "value":"ඵ්‍ය්" },
-{ "id":"thr" , "value":"ථ්‍ර්" },
-{ "id":"thv" , "value":"ථ්‍ව්" },
-{ "id":"thy" , "value":"ථ්‍ය්" },
-{ "id":"ṭhr" , "value":"ඨ්‍ර්" },
-{ "id":"ṭhv" , "value":"ඨ්‍ව්" },
-{ "id":"ṭhy" , "value":"ඨ්‍ය්" },
-{ "id":"bbr" , "value":"බ‍්බ්‍ර්" },
-{ "id":"bbv" , "value":"බ‍්බ්‍ව්" },
-{ "id":"bby" , "value":"බ‍්බ්‍ය්" },
-{ "id":"ccr" , "value":"ච‍්ච්‍ර්" },
-{ "id":"ccv" , "value":"ච‍්ච්‍ව්" },
-{ "id":"ccy" , "value":"ච‍්ච්‍ය්" },
-{ "id":"ddr" , "value":"ද‍්ද්‍ර්" },
-{ "id":"ddv" , "value":"ද‍්ද්‍ව්" },
-{ "id":"ddy" , "value":"ද‍්ද්‍ය්" },
-{ "id":"ḍḍr" , "value":"ඩ‍්ඩ්‍ර්" },
-{ "id":"ḍḍv" , "value":"ඩ‍්ඩ්‍ව්" },
-{ "id":"ḍḍy" , "value":"ඩ‍්ඩ්‍ය්" },
-{ "id":"ggr" , "value":"ග‍්ග්‍ර්" },
-{ "id":"ggv" , "value":"ග‍්ග්‍ව්" },
-{ "id":"ggy" , "value":"ග‍්ග්‍ය්" },
-{ "id":"ṅkr" , "value":"ඞ‍්ක්‍ර්" },
-{ "id":"ṅkv" , "value":"ඞ‍්ක්‍ව්" },
-{ "id":"ṅky" , "value":"ඞ‍්ක්‍ය්" },
-{ "id":"ṅgr" , "value":"ඞ‍්ග්‍ර්" },
-{ "id":"ṅgv" , "value":"ඞ‍්ග්‍ව්" },
-{ "id":"ṅgy" , "value":"ඞ‍්ග්‍ය්" },
-{ "id":"jjr" , "value":"ජ‍්ජ්‍ර්" },
-{ "id":"jjv" , "value":"ජ‍්ජ්‍ව්" },
-{ "id":"jjy" , "value":"ජ‍්ජ්‍ය්" },
-{ "id":"kkr" , "value":"ක‍්ක්‍ර්" },
-{ "id":"kkv" , "value":"ක‍්ක්‍ව්" },
-{ "id":"kky" , "value":"ක‍්ක්‍ය්" },
-{ "id":"ñcr" , "value":"ඤ‍්ච්‍ර්" },
-{ "id":"ñcv" , "value":"ඤ‍්ච්‍ව්" },
-{ "id":"ñcy" , "value":"ඤ‍්ච්‍ය්" },
-{ "id":"ñjr" , "value":"ඤ‍්ජ්‍ර්" },
-{ "id":"ñjv" , "value":"ඤ‍්ජ්‍ව්" },
-{ "id":"ñjy" , "value":"ඤ‍්ජ්‍ය්" },
-{ "id":"mmr" , "value":"ම‍්ම්‍ර්" },
-{ "id":"mmv" , "value":"ම‍්ම්‍ව්" },
-{ "id":"mmy" , "value":"ම‍්ම්‍ය්" },
-{ "id":"nnr" , "value":"න‍්න්‍ර්" },
-{ "id":"nnv" , "value":"න‍්න්‍ව්" },
-{ "id":"nny" , "value":"න‍්න්‍ය්" },
-{ "id":"ṇṭr" , "value":"ණ‍්ට්‍ර්" },
-{ "id":"ṇṭv" , "value":"ණ‍්ට්‍ව්" },
-{ "id":"ṇṭy" , "value":"ණ‍්ට්‍ය්" },
-{ "id":"ṇḍr" , "value":"ණ‍්ඩ්‍ර්" },
-{ "id":"ṇḍv" , "value":"ණ‍්ඩ්‍ව්" },
-{ "id":"ṇḍy" , "value":"ණ‍්ඩ්‍ය්" },
-{ "id":"ññr" , "value":"ඤ‍්ඤ්‍ර්" },
-{ "id":"ññv" , "value":"ඤ‍්ඤ්‍ව්" },
-{ "id":"ññy" , "value":"ඤ‍්ඤ්‍ය්" },
-{ "id":"ṇṇr" , "value":"ණ‍්ණ්‍ර්" },
-{ "id":"ṇṇv" , "value":"ණ‍්ණ්‍ව්" },
-{ "id":"ṇṇy" , "value":"ණ‍්ණ්‍ය්" },
-{ "id":"ppr" , "value":"ප‍්ප්‍ර්" },
-{ "id":"ppv" , "value":"ප‍්ප්‍ව්" },
-{ "id":"ppy" , "value":"ප‍්ප්‍ය්" },
-{ "id":"ntr" , "value":"න්‍ත්‍ර්" },
-{ "id":"ntv" , "value":"න්‍ත්‍ව්" },
-{ "id":"nty" , "value":"න්‍ත්‍ය්" },
-{ "id":"ndr" , "value":"න්‍ද්‍ර්" },
-{ "id":"ndv" , "value":"න්‍ද්‍ව්" },
-{ "id":"ndy" , "value":"න්‍ද්‍ය්" },
-{ "id":"ttr" , "value":"ත‍්ත්‍ර්" },
-{ "id":"ttv" , "value":"ත‍්ත්‍ව්" },
-{ "id":"tty" , "value":"ත‍්ත්‍ය්" },
-{ "id":"mpr" , "value":"ම‍්ප්‍ර්" },
-{ "id":"mpv" , "value":"ම‍්ප්‍ව්" },
-{ "id":"mpy" , "value":"ම‍්ප්‍ය්" },
-{ "id":"mbr" , "value":"ම‍්බ්‍ර්" },
-{ "id":"mbv" , "value":"ම‍්බ්‍ව්" },
-{ "id":"mby" , "value":"ම‍්බ්‍ය්" },
-{ "id":"ṭṭr" , "value":"ට‍්ට්‍ර්" },
-{ "id":"ṭṭv" , "value":"ට‍්ට්‍ව්" },
-{ "id":"ṭṭy" , "value":"ට‍්ට්‍ය්" },
-{ "id":"llr" , "value":"ල‍්ල්‍ර්" },
-{ "id":"llv" , "value":"ල‍්ල්‍ව්" },
-{ "id":"lly" , "value":"ල‍්ල්‍ය්" },
-{ "id":"ssr" , "value":"ස‍්ස්‍ර්" },
-{ "id":"ssv" , "value":"ස‍්ස්‍ව්" },
-{ "id":"ssy" , "value":"ස‍්ස්‍ය්" },
-{ "id":"yyr" , "value":"ය්‍ය්‍ර්" },
-{ "id":"yyv" , "value":"ය්‍ය්‍ව්" },
-{ "id":"yyy" , "value":"ය්‍ය්‍ය්" },
-{ "id":"bb" , "value":"බ‍්බ්" },
-{ "id":"cc" , "value":"ච‍්ච්" },
-{ "id":"dd" , "value":"ද‍්ද්" },
-{ "id":"ḍḍ" , "value":"ඩ‍්ඩ්" },
-{ "id":"gg" , "value":"ග‍්ග්" },
-{ "id":"ṅk" , "value":"ඞ‍්ක්" },
-{ "id":"ṅg" , "value":"ඞ‍්ග්" },
-{ "id":"jj" , "value":"ජ‍්ජ්" },
-{ "id":"kk" , "value":"ක‍්ක්" },
-{ "id":"ñc" , "value":"ඤ‍්ච්" },
-{ "id":"ñj" , "value":"ඤ‍්ජ්" },
-{ "id":"mm" , "value":"ම‍්ම්" },
-{ "id":"nn" , "value":"න‍්න්" },
-{ "id":"ṇṭ" , "value":"ණ‍්ට්" },
-{ "id":"ṇḍ" , "value":"ණ‍්ඩ්" },
-{ "id":"ññ" , "value":"ඤ‍්ඤ්" },
-{ "id":"ṇṇ" , "value":"ණ‍්ණ්" },
-{ "id":"pp" , "value":"ප‍්ප්" },
-{ "id":"nt" , "value":"න්‍ත්" },
-{ "id":"nd" , "value":"න්‍ද්" },
-{ "id":"tt" , "value":"ත‍්ත්" },
-{ "id":"mp" , "value":"ම‍්ප්" },
-{ "id":"mb" , "value":"ම‍්බ්" },
-{ "id":"ṭṭ" , "value":"ට‍්ට්" },
-{ "id":"bh" , "value":"භ්" },
-{ "id":"ch" , "value":"ඡ්" },
-{ "id":"dh" , "value":"ධ්" },
-{ "id":"ḍh" , "value":"ඪ්" },
-{ "id":"gh" , "value":"ඝ්" },
-{ "id":"jh" , "value":"ඣ්" },
-{ "id":"kh" , "value":"ඛ්" },
-{ "id":"ph" , "value":"ඵ්" },
-{ "id":"th" , "value":"ථ්" },
-{ "id":"ṭh" , "value":"ඨ්" },
-{ "id":"ll" , "value":"ල‍්ල්" },
-{ "id":"ss" , "value":"ස‍්ස්" },
-{ "id":"yy" , "value":"ය්‍ය්" },
-{ "id":"br" , "value":"බ්‍ර්" },
-{ "id":"bv" , "value":"බ්‍ව්" },
-{ "id":"by" , "value":"බ්‍ය්" },
-{ "id":"cr" , "value":"ච්‍ර්" },
-{ "id":"cv" , "value":"ච්‍ව්" },
-{ "id":"cy" , "value":"ච්‍ය්" },
-{ "id":"dr" , "value":"ද්‍ර්" },
-{ "id":"dv" , "value":"ද්‍ව්" },
-{ "id":"dy" , "value":"ද්‍ය්" },
-{ "id":"ḍr" , "value":"ඩ්‍ර්" },
-{ "id":"ḍv" , "value":"ඩ්‍ව්" },
-{ "id":"ḍy" , "value":"ඩ්‍ය්" },
-{ "id":"gr" , "value":"ග්‍ර්" },
-{ "id":"gv" , "value":"ග්‍ව්" },
-{ "id":"gy" , "value":"ග්‍ය්" },
-{ "id":"jr" , "value":"ජ්‍ර්" },
-{ "id":"jv" , "value":"ජ්‍ව්" },
-{ "id":"jy" , "value":"ජ්‍ය්" },
-{ "id":"kr" , "value":"ක්‍ර්" },
-{ "id":"kv" , "value":"ක්‍ව්" },
-{ "id":"ky" , "value":"ක්‍ය්" },
-{ "id":"pr" , "value":"ප්‍ර්" },
-{ "id":"pv" , "value":"ප්‍ව්" },
-{ "id":"py" , "value":"ප්‍ය්" },
-{ "id":"tr" , "value":"ත්‍ර්" },
-{ "id":"tv" , "value":"ත්‍ව්" },
-{ "id":"ty" , "value":"ත්‍ය්" },
-{ "id":"ṭr" , "value":"ට්‍ර්" },
-{ "id":"ṭv" , "value":"ට්‍ව්" },
-{ "id":"ṭy" , "value":"ට්‍ය්" },
-{ "id":"ñh" , "value":"ඤ‍්හ්" },
-{ "id":"ṇh" , "value":"ණ‍්හ්" },
-{ "id":"nh" , "value":"න‍්හ්" },
-{ "id":"mh" , "value":"ම‍්හ්" },
-{ "id":"yh" , "value":"ය‍්හ්" },
-{ "id":"ly" , "value":"ල්‍ය්" },
-{ "id":"lh" , "value":"ල‍්හ්" },
-{ "id":"vh" , "value":"ව‍්හ්" },
-{ "id":"sm" , "value":"ස‍්ම්" },
-{ "id":"sv" , "value":"ස‍්ව්" },
-{ "id":"hm" , "value":"හ‍්ම්" },
-{ "id":"hv" , "value":"හ‍්ව්" },
-{ "id":"ḷh" , "value":"ළ‍්හ්" },
-{ "id":"m" , "value":"ම්" },
-{ "id":"n" , "value":"න්" },
-{ "id":"ṅ" , "value":"ඞ්" },
-{ "id":"ñ" , "value":"ඤ්" },
-{ "id":"ṇ" , "value":"ණ්" },
-{ "id":"b" , "value":"බ්" },
-{ "id":"c" , "value":"ච්" },
-{ "id":"d" , "value":"ද්" },
-{ "id":"ḍ" , "value":"ඩ්" },
-{ "id":"g" , "value":"ග්" },
-{ "id":"j" , "value":"ජ්" },
-{ "id":"k" , "value":"ක්" },
-{ "id":"p" , "value":"ප්" },
-{ "id":"t" , "value":"ත්" },
-{ "id":"ṭ" , "value":"ට්" },
-{ "id":"y" , "value":"‍ය්" },
-{ "id":"r" , "value":"‍ර්" },
-{ "id":"l" , "value":"ල්" },
-{ "id":"v" , "value":"ව්" },
-{ "id":"s" , "value":"ස්" },
-{ "id":"h" , "value":"හ්" },
-{ "id":"ḷ" , "value":"ළ්" },
-{ "id":"්iṃ" , "value":"ිං" },
-{ "id":"්uṃ" , "value":"ුං" },
-{ "id":"්aṃ" , "value":"ං" },
-{ "id":"්ā" , "value":"ා" },
-{ "id":"්i" , "value":"ි" },
-{ "id":"්ī" , "value":"ී" },
-{ "id":"්u" , "value":"ු" },
-{ "id":"්ū" , "value":"ූ" },
-{ "id":"්e" , "value":"ෙ" },
-{ "id":"්ē" , "value":"ේ" },
-{ "id":"්o" , "value":"ො" },
-{ "id":"්ō" , "value":"ෝ" },
-{ "id":"්a" , "value":"" },
-{ "id":"්" , "value":"්" },
-{ "id":"aṃ" , "value":"අං" },
-{ "id":"iṃ" , "value":"ඉං" },
-{ "id":"uṃ" , "value":"උං" },
-{ "id":"a" , "value":"අ" },
-{ "id":"ā" , "value":"ආ" },
-{ "id":"i" , "value":"ඉ" },
-{ "id":"ī" , "value":"ඊ" },
-{ "id":"u" , "value":"උ" },
-{ "id":"ū" , "value":"ඌ" },
-{ "id":"e" , "value":"එ" },
-{ "id":"o" , "value":"ඔ" },
-{ "id":"්අ" , "value":"" }
+var local_codestr_sinhala = [
+    { "id": "bbhr", "value": "බ‍්භ්‍ර්" },
+    { "id": "bbhv", "value": "බ‍්භ්‍ව්" },
+    { "id": "bbhy", "value": "බ‍්භ්‍ය්" },
+    { "id": "cchr", "value": "ච‍්ඡ්‍ර්" },
+    { "id": "cchv", "value": "ච‍්ඡ්‍ව්" },
+    { "id": "cchy", "value": "ච‍්ඡ්‍ය්" },
+    { "id": "ddhr", "value": "ද‍්ධ්‍ර්" },
+    { "id": "ddhv", "value": "ද‍්ධ්‍ව්" },
+    { "id": "ddhy", "value": "ද‍්ධ්‍ය්" },
+    { "id": "ḍḍhr", "value": "ඩ‍්ඪ්‍ර්" },
+    { "id": "ḍḍhv", "value": "ඩ‍්ඪ්‍ව්" },
+    { "id": "ḍḍhy", "value": "ඩ‍්ඪ්‍ය්" },
+    { "id": "gghr", "value": "ග‍්ඝ්‍ර්" },
+    { "id": "gghv", "value": "ග‍්ඝ්‍ව්" },
+    { "id": "gghy", "value": "ග‍්ඝ්‍ය්" },
+    { "id": "ṅkhr", "value": "ඞ‍්ඛ්‍ර්" },
+    { "id": "ṅkhv", "value": "ඞ‍්ඛ්‍ව්" },
+    { "id": "ṅkhy", "value": "ඞ‍්ඛ්‍ය්" },
+    { "id": "ṅghr", "value": "ඞ‍්ඝ්‍ර්" },
+    { "id": "ṅghv", "value": "ඞ‍්ඝ්‍ව්" },
+    { "id": "ṅghy", "value": "ඞ‍්ඝ්‍ය්" },
+    { "id": "jjhr", "value": "ජ‍්ඣ්‍ර්" },
+    { "id": "jjhv", "value": "ජ‍්ඣ්‍ව්" },
+    { "id": "jjhy", "value": "ජ‍්ඣ්‍ය්" },
+    { "id": "kkhr", "value": "ක‍්ඛ්‍ර්" },
+    { "id": "kkhv", "value": "ක‍්ඛ්‍ව්" },
+    { "id": "kkhy", "value": "ක‍්ඛ්‍ය්" },
+    { "id": "ñchr", "value": "ඤ‍්ඡ්‍ර්" },
+    { "id": "ñchv", "value": "ඤ‍්ඡ්‍ව්" },
+    { "id": "ñchy", "value": "ඤ‍්ඡ්‍ය්" },
+    { "id": "ñjhr", "value": "ඤ‍්ඣ්‍ර්" },
+    { "id": "ñjhv", "value": "ඤ‍්ඣ්‍ව්" },
+    { "id": "ñjhy", "value": "ඤ‍්ඣ්‍ය්" },
+    { "id": "ṇṭhr", "value": "ණ‍්ඨ්‍ර්" },
+    { "id": "ṇṭhv", "value": "ණ‍්ඨ්‍ව්" },
+    { "id": "ṇṭhy", "value": "ණ‍්ඨ්‍ය්" },
+    { "id": "ṇḍhr", "value": "ණ‍්ඪ්‍ර්" },
+    { "id": "ṇḍhv", "value": "ණ‍්ඪ්‍ව්" },
+    { "id": "ṇḍhy", "value": "ණ‍්ඪ්‍ය්" },
+    { "id": "nthr", "value": "න්‍ථ්‍ර්" },
+    { "id": "nthv", "value": "න්‍ථ්‍ව්" },
+    { "id": "nthy", "value": "න්‍ථ්‍ය්" },
+    { "id": "ndhr", "value": "න්‍ධ්‍ර්" },
+    { "id": "ndhv", "value": "න්‍ධ්‍ව්" },
+    { "id": "ndhy", "value": "න්‍ධ්‍ය්" },
+    { "id": "pphr", "value": "ප‍්ඵ්‍ර්" },
+    { "id": "pphv", "value": "ප‍්ඵ්‍ව්" },
+    { "id": "pphy", "value": "ප‍්ඵ්‍ය්" },
+    { "id": "mphr", "value": "ම‍්ඵ්‍ර්" },
+    { "id": "mphv", "value": "ම‍්ඵ්‍ව්" },
+    { "id": "mphy", "value": "ම‍්ඵ්‍ය්" },
+    { "id": "mbhr", "value": "ම‍්භ්‍ර්" },
+    { "id": "mbhv", "value": "ම‍්භ්‍ව්" },
+    { "id": "mbhy", "value": "ම‍්භ්‍ය්" },
+    { "id": "tthr", "value": "ත්‍ථ්‍ර්" },
+    { "id": "tthv", "value": "ත්‍ථ්‍ව්" },
+    { "id": "tthy", "value": "ත්‍ථ්‍ය්" },
+    { "id": "ṭṭhr", "value": "ට‍්ඨ්‍ර්" },
+    { "id": "ṭṭhv", "value": "ට‍්ඨ්‍ව්" },
+    { "id": "ṭṭhy", "value": "ට‍්ඨ්‍ය්" },
+    { "id": "bbh", "value": "බ‍්භ්" },
+    { "id": "cch", "value": "ච‍්ඡ්" },
+    { "id": "ddh", "value": "ද‍්ධ්" },
+    { "id": "ḍḍh", "value": "ඩ‍්ඪ්" },
+    { "id": "ggh", "value": "ග‍්ඝ්" },
+    { "id": "ṅkh", "value": "ඞ‍්ඛ්" },
+    { "id": "ṅgh", "value": "ඞ‍්ඝ්" },
+    { "id": "jjh", "value": "ජ‍්ඣ්" },
+    { "id": "kkh", "value": "ක‍්ඛ්" },
+    { "id": "ñch", "value": "ඤ‍්ඡ්" },
+    { "id": "ñjh", "value": "ඤ‍්ඣ්" },
+    { "id": "ṇṭh", "value": "ණ‍්ඨ්" },
+    { "id": "ṇḍh", "value": "ණ‍්ඪ්" },
+    { "id": "nth", "value": "න්‍ථ්" },
+    { "id": "ndh", "value": "න්‍ධ්" },
+    { "id": "pph", "value": "ප‍්ඵ්" },
+    { "id": "mph", "value": "ම‍්ඵ්" },
+    { "id": "mbh", "value": "ම‍්භ්" },
+    { "id": "tth", "value": "ත්‍ථ්" },
+    { "id": "ṭṭh", "value": "ට‍්ඨ්" },
+    { "id": "bhr", "value": "භ්‍ර්" },
+    { "id": "bhv", "value": "භ්‍ව්" },
+    { "id": "bhy", "value": "භ්‍ය්" },
+    { "id": "chr", "value": "ඡ්‍ර්" },
+    { "id": "chv", "value": "ඡ්‍ව්" },
+    { "id": "chy", "value": "ඡ්‍ය්" },
+    { "id": "dhr", "value": "ධ්‍ර්" },
+    { "id": "dhv", "value": "ධ්‍ව්" },
+    { "id": "dhy", "value": "ධ්‍ය්" },
+    { "id": "ḍhr", "value": "ඪ්‍ර්" },
+    { "id": "ḍhv", "value": "ඪ්‍ව්" },
+    { "id": "ḍhy", "value": "ඪ්‍ය්" },
+    { "id": "ghr", "value": "ඝ්‍ර්" },
+    { "id": "ghv", "value": "ඝ්‍ව්" },
+    { "id": "ghy", "value": "ඝ්‍ය්" },
+    { "id": "jhr", "value": "ඣ්‍ර්" },
+    { "id": "jhv", "value": "ඣ්‍ව්" },
+    { "id": "jhy", "value": "ඣ්‍ය්" },
+    { "id": "khr", "value": "ඛ්‍ර්" },
+    { "id": "khv", "value": "ඛ්‍ව්" },
+    { "id": "khy", "value": "ඛ්‍ය්" },
+    { "id": "phr", "value": "ඵ්‍ර්" },
+    { "id": "phv", "value": "ඵ්‍ව්" },
+    { "id": "phy", "value": "ඵ්‍ය්" },
+    { "id": "thr", "value": "ථ්‍ර්" },
+    { "id": "thv", "value": "ථ්‍ව්" },
+    { "id": "thy", "value": "ථ්‍ය්" },
+    { "id": "ṭhr", "value": "ඨ්‍ර්" },
+    { "id": "ṭhv", "value": "ඨ්‍ව්" },
+    { "id": "ṭhy", "value": "ඨ්‍ය්" },
+    { "id": "bbr", "value": "බ‍්බ්‍ර්" },
+    { "id": "bbv", "value": "බ‍්බ්‍ව්" },
+    { "id": "bby", "value": "බ‍්බ්‍ය්" },
+    { "id": "ccr", "value": "ච‍්ච්‍ර්" },
+    { "id": "ccv", "value": "ච‍්ච්‍ව්" },
+    { "id": "ccy", "value": "ච‍්ච්‍ය්" },
+    { "id": "ddr", "value": "ද‍්ද්‍ර්" },
+    { "id": "ddv", "value": "ද‍්ද්‍ව්" },
+    { "id": "ddy", "value": "ද‍්ද්‍ය්" },
+    { "id": "ḍḍr", "value": "ඩ‍්ඩ්‍ර්" },
+    { "id": "ḍḍv", "value": "ඩ‍්ඩ්‍ව්" },
+    { "id": "ḍḍy", "value": "ඩ‍්ඩ්‍ය්" },
+    { "id": "ggr", "value": "ග‍්ග්‍ර්" },
+    { "id": "ggv", "value": "ග‍්ග්‍ව්" },
+    { "id": "ggy", "value": "ග‍්ග්‍ය්" },
+    { "id": "ṅkr", "value": "ඞ‍්ක්‍ර්" },
+    { "id": "ṅkv", "value": "ඞ‍්ක්‍ව්" },
+    { "id": "ṅky", "value": "ඞ‍්ක්‍ය්" },
+    { "id": "ṅgr", "value": "ඞ‍්ග්‍ර්" },
+    { "id": "ṅgv", "value": "ඞ‍්ග්‍ව්" },
+    { "id": "ṅgy", "value": "ඞ‍්ග්‍ය්" },
+    { "id": "jjr", "value": "ජ‍්ජ්‍ර්" },
+    { "id": "jjv", "value": "ජ‍්ජ්‍ව්" },
+    { "id": "jjy", "value": "ජ‍්ජ්‍ය්" },
+    { "id": "kkr", "value": "ක‍්ක්‍ර්" },
+    { "id": "kkv", "value": "ක‍්ක්‍ව්" },
+    { "id": "kky", "value": "ක‍්ක්‍ය්" },
+    { "id": "ñcr", "value": "ඤ‍්ච්‍ර්" },
+    { "id": "ñcv", "value": "ඤ‍්ච්‍ව්" },
+    { "id": "ñcy", "value": "ඤ‍්ච්‍ය්" },
+    { "id": "ñjr", "value": "ඤ‍්ජ්‍ර්" },
+    { "id": "ñjv", "value": "ඤ‍්ජ්‍ව්" },
+    { "id": "ñjy", "value": "ඤ‍්ජ්‍ය්" },
+    { "id": "mmr", "value": "ම‍්ම්‍ර්" },
+    { "id": "mmv", "value": "ම‍්ම්‍ව්" },
+    { "id": "mmy", "value": "ම‍්ම්‍ය්" },
+    { "id": "nnr", "value": "න‍්න්‍ර්" },
+    { "id": "nnv", "value": "න‍්න්‍ව්" },
+    { "id": "nny", "value": "න‍්න්‍ය්" },
+    { "id": "ṇṭr", "value": "ණ‍්ට්‍ර්" },
+    { "id": "ṇṭv", "value": "ණ‍්ට්‍ව්" },
+    { "id": "ṇṭy", "value": "ණ‍්ට්‍ය්" },
+    { "id": "ṇḍr", "value": "ණ‍්ඩ්‍ර්" },
+    { "id": "ṇḍv", "value": "ණ‍්ඩ්‍ව්" },
+    { "id": "ṇḍy", "value": "ණ‍්ඩ්‍ය්" },
+    { "id": "ññr", "value": "ඤ‍්ඤ්‍ර්" },
+    { "id": "ññv", "value": "ඤ‍්ඤ්‍ව්" },
+    { "id": "ññy", "value": "ඤ‍්ඤ්‍ය්" },
+    { "id": "ṇṇr", "value": "ණ‍්ණ්‍ර්" },
+    { "id": "ṇṇv", "value": "ණ‍්ණ්‍ව්" },
+    { "id": "ṇṇy", "value": "ණ‍්ණ්‍ය්" },
+    { "id": "ppr", "value": "ප‍්ප්‍ර්" },
+    { "id": "ppv", "value": "ප‍්ප්‍ව්" },
+    { "id": "ppy", "value": "ප‍්ප්‍ය්" },
+    { "id": "ntr", "value": "න්‍ත්‍ර්" },
+    { "id": "ntv", "value": "න්‍ත්‍ව්" },
+    { "id": "nty", "value": "න්‍ත්‍ය්" },
+    { "id": "ndr", "value": "න්‍ද්‍ර්" },
+    { "id": "ndv", "value": "න්‍ද්‍ව්" },
+    { "id": "ndy", "value": "න්‍ද්‍ය්" },
+    { "id": "ttr", "value": "ත‍්ත්‍ර්" },
+    { "id": "ttv", "value": "ත‍්ත්‍ව්" },
+    { "id": "tty", "value": "ත‍්ත්‍ය්" },
+    { "id": "mpr", "value": "ම‍්ප්‍ර්" },
+    { "id": "mpv", "value": "ම‍්ප්‍ව්" },
+    { "id": "mpy", "value": "ම‍්ප්‍ය්" },
+    { "id": "mbr", "value": "ම‍්බ්‍ර්" },
+    { "id": "mbv", "value": "ම‍්බ්‍ව්" },
+    { "id": "mby", "value": "ම‍්බ්‍ය්" },
+    { "id": "ṭṭr", "value": "ට‍්ට්‍ර්" },
+    { "id": "ṭṭv", "value": "ට‍්ට්‍ව්" },
+    { "id": "ṭṭy", "value": "ට‍්ට්‍ය්" },
+    { "id": "llr", "value": "ල‍්ල්‍ර්" },
+    { "id": "llv", "value": "ල‍්ල්‍ව්" },
+    { "id": "lly", "value": "ල‍්ල්‍ය්" },
+    { "id": "ssr", "value": "ස‍්ස්‍ර්" },
+    { "id": "ssv", "value": "ස‍්ස්‍ව්" },
+    { "id": "ssy", "value": "ස‍්ස්‍ය්" },
+    { "id": "yyr", "value": "ය්‍ය්‍ර්" },
+    { "id": "yyv", "value": "ය්‍ය්‍ව්" },
+    { "id": "yyy", "value": "ය්‍ය්‍ය්" },
+    { "id": "bb", "value": "බ‍්බ්" },
+    { "id": "cc", "value": "ච‍්ච්" },
+    { "id": "dd", "value": "ද‍්ද්" },
+    { "id": "ḍḍ", "value": "ඩ‍්ඩ්" },
+    { "id": "gg", "value": "ග‍්ග්" },
+    { "id": "ṅk", "value": "ඞ‍්ක්" },
+    { "id": "ṅg", "value": "ඞ‍්ග්" },
+    { "id": "jj", "value": "ජ‍්ජ්" },
+    { "id": "kk", "value": "ක‍්ක්" },
+    { "id": "ñc", "value": "ඤ‍්ච්" },
+    { "id": "ñj", "value": "ඤ‍්ජ්" },
+    { "id": "mm", "value": "ම‍්ම්" },
+    { "id": "nn", "value": "න‍්න්" },
+    { "id": "ṇṭ", "value": "ණ‍්ට්" },
+    { "id": "ṇḍ", "value": "ණ‍්ඩ්" },
+    { "id": "ññ", "value": "ඤ‍්ඤ්" },
+    { "id": "ṇṇ", "value": "ණ‍්ණ්" },
+    { "id": "pp", "value": "ප‍්ප්" },
+    { "id": "nt", "value": "න්‍ත්" },
+    { "id": "nd", "value": "න්‍ද්" },
+    { "id": "tt", "value": "ත‍්ත්" },
+    { "id": "mp", "value": "ම‍්ප්" },
+    { "id": "mb", "value": "ම‍්බ්" },
+    { "id": "ṭṭ", "value": "ට‍්ට්" },
+    { "id": "bh", "value": "භ්" },
+    { "id": "ch", "value": "ඡ්" },
+    { "id": "dh", "value": "ධ්" },
+    { "id": "ḍh", "value": "ඪ්" },
+    { "id": "gh", "value": "ඝ්" },
+    { "id": "jh", "value": "ඣ්" },
+    { "id": "kh", "value": "ඛ්" },
+    { "id": "ph", "value": "ඵ්" },
+    { "id": "th", "value": "ථ්" },
+    { "id": "ṭh", "value": "ඨ්" },
+    { "id": "ll", "value": "ල‍්ල්" },
+    { "id": "ss", "value": "ස‍්ස්" },
+    { "id": "yy", "value": "ය්‍ය්" },
+    { "id": "br", "value": "බ්‍ර්" },
+    { "id": "bv", "value": "බ්‍ව්" },
+    { "id": "by", "value": "බ්‍ය්" },
+    { "id": "cr", "value": "ච්‍ර්" },
+    { "id": "cv", "value": "ච්‍ව්" },
+    { "id": "cy", "value": "ච්‍ය්" },
+    { "id": "dr", "value": "ද්‍ර්" },
+    { "id": "dv", "value": "ද්‍ව්" },
+    { "id": "dy", "value": "ද්‍ය්" },
+    { "id": "ḍr", "value": "ඩ්‍ර්" },
+    { "id": "ḍv", "value": "ඩ්‍ව්" },
+    { "id": "ḍy", "value": "ඩ්‍ය්" },
+    { "id": "gr", "value": "ග්‍ර්" },
+    { "id": "gv", "value": "ග්‍ව්" },
+    { "id": "gy", "value": "ග්‍ය්" },
+    { "id": "jr", "value": "ජ්‍ර්" },
+    { "id": "jv", "value": "ජ්‍ව්" },
+    { "id": "jy", "value": "ජ්‍ය්" },
+    { "id": "kr", "value": "ක්‍ර්" },
+    { "id": "kv", "value": "ක්‍ව්" },
+    { "id": "ky", "value": "ක්‍ය්" },
+    { "id": "pr", "value": "ප්‍ර්" },
+    { "id": "pv", "value": "ප්‍ව්" },
+    { "id": "py", "value": "ප්‍ය්" },
+    { "id": "tr", "value": "ත්‍ර්" },
+    { "id": "tv", "value": "ත්‍ව්" },
+    { "id": "ty", "value": "ත්‍ය්" },
+    { "id": "ṭr", "value": "ට්‍ර්" },
+    { "id": "ṭv", "value": "ට්‍ව්" },
+    { "id": "ṭy", "value": "ට්‍ය්" },
+    { "id": "ñh", "value": "ඤ‍්හ්" },
+    { "id": "ṇh", "value": "ණ‍්හ්" },
+    { "id": "nh", "value": "න‍්හ්" },
+    { "id": "mh", "value": "ම‍්හ්" },
+    { "id": "yh", "value": "ය‍්හ්" },
+    { "id": "ly", "value": "ල්‍ය්" },
+    { "id": "lh", "value": "ල‍්හ්" },
+    { "id": "vh", "value": "ව‍්හ්" },
+    { "id": "sm", "value": "ස‍්ම්" },
+    { "id": "sv", "value": "ස‍්ව්" },
+    { "id": "hm", "value": "හ‍්ම්" },
+    { "id": "hv", "value": "හ‍්ව්" },
+    { "id": "ḷh", "value": "ළ‍්හ්" },
+    { "id": "m", "value": "ම්" },
+    { "id": "n", "value": "න්" },
+    { "id": "ṅ", "value": "ඞ්" },
+    { "id": "ñ", "value": "ඤ්" },
+    { "id": "ṇ", "value": "ණ්" },
+    { "id": "b", "value": "බ්" },
+    { "id": "c", "value": "ච්" },
+    { "id": "d", "value": "ද්" },
+    { "id": "ḍ", "value": "ඩ්" },
+    { "id": "g", "value": "ග්" },
+    { "id": "j", "value": "ජ්" },
+    { "id": "k", "value": "ක්" },
+    { "id": "p", "value": "ප්" },
+    { "id": "t", "value": "ත්" },
+    { "id": "ṭ", "value": "ට්" },
+    { "id": "y", "value": "‍ය්" },
+    { "id": "r", "value": "‍ර්" },
+    { "id": "l", "value": "ල්" },
+    { "id": "v", "value": "ව්" },
+    { "id": "s", "value": "ස්" },
+    { "id": "h", "value": "හ්" },
+    { "id": "ḷ", "value": "ළ්" },
+    { "id": "්iṃ", "value": "ිං" },
+    { "id": "්uṃ", "value": "ුං" },
+    { "id": "්aṃ", "value": "ං" },
+    { "id": "්ā", "value": "ා" },
+    { "id": "්i", "value": "ි" },
+    { "id": "්ī", "value": "ී" },
+    { "id": "්u", "value": "ු" },
+    { "id": "්ū", "value": "ූ" },
+    { "id": "්e", "value": "ෙ" },
+    { "id": "්ē", "value": "ේ" },
+    { "id": "්o", "value": "ො" },
+    { "id": "්ō", "value": "ෝ" },
+    { "id": "්a", "value": "" },
+    { "id": "්", "value": "්" },
+    { "id": "aṃ", "value": "අං" },
+    { "id": "iṃ", "value": "ඉං" },
+    { "id": "uṃ", "value": "උං" },
+    { "id": "a", "value": "අ" },
+    { "id": "ā", "value": "ආ" },
+    { "id": "i", "value": "ඉ" },
+    { "id": "ī", "value": "ඊ" },
+    { "id": "u", "value": "උ" },
+    { "id": "ū", "value": "ඌ" },
+    { "id": "e", "value": "එ" },
+    { "id": "o", "value": "ඔ" },
+    { "id": "්අ", "value": "" }
 
 ];
-var cn_transplit=[
-"/;/g,';'",
-"/ /g,''",
-"/。/g,'。#'",
-"/;/g,';#'",
-"/?/g,'?#'",
-"/”“/g,'”#“'",
-"/’‘/g,'’#‘'",
-"/。#”/g,'。”#'",
-"/?#”/g,'?”#'",
-"/?“/g,'?#“'",
-"/:“/g,':#“'",
-"/:「/g,':#「'",
-"/!#’/g,'!’#'",
-"/。#’/g,'。’#'",
-"/?#’/g,'?’#'",
-"/?‘/g,'?#‘'",
-"/:‘/g,':#‘'",
-"/##/g,'#'"
+var cn_transplit = [
+    "/;/g,';'",
+    "/ /g,''",
+    "/。/g,'。#'",
+    "/;/g,';#'",
+    "/?/g,'?#'",
+    "/”“/g,'”#“'",
+    "/’‘/g,'’#‘'",
+    "/。#”/g,'。”#'",
+    "/?#”/g,'?”#'",
+    "/?“/g,'?#“'",
+    "/:“/g,':#“'",
+    "/:「/g,':#「'",
+    "/!#’/g,'!’#'",
+    "/。#’/g,'。’#'",
+    "/?#’/g,'?’#'",
+    "/?‘/g,'?#‘'",
+    "/:‘/g,':#‘'",
+    "/##/g,'#'"
 
 ];
-var en_transplit=[
-"/\./g,'\.#'",
-"/;/g,';'",
-"/;/g,';#'",
-"/\?/g,'?#'",
-"/\"\"/g,'”#“'",
-"/.\'\'/g,'.”'",
-"/.#\"/g,'.”#'",
-"/\?#\"/g,'?”#'",
-"/\?“/g,'?#“'",
-"/,\"/g,',#“'",
-"/!#\'/g,'!’#'",
-"/.#\'/g,'.’#'",
-"/?#’/g,'?’#'",
-"/?‘/g,'?#‘'",
-"/##/g,'#'"
+var en_transplit = [
+    "/\./g,'\.#'",
+    "/;/g,';'",
+    "/;/g,';#'",
+    "/\?/g,'?#'",
+    "/\"\"/g,'”#“'",
+    "/.\'\'/g,'.”'",
+    "/.#\"/g,'.”#'",
+    "/\?#\"/g,'?”#'",
+    "/\?“/g,'?#“'",
+    "/,\"/g,',#“'",
+    "/!#\'/g,'!’#'",
+    "/.#\'/g,'.’#'",
+    "/?#’/g,'?’#'",
+    "/?‘/g,'?#‘'",
+    "/##/g,'#'"
 ];
 

+ 213 - 0
documents/course/sadda_pan_goun.md

@@ -0,0 +1,213 @@
+# **Introduction to Thematic Units**(*Vākya & Vākyajotaka*)
+## **Introduction**
+There are two kinds of relations usually defined to analyze given Pali text, namely, *word-to-word* relations and *sentence-to-sentence* ones. The former is used to get the syntactic sense of a sentence and has been discussed in *Basic / Advanced Relational Grammar*. The latter is used to get the accurate picture of logical relations among sentences of a paragraph, a chapter or even a volume. This topic is an introduction to *sentence-to-sentence* relations.
+## **Thematic Unit** (*Vākya*)
+The Pali term *vākya* literally means "a sentence", i.e., a self-contained set of words, in which syntactic word-to-word relations can be properly defined without going out of the set. However, it means here an independent unit of content or subject matter, hence the term **thematic unit**. The **smallest thematic unit** is a **sentence** and each of them may combine to form larger ones --- with their extents ranging from **two or more sentences** up to **a whole paragraph or chapter**, or **even a whole volume**.
+## **Thematic Markers** (*Vākyajotaka*s)
+Many thematic units are marked by certain indeclinables, namely, *hi, ca,* or *pana*. They are usually placed **immediately after** the **initial words** of their respective sentences. In theory, they are similar to English conjunctions --- they are said to illuminate the thematic relations among *thematic units*. In practice, however, each of them is used to indicate almost all relations possible; it is almost impossible to rely on them when they are so overloaded.
+
+The actual process is rather the reverse. A thematic marker is only a signal that indicates the necessity to analyze the thematic relation of its HOST unit to the PREVIOUS one. After the analysis has been finished and the relation found out, that relation is used to make a reasonable translation of the marker itself.
+## **Essential Content** (*Piṇḍattha*)
+The term **essential content** is used in contrast with the *literal* content.
+
+For example, a simple sentence counting the Triple Gems as Buddha, Dhamma and Saṅgha is **literally different** from a whole chapter explaining them in detail one by one; but they are **essentially the same** in content. Why? Because the subject matter is the same, i.e., the Triple Gems.
+
+The **essential content** of a thematic unit is related to that of its **previous** or **following one** in one of following three ways:
+- a. Identity
+- b. Cause / effect (premise / conclusion)
+- c. ordinary connection.
+
+## **Types of Thematic Units**
+The type of a given **thematic unit** is defined in reference to its preceding and following ones. For instance, if a unit is an **elaboration** of the previous one but serves as one of **partial content** to the following one, it is termed as the unit of both elaboration and **partial content**. Accordingly, types of thematic units are usually given in pairs; in each pair, each member has its type defined in reference to another.
+
+Depending on the relation of their **essential contents**, they are divided into three classes.
+
+- A. Units of Identical Contents
+
+  1. Unit of [Summarized Content](# "saṅkhepa vākya") followed by Unit of [Elaborated Content](# "vitthāra vākya")
+  2. Unit of [Elaborated Content](# "vitthāra vākya") followed by Unit of [Summarized Content](# "saṅkhepa vākya") (the pair above reversed)
+  3. Unit of [Vague Content](# "apākaṭa vākya") followed by Unit of [Illuminated Content](# "tappākaṭīkaraṇa vākya")
+  4. Unit of [Doubtful Content](# "daḷhiya vākya待定") followed by Unit of [Confirming Content](# "daḷhīkaraṇa vākya确定")
+  5. Unit of [Main Content](# "nigamanīya vākya") followed by Unit of [Concluding Content](# "nigamana vākya")
+- B. Units of Cause and Effect
+ 
+  1. Unit of [Premise (Cause)](# "kāraṇa vākya") followed by Unit of [Conclusion (Effect)](# "phala vākya")
+  2. Unit of [Conclusion (Effect)](# "phala vākya") followed by Unit of [Premise (Cause)](# "kāraṇa vākya") (the pair above reversed)
+  3. Unit of [Confirmable Content](# "yutti vākya") followed by Unit of [Convincing Implication](# "laddhaguṇa vākya")
+  4. Unit of [Disputable Content](# "ayutti vākya") followed by Unit of [Destructive Implication](# "laddhadosa vākya")
+- C. Units of Ordinary Connection
+
+  1.   Unit of [Partial Content](# "āraddha vākya") followed by Unit of [Continued Supplement](# "upanyāsa vākya")
+  2.   Unit of [Partial Content](# "āraddha vākya") followed by Unit of [Resumed Supplement](# "vākyārambha vākya")
+  3.   Unit of [General Content](# "sāmañña vākya") followed by Unit of [Particular Content](# "visesa vākya")
+  4.   Unit of [Particular Content](# "visesa vākya") followed by Unit of [General Content](# "sāmañña vākya") (the pair above reversed)
+  5.  Unit of [Affirmative Content](# "anvaya vākya") followed by Unit of [Negative Content](# "byatireka vākya")
+  6.  Unit of [Negative Content](# "byatireka vākya") followed by Unit of [Affirmative Content](# "anvaya vākya") (the pair above reversed)
+  7.  Unit of [Disapproved Content](# "garahā vākya") followed by Unit of [Commended Content](# "sambhāvanā vākya")
+  8.  Unit of [Commended Content](# "sambhāvanā vākya") followed by Unit of [Disapproved Content](# "garahā vākya") (the pair above reversed)
+  9.  Unit of [Previous Theme](# "pakkha vākya") followed by Unit of [Next Theme](# "pakkhantara vākya")
+
+## **Usage of Thematic Markers**
+1. All three markers, i.e., *hi*, *ca*, *pana*, can be placed in the **respective subsequent units** of all pairs **except the last three** to illuminate the relation of the **host** unit to the **previous** one.
+2. Only *pana* can be used with the **subsequent** units of the **last three**, that is, with those of the 16th, 17th, and 18th.
+
+## **Examples and Explanations of Thematic Units**
+**Note:** In each example below, a potential thematic marker is marked as (**T.M**) and placed as the second word in the subsequent unit. And its translation is also given.
+
+## 1. [**Unit of Summarized Content** *followed by* **Unit of Elaborated Content**](# "saṅkhepavākya - vitthāravākya")
+
+E.g.
+
+1. 
+   - A. The couple lived at Sarnath.
+   - B. Sarnath (**T.M**) is a small village near Benares, a town in the Northeastern part of India. It was known as *Migadāya* at the time of the Buddha. It was there that the Buddha preached Dhammacakkapavattana Sutta, etc., etc.
+
+        (**T.M**) = " to elaborate OR to give details"
+* The following unit B is a Unit of Elaboration with reference to A, for it is an elaboration of the word *Sarnath* mentioned in A.
+Accordingly, A is termed a Unit of Summarized Content with reference to B.
+1. 
+   - A. The whole family is busy.
+   - B. Father (**T.M**) is mowing the lawn. Mother is preparing the dinner. The son is sweeping the floor. The daughter is cleaning the cupboard.
+   
+        (**T.M**) = the same as above
+* The following unit B is a Unit of Elaboration with reference to A, for it is an elaboration of the working of the family mentioned in A.
+
+    Accordingly, A is termed a Unit of Summarized Content with reference to B.
+
+## 2. [**Unit of Elaborated Content** *followed by* **Unit of Summarized Content**](# "vitthāravākya - saṅkhepavākya")
+E.g. 
+- A. The members of our group are John (a soldier), Robert (a programmer),
+Mary (a housewife) . . . George (a student).
+- B. We (**T.M**) have altogether 15 members of various professions and pursuits.
+
+    (**T.M**) = " to sum up, to summarize"
+* The following unit B is a Unit of Summarized Content with reference to A, for it is a summary of the description, given in A, of group members.
+
+    Accordingly, A is termed a Unit of Elaborated Content with reference to B.
+
+## 3. [**Unit of Vague Content** *followed by* **Unit of Illuminated Content**](# "apākaṭavākya - tappākaṭīkaraṇavākya")
+E.g. 
+- A. The couple came to town.
+- B. Just (**T.M**) as birds come to a tree full of fruits for a good meal, they moved to town hoping for an easy and happy life.
+
+    (**T.M**) = " to explain OR to make lucid"
+* The following unit B is a Unit of Illuminated Content with reference to A, for it is an explanation of how that couple moved to town.
+
+    Accordingly, A is termed a Unit of Vague Content with reference to B.
+-----------------------
+    Note: a simply exhaustive account is termed a Unit of Elaborated Content whereas the one given using similes or reasoning is called a Unit of Illuminated Content.
+-----------------------
+
+## 4. [**Unit of Doubtful Content** *followed by* **Unit of Confirming Content**](# "daḷhiyavākya - daḷhīkaraṇavākya")
+E.g. 
+
+1. 
+   - A. He would have passed the examination if he really wished to do so.
+   - B. The (**T.M**) saying goes, " When there’s a will, there’s a way."
+
+        (**T.M**) = " it is true"
+
+    The following unit B is a Unit of Confirming Content with reference to A, for it quotes a popular proverb to confirm the prospect of passing the examination.
+
+    Accordingly, A is termed a Unit of Doubtful Content with reference to B.
+2. 
+   - A. He really wishes to pass the examination.
+   - B. Even (**T.M**) in his sleep, he is dreaming of his lessons.
+   - (The translation of the thematic marker is the same as above)
+
+    The following unit B is a Unit of Confirming Content with reference to A, for it gives the circumstantial evidence to confirm that he really "wills" to pass the examination.
+
+    Accordingly, A is termed a Unit of Doubtful Content with reference to B.
+
+## 5. [**Unit of Main Content** *followed by* **Unit of Concluding Content**](# "nigamanīyavākya - nigamanavākya")
+
+This pair is similar to that of [**Unit of Elaborated Content** *followed by* **Unit of Summarized Content**](# "vitthāravākya - saṅkhepavākya") but the **concluding part** of a topic or chapter or even a whole book is termed **Unit of Concluding Content** while the rest of the topic, etc. is labeled **Unit of Main Content**.
+
+## 6. [**Unit of Premise (Cause)** *followed by* **Unit of Conclusion (Effect)**](# "kāraṇavākya - phalavākya")
+E.g. 
+
+1. 
+   - A. Smoke is seen on the mountain.
+   - B. Fire (**T.M**) is on the mountain.
+
+       (**T.M**) = " Therefore it is known that"
+
+    The following unit B is a Unit of **Conclusion** with reference to A, for it is the conclusion of the **premise** given in A, i.e., "smoke being seen" .
+
+    Accordingly, A is termed a Unit of Premise with reference to B.
+2. 
+   - A. A fire started to burn in the forest.
+   - B. Billows (**T.M**) of smoke rose into the sky.
+
+       (**T.M**) = " Therefore"
+
+    The following unit B is a Unit of Effect with reference to A, for it is the **effect** of the **cause** given in A, i.e., " a fire burning in the forest".
+
+    Accordingly, A is termed a Unit of Cause with reference to B.
+
+## 7. [**Unit of Conclusion (Effect)** *followed by* **Unit of Premise (Cause)**](# "phalavākya - kāraṇavākya")
+
+E.g. 
+
+1. 
+   - A. Fire is on the mountain.
+   - B. Smoke (**T.M**) is seen on the mountain.
+
+        (**T.M**) = " It is known because"
+
+The following unit B is a Unit of Premise with reference to A, for it is the premise of the conclusion given in A, i.e., "Fire being on the mountain" .
+
+Accordingly, A is termed a Unit of Conclusion with reference to B.
+
+2. 
+   - A. Billows of smoke rose into the sky.
+   - B. A fire (**T.M**) started to burn in the forest.
+   (**T.M**) = " Because"
+
+The following unit B is a Unit of Cause with reference to A, for it is the cause of the effect given in A, i.e., " Smoke rising into the sky".
+
+Accordingly, A is termed a Unit of Effect with reference to B.
+
+## 8. [**Unit of Confirmable Content** *followed by* **Unit of Convincing Implication**](# "yuttivākya - laddhaguṇavākya")
+
+E.g. 
+  - A. They said that only one-third of the committee turned up for the meeting.
+  - B. It (**T.M**) would be a reflection of the fact that the majority of committee members were against the new leader.
+
+    (**T.M**) = " It would imply that OR Thus"
+
+The following unit B is a Unit of Convincing Implication with reference to A, for it gives the sense **which is implied provided** the fact given in **A is confirmed**, i.e., "If the majority of committee members were absent at the meeting" . (Note that B is an **indirect verification** of A)
+
+Accordingly, A is termed a Unit of Confirmable Content with reference to B.
+
+---------------
+**Note on different opinions**:
+
+A given unit is labeled a **Unit of Convincing Implication if**:
+- a. It is an **effect (conclusion)** of another unit, which is **itself the effect (conclusion)** of still another OR
+- b. It is a unit of **effect (conclusion)** that precedes its unit of **cause (premise)** —— it implies that a unit of **effect (conclusion)** is termed so only if it follows its respective unit of **cause (premise)**.
+--------------------
+
+## 9. [**Unit of Disputable Content** *followed by* **Unit of Destructive Implication**](# "ayuttivākya - laddhadosavākya")
+E.g. 
+
+1. 
+   - A. The subject is said to be too boring for students.
+   - B. If (**T.M**) it were really so, no one would attend the lecture. But the lecture-hall is full every day.
+
+       (**T.M**) = " The blame here is"
+
+The following unit B is a Unit of Destructive Implication with reference to A, for it gives the improbable content implied provided the fact given in A is confirmed, i.e.,
+"If the subject is a bore" . (Note that B is an indirect negation of A)
+
+Accordingly, A is termed a Unit of Disputable Content with reference to B.
+
+OR . 
+- A. The subject is not boring.
+- B. Otherwise, (T.M) there would be no one in the class.
+(The translation of the thematic marker is the same as above)
+The following unit B is a Unit of Destructive Implication with reference to A, for it
+gives the improbable content implied if the fact given in A is refuted, i.e., "If the
+subject is boring" . (Note that here B is an indirect confirmation of A and that certain
+words meaning " otherwise", i.e., itarathā, aññathā, are typical of such units)
+Accordingly, A is termed a Unit of Disputable Content with reference to B.