mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
[QuickAccent]Add Proto-Indo-European (#36408)
* Add ḱ to PowerAccent for Proto-Indo-European * Fix Spelling Check * Add more letters to PIE * Order PIE after PI --------- Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
@@ -39,6 +39,7 @@ namespace PowerAccent.Core
|
||||
NL,
|
||||
NO,
|
||||
PI,
|
||||
PIE,
|
||||
PL,
|
||||
PT,
|
||||
RO,
|
||||
@@ -100,6 +101,7 @@ namespace PowerAccent.Core
|
||||
Language.NL => GetDefaultLetterKeyNL(letter), // Dutch
|
||||
Language.NO => GetDefaultLetterKeyNO(letter), // Norwegian
|
||||
Language.PI => GetDefaultLetterKeyPI(letter), // Pinyin
|
||||
Language.PIE => GetDefaultLetterKeyPIE(letter), // Proto-Indo-European
|
||||
Language.PL => GetDefaultLetterKeyPL(letter), // Polish
|
||||
Language.PT => GetDefaultLetterKeyPT(letter), // Portuguese
|
||||
Language.RO => GetDefaultLetterKeyRO(letter), // Romanian
|
||||
@@ -155,6 +157,7 @@ namespace PowerAccent.Core
|
||||
.Union(GetDefaultLetterKeyNL(letter))
|
||||
.Union(GetDefaultLetterKeyNO(letter))
|
||||
.Union(GetDefaultLetterKeyPI(letter))
|
||||
.Union(GetDefaultLetterKeyPIE(letter))
|
||||
.Union(GetDefaultLetterKeyPL(letter))
|
||||
.Union(GetDefaultLetterKeyPT(letter))
|
||||
.Union(GetDefaultLetterKeyRO(letter))
|
||||
@@ -463,6 +466,24 @@ namespace PowerAccent.Core
|
||||
};
|
||||
}
|
||||
|
||||
// Proto-Indo-European
|
||||
private static string[] GetDefaultLetterKeyPIE(LetterKey letter)
|
||||
{
|
||||
return letter switch
|
||||
{
|
||||
LetterKey.VK_A => new[] { "ā" },
|
||||
LetterKey.VK_E => new[] { "ē" },
|
||||
LetterKey.VK_O => new[] { "ō" },
|
||||
LetterKey.VK_K => new[] { "ḱ" },
|
||||
LetterKey.VK_G => new[] { "ǵ" },
|
||||
LetterKey.VK_R => new[] { "r̥" },
|
||||
LetterKey.VK_L => new[] { "l̥" },
|
||||
LetterKey.VK_M => new[] { "m̥" },
|
||||
LetterKey.VK_N => new[] { "n̥" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
// Turkish
|
||||
private static string[] GetDefaultLetterKeyTK(LetterKey letter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user