mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-24 08:36:26 +00:00
Merge pull request #433 from Damjan94/workman
Created a Workman keyboard layout
This commit is contained in:
commit
b5934f3841
9 changed files with 417 additions and 0 deletions
|
@ -54,6 +54,7 @@
|
|||
<item>dvorak</item>
|
||||
<item>colemak</item>
|
||||
<item>colemak_dh</item>
|
||||
<item>workman</item>
|
||||
<item>bepo</item>
|
||||
<item>pcqwerty</item>
|
||||
</string-array>
|
||||
|
@ -65,6 +66,7 @@
|
|||
<item>Dvorak</item>
|
||||
<item>Colemak</item>
|
||||
<item>Colemak Mod-DH</item>
|
||||
<item>Workman</item>
|
||||
<item>Bépo</item>
|
||||
<item>PC</item>
|
||||
</string-array>
|
||||
|
@ -78,6 +80,7 @@
|
|||
<string name="subtype_generic_dvorak" translatable="false">%s (Dvorak)</string>
|
||||
<string name="subtype_generic_colemak" translatable="false">%s (Colemak)</string>
|
||||
<string name="subtype_generic_colemak_dh" translatable="false">%s (Colemak Mod-DH)</string>
|
||||
<string name="subtype_generic_workman" translatable="false">%s (Workman)</string>
|
||||
<string name="subtype_generic_bepo" translatable="false">%s (Bépo)</string>
|
||||
<string name="subtype_generic_pcqwerty" translatable="false">%s (PC)</string>
|
||||
|
||||
|
|
|
@ -350,6 +350,17 @@ language among those that use the Latin alphabet. This keyboard is laid out in t
|
|||
disposition that offers additional keys, but smaller keys compared to other common dispositions for
|
||||
mobile devices. [CHAR LIMIT=25] -->
|
||||
<string name="subtype_no_language_colemak_dh">Alphabet (Colemak Mod-DH)</string>
|
||||
<!-- This string is displayed in the description for a keyboard type. It refers specifically to
|
||||
the Latin alphabet, as opposed to Cyrillic, Arabic, Hebrew or other scripts.
|
||||
When the device is configured to use a language using a script other than the Latin alphabet, the
|
||||
user still needs a keyboard that can input Latin characters for passwords or login names for
|
||||
example, and a way to switch to this Latin alphabet keyboard. This string is the description for
|
||||
this keyboard, so users of other scripts should understand when they read this that it represents a
|
||||
keyboard that is meant for them to be able to enter Latin characters as opposed to the script they
|
||||
are used to. This keyboard does not provide a dictionary, and it is not tied to any specific
|
||||
language among those that use the Latin alphabet. This keyboard is laid out in the Workman
|
||||
disposition rather than other common dispositions for Latin languages. [CHAR LIMIT=25] -->
|
||||
<string name="subtype_no_language_workman">Alphabet (Workman)</string>
|
||||
<string name="subtype_no_language_pcqwerty">Alphabet (PC)</string>
|
||||
<!-- Description for Emoji keyboard subtype [CHAR LIMIT=25] -->
|
||||
<string name="subtype_emoji">Emoji</string>
|
||||
|
|
64
app/src/main/res/xml-sw600dp/rows_workman.xml
Normal file
64
app/src/main/res/xml-sw600dp/rows_workman.xml
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2011, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_common" />
|
||||
Ideally just the keyWidth should be different and the spacer should adjust to fill
|
||||
the available space. -->
|
||||
<!-- First row -->
|
||||
<Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman1"
|
||||
latin:keyWidth="9.0%p" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<!-- Second row -->
|
||||
<Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman2"
|
||||
latin:keyWidth="9.0%p" />
|
||||
<Key
|
||||
latin:keyStyle="enterKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<!-- Third row -->
|
||||
<Row>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="10.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman3"
|
||||
latin:keyWidth="9.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question"
|
||||
latin:keyWidth="9.0%p" />
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<!-- Fourth row -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
26
app/src/main/res/xml/kbd_workman.xml
Normal file
26
app/src/main/res/xml/kbd_workman.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2008, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<Keyboard
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rows_workman" />
|
||||
</Keyboard>
|
43
app/src/main/res/xml/keyboard_layout_set_workman.xml
Normal file
43
app/src/main/res/xml/keyboard_layout_set_workman.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<KeyboardLayoutSet
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto">
|
||||
<Element
|
||||
latin:elementName="alphabet"
|
||||
latin:elementKeyboard="@xml/kbd_workman"
|
||||
latin:enableProximityCharsCorrection="true"
|
||||
latin:supportsSplitLayout="true" />
|
||||
<Element
|
||||
latin:elementName="symbols"
|
||||
latin:elementKeyboard="@xml/kbd_symbols" />
|
||||
<Element
|
||||
latin:elementName="symbolsShifted"
|
||||
latin:elementKeyboard="@xml/kbd_symbols_shift" />
|
||||
<Element
|
||||
latin:elementName="phone"
|
||||
latin:elementKeyboard="@xml/kbd_phone" />
|
||||
<Element
|
||||
latin:elementName="phoneSymbols"
|
||||
latin:elementKeyboard="@xml/kbd_phone_symbols" />
|
||||
<Element
|
||||
latin:elementName="number"
|
||||
latin:elementKeyboard="@xml/kbd_number" />
|
||||
</KeyboardLayoutSet>
|
74
app/src/main/res/xml/rowkeys_workman1.xml
Normal file
74
app/src/main/res/xml/rowkeys_workman1.xml
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<Key
|
||||
latin:keySpec="!text/keyspec_q"
|
||||
latin:keyHintLabel="1"
|
||||
latin:additionalMoreKeys="1"
|
||||
latin:moreKeys="!text/morekeys_q" />
|
||||
<Key
|
||||
latin:keySpec="d"
|
||||
latin:keyHintLabel="2"
|
||||
latin:additionalMoreKeys="2"
|
||||
latin:moreKeys="!text/morekeys_w" />
|
||||
<Key
|
||||
latin:keySpec="r"
|
||||
latin:keyHintLabel="3"
|
||||
latin:additionalMoreKeys="3"
|
||||
latin:moreKeys="!text/morekeys_e" />
|
||||
<Key
|
||||
latin:keySpec="!text/keyspec_w"
|
||||
latin:keyHintLabel="4"
|
||||
latin:additionalMoreKeys="4"
|
||||
latin:moreKeys="!text/morekeys_r" />
|
||||
<Key
|
||||
latin:keySpec="b"
|
||||
latin:keyHintLabel="5"
|
||||
latin:additionalMoreKeys="5"
|
||||
latin:moreKeys="!text/morekeys_t" />
|
||||
|
||||
<Key
|
||||
latin:keySpec="j"
|
||||
latin:keyHintLabel="6"
|
||||
latin:additionalMoreKeys="6"
|
||||
latin:moreKeys="!text/morekeys_y" />
|
||||
<Key
|
||||
latin:keySpec="f"
|
||||
latin:keyHintLabel="7"
|
||||
latin:additionalMoreKeys="7"
|
||||
latin:moreKeys="!text/morekeys_u" />
|
||||
<Key
|
||||
latin:keySpec="u"
|
||||
latin:keyHintLabel="8"
|
||||
latin:additionalMoreKeys="8"
|
||||
latin:moreKeys="!text/morekeys_i" />
|
||||
<Key
|
||||
latin:keySpec="p"
|
||||
latin:keyHintLabel="9"
|
||||
latin:additionalMoreKeys="9"
|
||||
latin:moreKeys="!text/morekeys_o" />
|
||||
<Key
|
||||
latin:keySpec=";"
|
||||
latin:keyHintLabel="0"
|
||||
latin:additionalMoreKeys="0" />
|
||||
</merge>
|
71
app/src/main/res/xml/rowkeys_workman2.xml
Normal file
71
app/src/main/res/xml/rowkeys_workman2.xml
Normal file
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<Key
|
||||
latin:keySpec="a"
|
||||
latin:keyHintLabel="\@"
|
||||
latin:additionalMoreKeys="\\@"
|
||||
latin:moreKeys="!text/morekeys_a" />
|
||||
<Key
|
||||
latin:keySpec="s"
|
||||
latin:keyHintLabel="#"
|
||||
latin:additionalMoreKeys="#"
|
||||
latin:moreKeys="!text/morekeys_s" />
|
||||
<Key
|
||||
latin:keySpec="h"
|
||||
latin:keyHintLabel="$"
|
||||
latin:additionalMoreKeys="$"
|
||||
latin:moreKeys="!text/morekeys_d" />
|
||||
<Key
|
||||
latin:keySpec="t"
|
||||
latin:keyHintLabel="%"
|
||||
latin:additionalMoreKeys="%" />
|
||||
<Key
|
||||
latin:keySpec="g"
|
||||
latin:keyHintLabel="&"
|
||||
latin:additionalMoreKeys="&"
|
||||
latin:moreKeys="!text/morekeys_g" />
|
||||
|
||||
<Key
|
||||
latin:keySpec="!text/keyspec_y"
|
||||
latin:keyHintLabel="-"
|
||||
latin:additionalMoreKeys="-"
|
||||
latin:moreKeys="!text/morekeys_h" />
|
||||
<Key
|
||||
latin:keySpec="n"
|
||||
latin:keyHintLabel="+"
|
||||
latin:additionalMoreKeys="+"
|
||||
latin:moreKeys="!text/morekeys_j" />
|
||||
<Key
|
||||
latin:keySpec="e"
|
||||
latin:keyHintLabel="("
|
||||
latin:additionalMoreKeys="("
|
||||
latin:moreKeys="!text/morekeys_k" />
|
||||
<Key
|
||||
latin:keySpec="o"
|
||||
latin:keyHintLabel=")"
|
||||
latin:additionalMoreKeys=")"
|
||||
latin:moreKeys="!text/morekeys_l" />
|
||||
<Key
|
||||
latin:keySpec="i"/>
|
||||
</merge>
|
58
app/src/main/res/xml/rowkeys_workman3.xml
Normal file
58
app/src/main/res/xml/rowkeys_workman3.xml
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<Key
|
||||
latin:keySpec="z"
|
||||
latin:keyHintLabel="*"
|
||||
latin:additionalMoreKeys="*"
|
||||
latin:moreKeys="!text/morekeys_z" />
|
||||
<Key
|
||||
latin:keySpec="!text/keyspec_x"
|
||||
latin:keyHintLabel="""
|
||||
latin:additionalMoreKeys="""
|
||||
latin:moreKeys="!text/morekeys_x" />
|
||||
<Key
|
||||
latin:keySpec="m"
|
||||
latin:keyHintLabel="'"
|
||||
latin:additionalMoreKeys="'"
|
||||
latin:moreKeys="!text/morekeys_c" />
|
||||
<Key
|
||||
latin:keySpec="c"
|
||||
latin:keyHintLabel=":"
|
||||
latin:additionalMoreKeys=":"
|
||||
latin:moreKeys="!text/morekeys_v" />
|
||||
|
||||
<Key
|
||||
latin:keySpec="v"
|
||||
latin:keyHintLabel=";"
|
||||
latin:additionalMoreKeys=";" />
|
||||
<Key
|
||||
latin:keySpec="k"
|
||||
latin:keyHintLabel="!"
|
||||
latin:additionalMoreKeys="!"
|
||||
latin:moreKeys="!text/morekeys_n" />
|
||||
<Key
|
||||
latin:keySpec="l"
|
||||
latin:keyHintLabel="\?"
|
||||
latin:additionalMoreKeys="\\?" />
|
||||
</merge>
|
67
app/src/main/res/xml/rows_workman.xml
Normal file
67
app/src/main/res/xml/rows_workman.xml
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_common" />
|
||||
<switch>
|
||||
<case
|
||||
latin:numberRowEnabled="true"
|
||||
>
|
||||
<Row
|
||||
latin:keyWidth="10%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_symbols1" />
|
||||
</Row>
|
||||
</case>
|
||||
</switch>
|
||||
<Row
|
||||
latin:keyWidth="10%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman1" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="10%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman2" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="10%p"
|
||||
>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="15%p"
|
||||
latin:visualInsetsRight="1%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_workman3" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight"
|
||||
latin:visualInsetsLeft="1%p" />
|
||||
</Row>
|
||||
<!-- Fourth row -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
Loading…
Add table
Reference in a new issue