private static string GetHumanSpeakNotesForText(string textToSave)
        {
            TaggedText taggedText = new TaggedText(textToSave);
            string     strToSpeak = taggedText.ToPrettyString();

            return(strToSpeak);
        }
Beispiel #2
0
        public void RemoveTagsFromText()
        {
            const string expected = "This has some tags in it.";

            var t      = new TaggedText(SentenceWithTags);
            var actual = t.ToPrettyString();

            Assert.AreEqual(expected, actual, "Didn't remove tags properly.");
        }
        public void RemoveTagsFromText()
        {
            const string expected = "This has some tags in it.";

            var t = new TaggedText(SentenceWithTags);
            var actual = t.ToPrettyString();

            Assert.AreEqual(expected, actual, "Didn't remove tags properly.");
        }
        private static List <string> ConvertSectionsToCaptions(IEnumerable <string> separatedNotes)
        {
            List <String> captionCollection = new List <string>();

            foreach (string text in separatedNotes)
            {
                TaggedText section        = new TaggedText(text);
                String     currentCaption = section.ToPrettyString();
                captionCollection.Add(currentCaption);
            }
            return(captionCollection);
        }