Contributing: clarify layouts

This commit is contained in:
Jules Aguillon 2022-10-04 09:49:26 +02:00
parent 5873b7315d
commit dda8f0314d

View File

@ -78,17 +78,22 @@ make installd
## Guidelines ## Guidelines
### Adding a programming layout ### Adding a layout
A programming layout must contains every ASCII characters. Layouts are defined in XML, see `res/xml/qwerty.xml`.
The current programming layouts are: QWERTY, Dvorak.
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 The layout must also be referenced in `srcs/juloo.keyboard2/Config.java` in
`layoutId_of_string`. `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 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 the user's installed languages in `res/xml/method.xml`. These keys are optional
and will be added automatically when necessary. 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 due to a bulky phone case. It is best to avoid placing important characters
there (such as the digits or punctuation). 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. Localized layouts (a layout specific to a language) are gladly accepted.
See for example: 4333575 (Bulgarian), 88e2175 (Latvian), 133b6ec (German). See for example: 4333575 (Bulgarian), 88e2175 (Latvian), 133b6ec (German).