Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Programmer Dvorak layout #598

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ 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),
Carpalx English (language "en-CX"), Dvorak English (language "en-DV"),
Programmer Dvorak English (language "en-PD"), 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),
Expand Down
47 changes: 47 additions & 0 deletions java/res/values-en-rPD/donottranslate-altchars.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2010, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="alternates_for_a">áàâãäåāæ</string>
<string name="alternates_for_b"></string>
<string name="alternates_for_c">8çčć¢</string>
<string name="alternates_for_d">đ</string>
<string name="alternates_for_e">éèêëē€</string>
<string name="alternates_for_f">6₣</string>
<string name="alternates_for_g">7</string>
<string name="alternates_for_h"></string>
<string name="alternates_for_i">íìîïī</string>
<string name="alternates_for_j"></string>
<string name="alternates_for_k"></string>
<string name="alternates_for_l">0£₤λ</string>
<string name="alternates_for_m">μ</string>
<string name="alternates_for_n">ñ</string>
<string name="alternates_for_o">óòôõöōø</string>
<string name="alternates_for_p">4π₱</string>
<string name="alternates_for_q"></string>
<string name="alternates_for_r">9</string>
<string name="alternates_for_s">§ßš</string>
<string name="alternates_for_t"></string>
<string name="alternates_for_u">úùûüū</string>
<string name="alternates_for_v"></string>
<string name="alternates_for_w"></string>
<string name="alternates_for_x"></string>
<string name="alternates_for_y">5ýÿ¥</string>
<string name="alternates_for_z">ž</string>
</resources>
225 changes: 225 additions & 0 deletions java/res/values-en-rPD/donottranslate-keymap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2010, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
**
** 5-row layout for English Dvorak.
** Trevor Bergeron, [email protected]
** Uses the same altkeys as QWERTY
**
** See http://code.google.com/p/hackerskeyboard/wiki/AddingNewLayouts for
** more information.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="key_tlde_main">$</string>
<string name="key_tlde_shift">~</string>
<string name="key_tlde_alt">$~¢£€¥</string>

<string name="key_ae01_main">&amp;</string>
<string name="key_ae01_shift">%</string>
<string name="key_ae01_alt">&amp;%‰</string>

<string name="key_ae02_main">[</string>
<string name="key_ae02_shift">7</string>
<string name="key_ae02_alt">[7⅞♪</string>

<string name="key_ae03_main">{</string>
<string name="key_ae03_shift">5</string>
<string name="key_ae03_alt">{5⅝</string>

<string name="key_ae04_main">}</string>
<string name="key_ae04_shift">3</string>
<string name="key_ae04_alt">}3³¾⅜♥♠♦♣</string>

<string name="key_ae05_main">(</string>
<string name="key_ae05_shift">1</string>
<string name="key_ae05_alt">1¹½⅓¼⅛</string>

<string name="key_ae06_main">=</string>
<string name="key_ae06_shift">9</string>
<string name="key_ae06_alt">=9≈≠√</string>

<string name="key_ae07_main">*</string>
<string name="key_ae07_shift">0</string>
<string name="key_ae07_alt">*0•★†‡ⁿ°</string>

<string name="key_ae08_main">)</string>
<string name="key_ae08_shift">2</string>
<string name="key_ae08_alt">)2²⅔</string>

<string name="key_ae09_main">+</string>
<string name="key_ae09_shift">4</string>
<string name="key_ae09_alt">+4+±×÷⁴</string>

<string name="key_ae10_main">]</string>
<string name="key_ae10_shift">6</string>
<string name="key_ae10_alt">]6</string>

<string name="key_ae11_main">!</string>
<string name="key_ae11_shift">8</string>
<string name="key_ae11_alt">!8¡•★∞†‡</string>

<string name="key_ae12_main">#</string>
<string name="key_ae12_shift">`</string>
<string name="key_ae12_alt">#`</string>



<string name="key_ad01_main">;</string>
<string name="key_ad01_shift">:</string>
<string name="key_ad01_alt">;:</string>

<string name="key_ad02_main">,</string>
<string name="key_ad02_shift">&lt;</string>
<string name="key_ad02_alt">,&lt;≤«‹</string>

<string name="key_ad03_main">.</string>
<string name="key_ad03_shift">&gt;</string>
<string name="key_ad03_alt">&gt;≥»›…</string>

<string name="key_ad04_main">p</string>
<string name="key_ad04_shift">P</string>
<string name="key_ad04_alt">@string/alternates_for_p</string>

<string name="key_ad05_main">y</string>
<string name="key_ad05_shift">Y</string>
<string name="key_ad05_alt">@string/alternates_for_y</string>

<string name="key_ad06_main">f</string>
<string name="key_ad06_shift">F</string>
<string name="key_ad06_alt">@string/alternates_for_f</string>

<string name="key_ad07_main">g</string>
<string name="key_ad07_shift">G</string>
<string name="key_ad07_alt">@string/alternates_for_g</string>

<string name="key_ad08_main">c</string>
<string name="key_ad08_shift">C</string>
<string name="key_ad08_alt">@string/alternates_for_c</string>

<string name="key_ad09_main">r</string>
<string name="key_ad09_shift">R</string>
<string name="key_ad09_alt">@string/alternates_for_r</string>

<string name="key_ad10_main">l</string>
<string name="key_ad10_shift">L</string>
<string name="key_ad10_alt">@string/alternates_for_l</string>

