var dictionary = new Dictionary<string, string>()
{
{"что", ", что"},
{"а", ", а"}
};
string text = project.ExecuteMacro(project.Variables["tekst"].Value);
foreach(var item in dictionary)
{
text = Macros.TextProcessing.Replace(text, item.Key, item.Value, "Text", "All")...