mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 16:33:05 +08:00
[QuickAccent] Add accents for Kurdish language (#22297)
This commit is contained in:
parent
0b1bac1f4a
commit
5f4514a88e
@ -20,6 +20,7 @@ namespace PowerAccent.Core
|
||||
HU,
|
||||
IS,
|
||||
IT,
|
||||
KU,
|
||||
MI,
|
||||
NL,
|
||||
PI,
|
||||
@ -49,6 +50,7 @@ namespace PowerAccent.Core
|
||||
case Language.HU: return GetDefaultLetterKeyHU(letter); // Hungarian
|
||||
case Language.IS: return GetDefaultLetterKeyIS(letter); // Iceland
|
||||
case Language.IT: return GetDefaultLetterKeyIT(letter); // Italian
|
||||
case Language.KU: return GetDefaultLetterKeyKU(letter); // Kurdish
|
||||
case Language.MI: return GetDefaultLetterKeyMI(letter); // Maori
|
||||
case Language.NL: return GetDefaultLetterKeyNL(letter); // Dutch
|
||||
case Language.PI: return GetDefaultLetterKeyPI(letter); // Pinyin
|
||||
@ -640,6 +642,34 @@ namespace PowerAccent.Core
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
|
||||
// Kurdish
|
||||
private static string[] GetDefaultLetterKeyKU(LetterKey letter)
|
||||
{
|
||||
switch (letter)
|
||||
{
|
||||
case LetterKey.VK_C:
|
||||
return new string[] { "ç" };
|
||||
case LetterKey.VK_E:
|
||||
return new string[] { "ê", "€" };
|
||||
case LetterKey.VK_I:
|
||||
return new string[] { "î" };
|
||||
case LetterKey.VK_O:
|
||||
return new string[] { "ö", "ô" };
|
||||
case LetterKey.VK_L:
|
||||
return new string[] { "ł" };
|
||||
case LetterKey.VK_N:
|
||||
return new string[] { "ň" };
|
||||
case LetterKey.VK_R:
|
||||
return new string[] { "ř" };
|
||||
case LetterKey.VK_S:
|
||||
return new string[] { "ş" };
|
||||
case LetterKey.VK_U:
|
||||
return new string[] { "û", "ü" };
|
||||
}
|
||||
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
|
||||
// Welsh
|
||||
private static string[] GetDefaultLetterKeyCY(LetterKey letter)
|
||||
{
|
||||
|
@ -2606,6 +2606,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
||||
<data name="QuickAccent_SelectedLanguage_Italian.Content" xml:space="preserve">
|
||||
<value>Italian</value>
|
||||
</data>
|
||||
<data name="QuickAccent_SelectedLanguage_Kurdish.Content" xml:space="preserve">
|
||||
<value>Kurdish</value>
|
||||
</data>
|
||||
<data name="QuickAccent_SelectedLanguage_Welsh.Content" xml:space="preserve">
|
||||
<value>Welsh</value>
|
||||
</data>
|
||||
|
@ -34,6 +34,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
"HU",
|
||||
"IS",
|
||||
"IT",
|
||||
"KU",
|
||||
"MI",
|
||||
"PI",
|
||||
"PL",
|
||||
|
@ -71,6 +71,7 @@
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Kurdish" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Maori" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Pinyin" />
|
||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Polish" />
|
||||
|
Loading…
Reference in New Issue
Block a user