How to get a special algorithm so that the capital and simple letters have the same value.
Example -
Ā -> Aa
- ā -> aa
- Č -> Ch
- č -> ch
public static readonly Dictionary<string, string> dict = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
{
{"Ā", "Aa"},
{"Č", "Ch"},
{"Ē", "Ee"},
{"Ī", "Ii"},
{"Š", "Sh"},
{"Ū", "Uu"},
{"Ž", "Zh"}
};
Ignore case
string inputText = Console.ReadLine();
foreach (var item in dict)
{
inputText = inputText.Replace(item.Key, item.Value);
}