Example #1
0
        static public List <Phoneme> ConvertStringToPhoneList(string text, Langer L)
        {
            List <Phoneme> word = new List <Phoneme>();

            //First convert the text whose phones should be delenated by spaces into an array of strings.
            string[] Phones = text.Split(' ');

            //Iterate over the strings and use the Langer to get the appriopriote Phoneme.
            foreach (string s in Phones)
            {
                //Add the return Phoneme to the list.
                word.Add(L.FindPhonemeByIPA(s));
            }

            //Now return the final list.
            return(word);
        }
Example #2
0
 //Hey dont forget, the Langer object exist at the application level.
 public MainWindow(Logic.Langer L)
 {
     RefLanger = L;
     InitializeComponent();
     mainFrame.Navigate(new Pages.LanguagePage(L));
 }