damienleroy / PowerAccent

Easily create accented letters with all type of keyboard (QWERTY, AZERTY, others...)
MIT License
123 stars 21 forks source link

Code snippet: Add Support for Bulgarian (български) 🇧🇬 #114

Open aneff-official opened 1 year ago

aneff-official commented 1 year ago

[ Bulgarian / 🇧🇬 ]

alt text

Good day, @damienleroy ! :wave:

I just happened to notice Quick Accent in PowerToys today and I was wondering if support for my native language could be added? I only need one accent, but I could help with mapping the whole alphabet, if need be.

Unsure if there are many more special characters, but the ones I really use often are mapped to the letter "I" (i):

Capital - Ѝ Lowercase - ѝ

Characters

A quick search brings these results for a character table.

Example in C#

Following example from Languages.cs

    // Bulgarian
    // Alphabet: "АаБбВвГгДдЕеЖжЗзИиЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЪъьЮюЯя"
    private static char[] GetDefaultLetterKeyBG(LetterKey letter)
    {
        switch (letter)
        {
            // There could be more cases ?
            case LetterKey.I:
                return new char[] { 'ѝ', 'Ѝ' };
        }

        return Array.Empty<char>();
    }

Best regards, Chris

aneff-official commented 1 year ago

Linked to PR: #123

aneff-official commented 1 year ago

Bump