Skip to content

Commit

Permalink
Integrated new Workman layout
Browse files Browse the repository at this point in the history
  • Loading branch information
joel0 committed Mar 14, 2017
1 parent 0f203ec commit e005d29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ This keyboard is especially useful if you use ConnectBot for SSH access. It prov

The supported keyboard layouts include Armenian (Հայերեն), Arabic (العربية),
British (en\_GB), Bulgarian (български език), Czech (Čeština), Danish (dansk),
Carpalx English (language "en-CX"), Dvorak English (language "en-DV"), English
(QWERTY), Finnish (Suomi), French (Français, AZERTY), German (Deutsch, QWERTZ),
German Neo2 (Deutsch, language "de-NE"),
Greek (ελληνικά), Hebrew (עברית), Hungarian (Magyar), Italian (Italiano), Lao
(ພາສາລາວ), Norwegian (Norsk bokmål), Persian (فارسی), Portuguese (Português),
Romanian (Română), Russian (Русский), Russian phonetic (Русский, ru-rPH),
Serbian (Српски), Slovak (Slovenčina), Slovenian
Carpalx English (language "en-CX"), Dvorak English (language "en-DV"), Workman
English (language "en-WM"), English (QWERTY), Finnish (Suomi), French
(Français, AZERTY), German (Deutsch, QWERTZ), German Neo2 (Deutsch, language
"de-NE"), Greek (ελληνικά), Hebrew (עברית), Hungarian (Magyar),
Italian (Italiano), Lao (ພາສາລາວ), Norwegian (Norsk bokmål),
Persian (فارسی), Portuguese (Português), Romanian (Română), Russian
(Русский), Russian phonetic (Русский, ru-rPH), Serbian
(Српски), Slovak (Slovenčina), Slovenian
(Slovenščina)/Bosnian/Croatian/Latin Serbian, Spanish (Español, Español
Latinoamérica), Swedish (Svenska), Tamil (தமிழ்), Thai (ไทย), Turkish (Türkçe),
and Ukrainian (українська мова).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class InputLanguageSelection extends PreferenceActivity {
// the available keyboard resources and dictionaries.
private static final String[] KBD_LOCALIZATIONS = {
"ar", "bg", "bg_ST", "ca", "cs", "cs_QY", "da", "de", "de_NE",
"el", "en", "en_CX", "en_DV", "en_GB", "es", "es_LA", "es_US",
"el", "en", "en_CX", "en_DV", "en_WM", "en_GB", "es", "es_LA", "es_US",
"fa", "fi", "fr", "fr_CA", "he", "hr", "hu", "hu_QY", "hy", "in",
"it", "iw", "ja", "ka", "ko", "lo", "lt", "lv", "nb", "nl", "pl",
"pt", "pt_PT", "rm", "ro", "ru", "ru_PH", "si", "sk", "sk_QY", "sl",
Expand All @@ -78,24 +78,26 @@ public class InputLanguageSelection extends PreferenceActivity {

private static final String[] KBD_5_ROW = {
"ar", "bg", "bg_ST", "cs", "cs_QY", "da", "de", "de_NE", "el",
"en", "en_CX", "en_DV", "en_GB", "es", "es_LA", "fa", "fi", "fr",
"fr_CA", "he", "hr", "hu", "hu_QY", "hy", "it", "iw", "lo", "lt",
"nb", "pt_PT", "ro", "ru", "ru_PH", "si", "sk", "sk_QY", "sl",
"en", "en_CX", "en_DV", "en_WM", "en_GB", "es", "es_LA", "fa", "fi",
"fr", "fr_CA", "he", "hr", "hu", "hu_QY", "hy", "it", "iw", "lo",
"lt", "nb", "pt_PT", "ro", "ru", "ru_PH", "si", "sk", "sk_QY", "sl",
"sr", "sv", "ta", "th", "tr", "uk"
};

private static final String[] KBD_4_ROW = {
"ar", "bg", "bg_ST", "cs", "cs_QY", "da", "de", "de_NE", "el",
"en", "en_CX", "en_DV", "es", "es_LA", "es_US", "fa", "fr", "fr_CA",
"he", "hr", "hu", "hu_QY", "iw", "nb", "ru", "ru_PH", "sk", "sk_QY",
"sl", "sr", "sv", "tr", "uk"
"en", "en_CX", "en_DV", "en_WM", "es", "es_LA", "es_US", "fa", "fr",
"fr_CA", "he", "hr", "hu", "hu_QY", "iw", "nb", "ru", "ru_PH", "sk",
"sk_QY", "sl", "sr", "sv", "tr", "uk"
};

private static String getLocaleName(Locale l) {
String lang = l.getLanguage();
String country = l.getCountry();
if (lang.equals("en") && country.equals("DV")) {
return "English (Dvorak)";
} else if (lang.equals("en") && country.equals("WM")) {
return "English (Workman)";
} else if (lang.equals("en") && country.equals("EX")) {
return "English (4x11)";
} else if (lang.equals("en") && country.equals("CX")) {
Expand Down

3 comments on commit e005d29

@Wisdawn
Copy link

@Wisdawn Wisdawn commented on e005d29 Apr 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. I'm not sure if I'm missing something but I cannot find the Workman layout in the Input Languages list after installing, enabling, and selecting Hacker's Keyboard on my Anroid 6.0.1 phone. I wasn't even aware of the existence of Workman on Android until now. Any info or putting me in the right direction would be greatly appreciated.

@joel0
Copy link
Author

@joel0 joel0 commented on e005d29 Apr 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request is a proposed change to add the Workman layout the Hacker's Keyboard. @klausw hasn't accepted the MR, so the official release is lacking it. You can download the source for Hacker's Keyboard and apply this merge, compile, and install it.

@Wisdawn
Copy link

@Wisdawn Wisdawn commented on e005d29 May 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your response and explanation.

Please sign in to comment.