private void DoSyllabicStructureForAll()
        {
            List <string> lstDatalistPh2 = new List <string>();


            foreach (string str in NormalOrParsedText.Split(' '))
            {
                if (!string.IsNullOrEmpty(str) && !lstDatalistPh2.Contains(str))
                {
                    lstDatalistPh2.Add(str.Trim());
                }
            }



            DataTable dtData = new DataTable();

            dtData.Columns.Add("சொல்");
            dtData.Columns.Add("ஒலியசை அமைப்பு");
            PhonemicRules  objRules  = new PhonemicRules();
            SyllabicOutput objOutput = new SyllabicOutput();

            foreach (string word in lstDatalistPh2)
            {
                objOutput = objRules.CreateSyllables(word.Trim());
                if (objOutput.lstSyllables != null && objOutput.lstSyllables.Count > 0)
                {
                    string syllabText = string.Empty;
                    foreach (string syllab in objOutput.lstSyllables)
                    {
                        if (string.IsNullOrEmpty(syllabText))
                        {
                            syllabText = syllab;
                        }
                        else
                        {
                            syllabText = syllabText + "---" + syllab;
                        }
                    }
                    dtData.Rows.Add(word, syllabText);
                }
            }

            dataGridViewSyllable.DataSource       = dtData;
            dataGridViewSyllable.Columns[0].Width = 150;
            dataGridViewSyllable.Columns[1].Width = 550;
        }
        private void dataGridViewSyllable_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row       = new DataGridViewRow();
            PhonemicRules   objRules  = new PhonemicRules();
            SyllabicOutput  objOutput = new SyllabicOutput();

            string FinalOutput = string.Empty;

            int i = e.RowIndex;

            if (i != -1)
            {
                row = dataGridViewSyllable.Rows[i];
                string Word = row.Cells[0].Value.ToString();

                objOutput = objRules.CreateSyllables(Word);
                if (objOutput.lstSyllables != null)
                {
                    FinalOutput = FormatSyllables(objOutput);
                }

                rtbPh2.Text = FinalOutput;
            }
        }