Skip to content

Commit

Permalink
Add swiss-french layout
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Pierre Rasquin <[email protected]>
  • Loading branch information
yank555-lu committed Nov 26, 2018
1 parent ca699d8 commit 7525909
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,25 @@ public class InputLanguageSelection extends PreferenceActivity {
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",
"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",
"sr", "sv", "ta", "th", "tl", "tr", "uk", "vi", "zh_CN", "zh_TW"
"fa", "fi", "fr", "fr_CA", "fr_CH", "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", "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",
"fr_CA", "fr_CH", "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"
"fr_CH", "he", "hr", "hu", "hu_QY", "iw", "nb", "ru", "ru_PH", "sk",
"sk_QY", "sl", "sr", "sv", "tr", "uk"
};

private static String getLocaleName(Locale l) {
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/res/values-fr-rCH/donottranslate-altchars.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2010, The Android Open Source Project
** Copyright 2011, Darren Salt
**
** 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_v">√</string>
<string name="alternates_for_w">2ŵ</string>
<string name="alternates_for_y">6ýÿŷ¥</string>
</resources>
215 changes: 215 additions & 0 deletions app/src/main/res/values-fr-rCH/donottranslate-keymap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2010, The Android Open Source Project
** Copyright 2011, Darren Salt
**
** 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="key_tlde_main">§</string>
<string name="key_tlde_shift">°</string>
<string name="key_tlde_alt">°ⁿ</string>

<string name="key_ae01_main">1</string>
<string name="key_ae01_shift">+</string>
<string name="key_ae01_alt">+†‡¦¹</string>

<string name="key_ae02_main">2</string>
<string name="key_ae02_shift">\"</string>
<string name="key_ae02_alt">\"‚’‘„”“@²</string>

<string name="key_ae03_main">3</string>
<string name="key_ae03_shift">*</string>
<string name="key_ae03_alt">*★•#♥♠♦♣³</string>

<string name="key_ae04_main">4</string>
<string name="key_ae04_shift">ç</string>
<string name="key_ae04_alt">çčć¢⁴</string>

<string name="key_ae05_main">5</string>
<string name="key_ae05_shift">%</string>
<string name="key_ae05_alt">%‰</string>

<string name="key_ae06_main">6</string>
<string name="key_ae06_shift">&amp;</string>
<string name="key_ae06_alt">\&amp;♪</string>

<string name="key_ae07_main">7</string>
<string name="key_ae07_shift">/</string>
<string name="key_ae07_alt">/|</string>

<string name="key_ae08_main">8</string>
<string name="key_ae08_shift">(</string>
<string name="key_ae08_alt">(∞</string>

<string name="key_ae09_main">9</string>
<string name="key_ae09_shift">)</string>
<string name="key_ae09_alt">)</string>

<string name="key_ae10_main">0</string>
<string name="key_ae10_shift">=</string>
<string name="key_ae10_alt">=≈≠±+-×÷</string>

<string name="key_ae11_main">\'</string>
<string name="key_ae11_shift">\?</string>
<string name="key_ae11_alt">\?¿´‘’</string>

<string name="key_ae12_main">^</string>
<string name="key_ae12_shift">`</string>
<string name="key_ae12_alt">`~↑↓←→</string>


<string name="key_ad01_main">q</string>
<string name="key_ad01_shift">Q</string>
<string name="key_ad01_alt">@string/alternates_for_q</string>

<string name="key_ad02_main">w</string>
<string name="key_ad02_shift">W</string>
<string name="key_ad02_alt">@string/alternates_for_w</string>

<string name="key_ad03_main">e</string>
<string name="key_ad03_shift">E</string>
<string name="key_ad03_alt">@string/alternates_for_e</string>

<string name="key_ad04_main">r</string>
<string name="key_ad04_shift">R</string>
<string name="key_ad04_alt">@string/alternates_for_r</string>

<string name="key_ad05_main">t</string>
<string name="key_ad05_shift">T</string>
<string name="key_ad05_alt">@string/alternates_for_t</string>

<string name="key_ad06_main">z</string>
<string name="key_ad06_shift">Z</string>
<string name="key_ad06_alt">@string/alternates_for_z</string>

<string name="key_ad07_main">u</string>
<string name="key_ad07_shift">U</string>
<string name="key_ad07_alt">@string/alternates_for_u</string>

<string name="key_ad08_main">i</string>
<string name="key_ad08_shift">I</string>
<string name="key_ad08_alt">@string/alternates_for_i</string>

<string name="key_ad09_main">o</string>
<string name="key_ad09_shift">O</string>
<string name="key_ad09_alt">@string/alternates_for_o</string>

<string name="key_ad10_main">p</string>
<string name="key_ad10_shift">P</string>
<string name="key_ad10_alt">@string/alternates_for_p</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">s</string>
<string name="key_ac02_shift">S</string>
<string name="key_ac02_alt">@string/alternates_for_s</string>

<string name="key_ac03_main">d</string>
<string name="key_ac03_shift">D</string>
<string name="key_ac03_alt">@string/alternates_for_d</string>

<string name="key_ac04_main">f</string>
<string name="key_ac04_shift">F</string>
<string name="key_ac04_alt">@string/alternates_for_f</string>

<string name="key_ac05_main">g</string>
<string name="key_ac05_shift">G</string>
<string name="key_ac05_alt">@string/alternates_for_g</string>

<string name="key_ac06_main">h</string>
<string name="key_ac06_shift">H</string>
<string name="key_ac06_alt">@string/alternates_for_h</string>

<string name="key_ac07_main">j</string>
<string name="key_ac07_shift">J</string>
<string name="key_ac07_alt">@string/alternates_for_j</string>

<string name="key_ac08_main">k</string>
<string name="key_ac08_shift">K</string>
<string name="key_ac08_alt">@string/alternates_for_k</string>

<string name="key_ac09_main">l</string>
<string name="key_ac09_shift">L</string>
<string name="key_ac09_alt">@string/alternates_for_l</string>

<string name="key_ac10_main">é</string>
<string name="key_ac10_shift">ö</string>
<string name="key_ac10_alt">öÉÖ</string>

<string name="key_ac11_main">à</string>
<string name="key_ac11_shift">ä</string>
<string name="key_ac11_alt">äÀÄ{</string>


<string name="key_lsgt_main">&lt;</string>
<string name="key_lsgt_shift">&gt;</string>
<string name="key_lsgt_alt">&gt;≤«‹›»≥\</string>

<string name="key_ab01_main">y</string>
<string name="key_ab01_shift">Y</string>
<string name="key_ab01_alt">@string/alternates_for_y</string>

<string name="key_ab02_main">x</string>
<string name="key_ab02_shift">X</string>
<string name="key_ab02_alt">@string/alternates_for_x</string>

<string name="key_ab03_main">c</string>
<string name="key_ab03_shift">C</string>
<string name="key_ab03_alt">@string/alternates_for_c</string>

<string name="key_ab04_main">v</string>
<string name="key_ab04_shift">V</string>
<string name="key_ab04_alt">@string/alternates_for_v</string>

<string name="key_ab05_main">b</string>
<string name="key_ab05_shift">B</string>
<string name="key_ab05_alt">@string/alternates_for_b</string>

<string name="key_ab06_main">n</string>
<string name="key_ab06_shift">N</string>
<string name="key_ab06_alt">@string/alternates_for_n</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">,</string>
<string name="key_ab08_shift">;</string>
<string name="key_ab08_alt">;</string>

<string name="key_ab09_main">.</string>
<string name="key_ab09_shift">:</string>
<string name="key_ab09_alt">:…</string>

<string name="key_ab10_main">-</string>
<string name="key_ab10_shift">_</string>
<string name="key_ab10_alt">_–</string>
</resources>
19 changes: 19 additions & 0 deletions app/src/main/res/values-fr-rCH/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2009 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:android="http://schemas.android.com/apk/res/org.pocketworkstation.pckeyboard"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- <string name="english_ime_name" msgid="7252517407088836577">"Clavier Android"</string> -->
</resources>

0 comments on commit 7525909

Please sign in to comment.