ADBaseLibrary.Subtitles.TTML.ParagraphToAss C# (CSharp) Method

ParagraphToAss() private method

private ParagraphToAss ( string>.Dictionary styles, P p ) : string
styles string>.Dictionary
p P
return string
        private string ParagraphToAss(Dictionary<string, string> styles, P p)
        {
            StringBuilder bld=new StringBuilder();
            string style = "1";
            if (p.Style != null)
            {
                if (styles.ContainsKey(p.Style))
                    style = p.Style;
            }
            bld.Append("Dialogue: 0,");
            bld.Append(p.Begin.Substring(1,p.Begin.Length-2));
            bld.Append(",");
            bld.Append(p.End.Substring(1,p.End.Length-2));
            bld.Append(",Style");
            bld.Append(style);
            bld.Append(",,0,0,0,,");
            bld.Append(string.Join("", ProcessParagraph(styles, style, p.Text.Trim())));
            return bld.ToString();
        }