<string name="key_ad11_main">/</string>
<string name="key_ad11_shift">\?</string>
<string name="key_ad11_alt">/\?¿</string>

<string name="key_ad12_main">\@</string>
<string name="key_ad12_shift">^</string>
<string name="key_ad12_alt">\@^↑↓←→</string>

<string name="key_bksl_main">\\</string>
<string name="key_bksl_shift">|</string>
<string name="key_bksl_alt">\\|</string>


<string name="key_ac01_main">a</string>
<string name="key_ac01_shift">A</string>
<string name="key_ac01_alt">@string/alternates_for_a</string>

<string name="key_ac02_main">o</string>
<string name="key_ac02_shift">O</string>
<string name="key_ac02_alt">@string/alternates_for_o</string>

<string name="key_ac03_main">e</string>
<string name="key_ac03_shift">E</string>
<string name="key_ac03_alt">@string/alternates_for_e</string>

<string name="key_ac04_main">u</string>
<string name="key_ac04_shift">U</string>
<string name="key_ac04_alt">@string/alternates_for_u</string>

<string name="key_ac05_main">i</string>
<string name="key_ac05_shift">I</string>
<string name="key_ac05_alt">@string/alternates_for_i</string>

<string name="key_ac06_main">d</string>
<string name="key_ac06_shift">D</string>
<string name="key_ac06_alt">@string/alternates_for_d</string>

<string name="key_ac07_main">h</string>
<string name="key_ac07_shift">H</string>
<string name="key_ac07_alt">@string/alternates_for_h</string>

<string name="key_ac08_main">t</string>
<string name="key_ac08_shift">T</string>
<string name="key_ac08_alt">@string/alternates_for_t</string>

<string name="key_ac09_main">n</string>
<string name="key_ac09_shift">N</string>
<string name="key_ac09_alt">@string/alternates_for_n</string>

<string name="key_ac10_main">s</string>
<string name="key_ac10_shift">S</string>
<string name="key_ac10_alt">@string/alternates_for_s</string>

<string name="key_ac11_main">-</string>
<string name="key_ac11_shift">_</string>
<string name="key_ac11_alt">-_—–</string>


<string name="key_lsgt_main"></string>
<string name="key_lsgt_shift"></string>
<string name="key_lsgt_alt"></string>

<string name="key_ab01_main">\'</string>
<string name="key_ab01_shift">\"</string>
<string name="key_ab01_alt">\'\"‘’“”</string>

<string name="key_ab02_main">q</string>
<string name="key_ab02_shift">Q</string>
<string name="key_ab02_alt">@string/alternates_for_q</string>

<string name="key_ab03_main">j</string>
<string name="key_ab03_shift">J</string>
<string name="key_ab03_alt">@string/alternates_for_j</string>

<string name="key_ab04_main">k</string>
<string name="key_ab04_shift">K</string>
<string name="key_ab04_alt">@string/alternates_for_k</string>

<string name="key_ab05_main">x</string>
<string name="key_ab05_shift">X</string>
<string name="key_ab05_alt">@string/alternates_for_x</string>

<string name="key_ab06_main">b</string>
<string name="key_ab06_shift">B</string>
<string name="key_ab06_alt">@string/alternates_for_b</string>

<string name="key_ab07_main">m</string>
<string name="key_ab07_shift">M</string>
<string name="key_ab07_alt">@string/alternates_for_m</string>

<string name="key_ab08_main">w</string>
<string name="key_ab08_shift">W</string>
<string name="key_ab08_alt">@string/alternates_for_w</string>

<string name="key_ab09_main">v</string>
<string name="key_ab09_shift">V</string>
<string name="key_ab09_alt">@string/alternates_for_v</string>

<string name="key_ab10_main">z</string>
<string name="key_ab10_shift">Z</string>
<string name="key_ab10_alt">@string/alternates_for_z</string>
</resources>

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2008-2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
Expand Down Expand Up @@ -68,20 +68,20 @@ public class InputLanguageSelection extends PreferenceActivity {
// Run the GetLanguages.sh script to update the following lists based on
// 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",
"ar", "bg", "bg_ST", "ca", "cs", "cs_QY", "da", "de", "de_NE", "el",
"en", "en_CX", "en_DV", "en_GB", "en_PD", "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",
"it", "iw", "ja", "ko", "lo", "lt", "lv", "nb", "nl", "pl", "pt",
"pt_PT", "rm", "ro", "ru", "ru_PH", "si", "sk", "sk_QY", "sl",
"sr", "sv", "ta", "th", "tl", "tr", "uk", "vi", "zh_CN", "zh_TW"
};

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",
"sr", "sv", "ta", "th", "tr", "uk"
"en", "en_CX", "en_DV", "en_GB", "en_PD", "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 = {
Expand All @@ -96,6 +96,8 @@ private static String getLocaleName(Locale l) {
String country = l.getCountry();
if (lang.equals("en") && country.equals("DV")) {
return "English (Dvorak)";
} else if (lang.equals("en") && country.equals("PD")) {//Since programmer dvorak usually called DVP but some code might have to get edited with the length of "DVP"
return "English (Programmer Dvorak)";
} else if (lang.equals("en") && country.equals("EX")) {
return "English (4x11)";
} else if (lang.equals("en") && country.equals("CX")) {
Expand Down