mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[QuickAccent]Add Crimean Tatar character set (#32862)
* Update Languages.cs Add Crimean Tatar Language * Update PowerAccentPage.xaml Add Crimean Tatar language * Update PowerAccentViewModel.cs Add Crimean Tatar language * Update Resources.resw Add Crimean Tatar language * Update Languages.cs Add Crimean Tatar language * Update expect.txt Add "CHR" to spellcheker false positives (ISO code for Crimean Tatar language) * Update expect.txt Add "CRH" to spellcheker false positives (ISO code for Crimean Tatar language) * Update Languages.cs * Update src/modules/poweraccent/PowerAccent.Core/Languages.cs Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com> --------- Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
This commit is contained in:
@@ -11,6 +11,7 @@ namespace PowerAccent.Core
|
||||
{
|
||||
ALL,
|
||||
CA,
|
||||
CRH,
|
||||
CUR,
|
||||
CY,
|
||||
CZ,
|
||||
@@ -54,6 +55,7 @@ namespace PowerAccent.Core
|
||||
{
|
||||
Language.ALL => GetDefaultLetterKeyALL(letter), // ALL
|
||||
Language.CA => GetDefaultLetterKeyCA(letter), // Catalan
|
||||
Language.CRH => GetDefaultLetterKeyCRH(letter), // Crimean Tatar
|
||||
Language.CUR => GetDefaultLetterKeyCUR(letter), // Currency
|
||||
Language.CY => GetDefaultLetterKeyCY(letter), // Welsh
|
||||
Language.CZ => GetDefaultLetterKeyCZ(letter), // Czech
|
||||
@@ -100,6 +102,7 @@ namespace PowerAccent.Core
|
||||
if (!_allLanguagesCache.TryGetValue(letter, out string[] cachedValue))
|
||||
{
|
||||
cachedValue = GetDefaultLetterKeyCA(letter)
|
||||
.Union(GetDefaultLetterKeyCRH(letter))
|
||||
.Union(GetDefaultLetterKeyCUR(letter))
|
||||
.Union(GetDefaultLetterKeyCY(letter))
|
||||
.Union(GetDefaultLetterKeyCZ(letter))
|
||||
@@ -192,6 +195,26 @@ namespace PowerAccent.Core
|
||||
};
|
||||
}
|
||||
|
||||
// Crimean Tatar
|
||||
private static string[] GetDefaultLetterKeyCRH(LetterKey letter)
|
||||
{
|
||||
return letter switch
|
||||
{
|
||||
LetterKey.VK_A => new[] { "â" },
|
||||
LetterKey.VK_C => new[] { "ç" },
|
||||
LetterKey.VK_E => new[] { "€" },
|
||||
LetterKey.VK_G => new[] { "ğ" },
|
||||
LetterKey.VK_H => new[] { "₴" },
|
||||
LetterKey.VK_I => new[] { "ı", "İ" },
|
||||
LetterKey.VK_N => new[] { "ñ" },
|
||||
LetterKey.VK_O => new[] { "ö" },
|
||||
LetterKey.VK_S => new[] { "ş" },
|
||||
LetterKey.VK_T => new[] { "₺" },
|
||||
LetterKey.VK_U => new[] { "ü" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
// Currencies (source: https://www.eurochange.co.uk/travel-money/world-currency-abbreviations-symbols-and-codes-travel-money)
|
||||
private static string[] GetDefaultLetterKeyCUR(LetterKey letter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user