-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Damien LEROY
committed
Oct 5, 2022
1 parent
c08e536
commit 0d5da12
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
damienleroy
Owner
|
||
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<char>(); | ||
} | ||
|
||
// 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<char>(); | ||
} | ||
|
||
// Pinyin | ||
private static char[] GetDefaultLetterKeyPI(LetterKey letter) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
In my opinion this is not needed. As I said, in Dutch* we don't use much accents and most of them are acessible with the keyboard.
* "Netherlands is the name of the country