Пример #1
0
 public static string NormalizeSongText(string text, SongTextAnalyseProperties props)
 {
     text = RunReplacements(text, props);
     text = text.Replace("[:", "/:").Replace(":]", ":/");
     if (props.CutHtml) text = CutHtml(text);
     if (props.ConvertChords) text = ConvertChords(text);
     if (props.ConvertLabels) text = ConvertLabels(text);
     return text;
 }
Пример #2
0
 public static string RunReplacements(string text, SongTextAnalyseProperties props)
 {
     foreach (ReplacementProperties repl in props.Replacements)
     {
         text = repl.Run(text);
     }
     return text;
 }