mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[QuickAccent]Support the Hebrew character set (#22712)
Co-authored-by: אביתר אסתרסון <79063413+EvyatarEsterson@users.noreply.github.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
@@ -21,6 +21,7 @@ namespace PowerAccent.Core
|
||||
EST,
|
||||
FR,
|
||||
HR,
|
||||
HE,
|
||||
HU,
|
||||
IS,
|
||||
IT,
|
||||
@@ -56,6 +57,7 @@ namespace PowerAccent.Core
|
||||
Language.EST => GetDefaultLetterKeyEST(letter), // Estonian
|
||||
Language.FR => GetDefaultLetterKeyFR(letter), // French
|
||||
Language.HR => GetDefaultLetterKeyHR(letter), // Croatian
|
||||
Language.HE => GetDefaultLetterKeyHE(letter), // Hebrew
|
||||
Language.HU => GetDefaultLetterKeyHU(letter), // Hungarian
|
||||
Language.IS => GetDefaultLetterKeyIS(letter), // Iceland
|
||||
Language.IT => GetDefaultLetterKeyIT(letter), // Italian
|
||||
@@ -448,6 +450,21 @@ namespace PowerAccent.Core
|
||||
};
|
||||
}
|
||||
|
||||
// Hebrew
|
||||
private static string[] GetDefaultLetterKeyHE(LetterKey letter)
|
||||
{
|
||||
return letter switch
|
||||
{
|
||||
LetterKey.VK_A => new string[] { "שׂ", "שׁ" },
|
||||
LetterKey.VK_G => new string[] { "ױ" },
|
||||
LetterKey.VK_H => new string[] { "ײ" },
|
||||
LetterKey.VK_U => new string[] { "וֹ", "וּ" },
|
||||
LetterKey.VK_Y => new string[] { "װ" },
|
||||
LetterKey.VK_COMMA => new string[] { "”", "״", "־", "–", "֫", "ֽ", "ֿ" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
// Hungarian
|
||||
private static string[] GetDefaultLetterKeyHU(LetterKey letter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user