From 0d5da126319336494b918d94374fbeaf6fdc8ec7 Mon Sep 17 00:00:00 2001 From: Damien LEROY Date: Wed, 5 Oct 2022 23:10:32 +0200 Subject: [PATCH] Add Netherlands --- PowerAccent.Core/Languages.cs | 26 ++++++++++++++++++++++++++ PowerAccent.UI/PowerAccent.UI.csproj | 2 ++ PowerAccent.UI/Resources/Flags/NL.jpg | Bin 0 -> 57034 bytes 3 files changed, 28 insertions(+) create mode 100644 PowerAccent.UI/Resources/Flags/NL.jpg diff --git a/PowerAccent.Core/Languages.cs b/PowerAccent.Core/Languages.cs index 4579ec2..1016839 100644 --- a/PowerAccent.Core/Languages.cs +++ b/PowerAccent.Core/Languages.cs @@ -11,6 +11,7 @@ public enum Language IS, IT, MI, + NL, PI, PL, RO, @@ -35,6 +36,7 @@ public static char[] GetDefaultLetterKey(LetterKey letter, Language lang) case Language.IS: return GetDefaultLetterKeyIS(letter); // Iceland case Language.IT: return GetDefaultLetterKeyIT(letter); // Italian case Language.MI: return GetDefaultLetterKeyMI(letter); // Maori + case Language.NL: return GetDefaultLetterKeyNL(letter); // Netherlands case Language.PI: return GetDefaultLetterKeyPI(letter); // Pinyin case Language.PL: return GetDefaultLetterKeyPL(letter); // Polish case Language.RO: return GetDefaultLetterKeyRO(letter); // Romanian @@ -277,6 +279,30 @@ private static char[] GetDefaultLetterKeyMI(LetterKey letter) return Array.Empty(); } + // Netherlands + private static char[] GetDefaultLetterKeyNL(LetterKey letter) + { + switch (letter) + { + case LetterKey.A: + return new char[] { 'á', 'à', 'ä' }; + case LetterKey.C: + return new char[] { 'ç' }; + case LetterKey.E: + return new char[] { 'é', 'è', 'ë', 'ê', '€' }; + case LetterKey.I: + return new char[] { 'í', 'ï', 'î' }; + case LetterKey.N: + return new char[] { 'ñ' }; + case LetterKey.O: + return new char[] { 'ó', 'ö', 'ô' }; + case LetterKey.U: + return new char[] { 'ú', 'ü', 'û' }; + } + + return Array.Empty(); + } + // Pinyin private static char[] GetDefaultLetterKeyPI(LetterKey letter) { diff --git a/PowerAccent.UI/PowerAccent.UI.csproj b/PowerAccent.UI/PowerAccent.UI.csproj index 565f33b..771e557 100644 --- a/PowerAccent.UI/PowerAccent.UI.csproj +++ b/PowerAccent.UI/PowerAccent.UI.csproj @@ -16,6 +16,7 @@ + @@ -37,6 +38,7 @@ + diff --git a/PowerAccent.UI/Resources/Flags/NL.jpg b/PowerAccent.UI/Resources/Flags/NL.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4c6dc6df17cb0aa2865480ed02a130a3f631ca8e GIT binary patch literal 57034 zcmeI)2~bpZ90%~tK=9SrCD?(bRZQj=mas((g!!9fF79Q{4A8m|aXJT@kshKa#8;04p`~Ls` z`|y7Miyynjim1cbQDa7tN~NMV_&2ee6x;aQBYib~$Rm9~YbVyLv{?SezE9@6@?V*KXm@M3{Q@jv4Umz(IqD#Euv_ zYV?a^#!h&3;-rMhQ>MTCYso=uJOP8-)y>|UZaY^Z~W#tvO?^L?0 zJ@;yUua&%YjrCHI`eBnjs93Xl8F;i_czQ zE1C$!N-gCRJ$!omxYYvd%}vTk@W?PRws!?+Xc_n(yL17xhO^( z3j|+9uIW6K(Oy9|@hkRL_TNcTBHqu9D=Td;_buiPe_QlFoKTy|s6#oU+@WHH{j^;k zyxGjC-+G@#uI#gv(JP`9AEiuen0BE;ez`Vn$C*<`DUsLL^NZ4UuDvSK$IUePEOE2j z>y)-tX@#scf-BF$sA8ww?Yy}#!Pi~%UEsaPDjJ3}DjwnRCe$n#x5NEhpv(Z_4iD@7j< zg9{8U{ywzD-~yvsA9E8JTwrj4=@iW4`Ivgd-~xjS3@$LZz{&+yF8*QN41)^{E-<*j zTCEXlwb&%kqQ`_y0@x&g-6_qs8vPe`r_^rFFxjuixn+|rgK(e?U;qYS00v+H24DaN zU;qYS00v+H24DaNU;qYS00v+H24DaNU;qYS00v+H24DaNU;qYS00v+H24DaNU;qYS z00v+H1|F9ISC<$K_G2g)`a5kee&MLbSHiBoaP2veg1*=1vALCT!-}ZS8MQh4# zUfs$3%*_042YF`KaGs$xO8DO4qhi@Uu5niiv00^Mq1szK!E4^9f-+07-N0*c5{a_W#cWyWV7T zydwzw$1)sf0~mk-7=Qs7fB_hQ0T_S*7=Qs7fB_hQ0T_S*7=Qs7fB_hQ0T_S*7=Qs7 kfB_hQ0T_S*7=Qs7fB_hQ0T_S*7=Qs7fPu$lKw#JZ0D;K8)&Kwi literal 0 HcmV?d00001