static void AddEmoji(EmojiDescription description) { foreach (var utf32 in description.Utf32s) { _emojis.Add(utf32, description); } }
static void InsertSound(StringBuilder ssmlBuilder, EmojiDescription description) { ssmlBuilder.Append($"<mark name='{description.VisualString}'/>"); if (description.AudioFileName != null) { ssmlBuilder.Append($"<audio src='{description.AudioFileName}'/>"); } }
static void AddEmoji(int utf32, string audioFileName, string visualString) { var path = audioFileName != null?Path.Combine(Prefix, Theme + '_' + audioFileName + Suffix) : null; var description = new EmojiDescription(utf32, path, visualString); AddEmoji(description); }