abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2022-10-04 09:49:26 +0200
committerJules Aguillon2022-10-04 10:12:22 +0200
commitdda8f0314d786d09791512ad949ae76f2068b25a (patch)
tree039f5939dc3658de41bd85d34cdff4aa21f86e9b
parent5873b7315d901465871ad23bc12d48cf3132adbd (diff)
downloadunexpected-keyboard-dda8f0314d786d09791512ad949ae76f2068b25a.tar.gz
unexpected-keyboard-dda8f0314d786d09791512ad949ae76f2068b25a.zip
Contributing: clarify layouts
-rw-r--r--CONTRIBUTING.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8a31530..ff550c1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -78,17 +78,22 @@ make installd
## Guidelines
-### Adding a programming layout
+### Adding a layout
-A programming layout must contains every ASCII characters.
-The current programming layouts are: QWERTY, Dvorak.
+Layouts are defined in XML, see `res/xml/qwerty.xml`.
+
+An entry must be added to the layout option in `res/values/arrays.xml`, to both
+`pref_layout_values` (correspond to the file name) and `pref_layout_entries`
+(display name).
-Layouts are defined in XML, see `res/xml/qwerty.xml`. An entry must be added to
-the layout option in `res/values/arrays.xml`, to both `pref_layout_values`
-(correspond to the file name) and `pref_layout_entries` (display name).
The layout must also be referenced in `srcs/juloo.keyboard2/Config.java` in
`layoutId_of_string`.
+#### Adding a programming layout
+
+A programming layout must contains every ASCII characters.
+The current programming layouts are: QWERTY, Dvorak and Colemak.
+
Keys with a name starting in `loc ` are hidden unless they are configured for
the user's installed languages in `res/xml/method.xml`. These keys are optional
and will be added automatically when necessary.
@@ -97,7 +102,7 @@ Some users cannot easily type the characters close the the edges of the screen
due to a bulky phone case. It is best to avoid placing important characters
there (such as the digits or punctuation).
-### Adding a localized layout
+#### Adding a localized layout
Localized layouts (a layout specific to a language) are gladly accepted.
See for example: 4333575 (Bulgarian), 88e2175 (Latvian), 133b6ec (German).