mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-29 13:37:43 +00:00
[QuickAccent] Add International Phonetic Alphabet characters (#33104)
* Add IPA, everything done except ʡ ʔ ʕ ʢ * VK_COMMA * Add comment
This commit is contained in:
parent
4badf2d24a
commit
a80896d51b
@ -28,6 +28,7 @@ namespace PowerAccent.Core
|
|||||||
HE,
|
HE,
|
||||||
HU,
|
HU,
|
||||||
IS,
|
IS,
|
||||||
|
IPA,
|
||||||
IT,
|
IT,
|
||||||
KU,
|
KU,
|
||||||
LT,
|
LT,
|
||||||
@ -72,6 +73,7 @@ namespace PowerAccent.Core
|
|||||||
Language.HE => GetDefaultLetterKeyHE(letter), // Hebrew
|
Language.HE => GetDefaultLetterKeyHE(letter), // Hebrew
|
||||||
Language.HU => GetDefaultLetterKeyHU(letter), // Hungarian
|
Language.HU => GetDefaultLetterKeyHU(letter), // Hungarian
|
||||||
Language.IS => GetDefaultLetterKeyIS(letter), // Iceland
|
Language.IS => GetDefaultLetterKeyIS(letter), // Iceland
|
||||||
|
Language.IPA => GetDefaultLetterKeyIPA(letter), // IPA (International phonetic alphabet)
|
||||||
Language.IT => GetDefaultLetterKeyIT(letter), // Italian
|
Language.IT => GetDefaultLetterKeyIT(letter), // Italian
|
||||||
Language.KU => GetDefaultLetterKeyKU(letter), // Kurdish
|
Language.KU => GetDefaultLetterKeyKU(letter), // Kurdish
|
||||||
Language.LT => GetDefaultLetterKeyLT(letter), // Lithuanian
|
Language.LT => GetDefaultLetterKeyLT(letter), // Lithuanian
|
||||||
@ -119,6 +121,7 @@ namespace PowerAccent.Core
|
|||||||
.Union(GetDefaultLetterKeyHE(letter))
|
.Union(GetDefaultLetterKeyHE(letter))
|
||||||
.Union(GetDefaultLetterKeyHU(letter))
|
.Union(GetDefaultLetterKeyHU(letter))
|
||||||
.Union(GetDefaultLetterKeyIS(letter))
|
.Union(GetDefaultLetterKeyIS(letter))
|
||||||
|
.Union(GetDefaultLetterKeyIPA(letter))
|
||||||
.Union(GetDefaultLetterKeyIT(letter))
|
.Union(GetDefaultLetterKeyIT(letter))
|
||||||
.Union(GetDefaultLetterKeyKU(letter))
|
.Union(GetDefaultLetterKeyKU(letter))
|
||||||
.Union(GetDefaultLetterKeyLT(letter))
|
.Union(GetDefaultLetterKeyLT(letter))
|
||||||
@ -792,5 +795,33 @@ namespace PowerAccent.Core
|
|||||||
_ => Array.Empty<string>(),
|
_ => Array.Empty<string>(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IPA (International Phonetic Alphabet)
|
||||||
|
private static string[] GetDefaultLetterKeyIPA(LetterKey letter)
|
||||||
|
{
|
||||||
|
return letter switch
|
||||||
|
{
|
||||||
|
LetterKey.VK_A => new[] { "ɐ", "ɑ", "ɒ" },
|
||||||
|
LetterKey.VK_B => new[] { "ʙ" },
|
||||||
|
LetterKey.VK_E => new[] { "ɘ", "ɵ", "ə", "ɛ", "ɜ", "ɞ" },
|
||||||
|
LetterKey.VK_F => new[] { "ɟ", "ɸ" },
|
||||||
|
LetterKey.VK_G => new[] { "ɢ", "ɣ" },
|
||||||
|
LetterKey.VK_H => new[] { "ɦ", "ʜ" },
|
||||||
|
LetterKey.VK_I => new[] { "ɨ", "ɪ" },
|
||||||
|
LetterKey.VK_J => new[] { "ʝ" },
|
||||||
|
LetterKey.VK_L => new[] { "ɬ", "ɮ", "ꞎ", "ɭ", "ʎ", "ʟ", "ɺ" },
|
||||||
|
LetterKey.VK_N => new[] { "ɳ", "ɲ", "ŋ", "ɴ" },
|
||||||
|
LetterKey.VK_O => new[] { "ɤ", "ɔ", "ɶ" },
|
||||||
|
LetterKey.VK_R => new[] { "ʁ", "ɹ", "ɻ", "ɾ", "ɽ", "ʀ" },
|
||||||
|
LetterKey.VK_S => new[] { "ʃ", "ʂ", "ɕ" },
|
||||||
|
LetterKey.VK_U => new[] { "ʉ", "ʊ" },
|
||||||
|
LetterKey.VK_V => new[] { "ʋ", "ⱱ", "ʌ" },
|
||||||
|
LetterKey.VK_W => new[] { "ɰ", "ɯ" },
|
||||||
|
LetterKey.VK_Y => new[] { "ʏ" },
|
||||||
|
LetterKey.VK_Z => new[] { "ʒ", "ʐ", "ʑ" },
|
||||||
|
LetterKey.VK_COMMA => new[] { "ʡ", "ʔ", "ʕ", "ʢ" },
|
||||||
|
_ => Array.Empty<string>(),
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hebrew" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hebrew" />
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian" />
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic" />
|
||||||
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_IPA" />
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian" />
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Kurdish" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Kurdish" />
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Lithuanian" />
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Lithuanian" />
|
||||||
|
@ -3491,6 +3491,10 @@ Activate by holding the key for the character you want to add an accent to, then
|
|||||||
<data name="QuickAccent_SelectedLanguage_Esperanto.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Esperanto.Content" xml:space="preserve">
|
||||||
<value>Esperanto</value>
|
<value>Esperanto</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="QuickAccent_SelectedLanguage_IPA.Content" xml:space="preserve">
|
||||||
|
<value>IPA</value>
|
||||||
|
<comment>International Phonetic Alphabet</comment>
|
||||||
|
</data>
|
||||||
<data name="QuickAccent_SelectedLanguage_Lithuanian.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Lithuanian.Content" xml:space="preserve">
|
||||||
<value>Lithuanian</value>
|
<value>Lithuanian</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -42,6 +42,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
"HE",
|
"HE",
|
||||||
"HU",
|
"HU",
|
||||||
"IS",
|
"IS",
|
||||||
|
"IPA",
|
||||||
"IT",
|
"IT",
|
||||||
"KU",
|
"KU",
|
||||||
"LT",
|
"LT",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user