diff options
| author | Ralph Giles <giles@thaumas.net> | 2020-02-14 23:51:05 +0000 |
|---|---|---|
| committer | Ralph Giles <giles@thaumas.net> | 2020-02-15 01:33:06 +0000 |
| commit | f808573d8f57a6adc9a4c01182685c5ec6a5027c (patch) | |
| tree | 1740038c6481bc88942e33af4f6506ca5082cba0 /addons | |
| parent | a4c3d07213d30fc3bdec47db66b7a87ee568621d (diff) | |
| download | AnySoftKeyboard-f808573d8f57a6adc9a4c01182685c5ec6a5027c.tar.gz AnySoftKeyboard-f808573d8f57a6adc9a4c01182685c5ec6a5027c.tar.bz2 | |
coptic: Add a basic keyboard layout.
Coptic has thirty letters, plus a handful of variants for each
dialect, to the standard layouts don't fit the standard layout.
Therefore, while this is roughly based on some established
layouts, particularly the one at coptic-dictionary.org,
a number of symbols have been moved to popups to make things
fit.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/languages/coptic/pack/src/main/res/xml/coptic.xml | 54 | ||||
| -rw-r--r-- | addons/languages/coptic/pack/src/main/res/xml/coptic_keyboards.xml | 18 |
2 files changed, 72 insertions, 0 deletions
diff --git a/addons/languages/coptic/pack/src/main/res/xml/coptic.xml b/addons/languages/coptic/pack/src/main/res/xml/coptic.xml new file mode 100644 index 000000000..fae442c7f --- /dev/null +++ b/addons/languages/coptic/pack/src/main/res/xml/coptic.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> + +<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" + android:keyWidth="10%p"><!-- "android:keyWidth" specify the default width of a key. In this example, 10% of parent (the whole keyboard) --> + + <!-- Key attributes: + "android:codes" : a comma separated unicode values of the keys. If you specify more than one code, then the other codes are accessible via multi-tap. + "android:popupCharacters" : characters to show on long-press popup keyboard + "android:keyLabel" : the text to show on the key. If this attribute is missing, the first code in "android:codes" will be used. + "android:horizontalGap" : gap to add to the left of this key. + "android:isModifier" : true/false (default is false) whether this key is a modifier key. Means it will be rendered with a differnt background (shift, delete are example of modifier key) + "android:isRepeatable" : true/false (default is false) whether this key repeats printing on long press (like the backspace). Setting this to true will disable the long-press (android:popupCharacters) functionality + "android:keyWidth" : specify the width of this key + --> + <Row> + <Key android:codes="11441" android:keyEdgeFlags="left"/> + <Key android:codes="11401" android:popupCharacters="ⲏ"/> + <Key android:codes="11427"/> + <Key android:codes="11431" android:popupCharacters="ⲑϯ"/> + <Key android:codes="11433"/> + <Key android:codes="11411"/> + <Key android:codes="11423"/> + <Key android:codes="11425" android:popupCharacters="ⲯ"/> + <Key android:codes="995"/> + <Key android:codes="772" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:codes="11393" android:keyEdgeFlags="left"/> + <Key android:codes="11429"/> + <Key android:codes="11399"/> + <Key android:codes="997"/> + <Key android:codes="11397"/> + <Key android:codes="1001"/> + <Key android:codes="1003"/> + <Key android:codes="11413" android:popupCharacters="ⲝ"/> + <Key android:codes="11415"/> + <Key android:codes="999"/> + <Key android:codes="11465" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:keyWidth="15%p" android:codes="-1" + android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/> + <Key android:codes="11405"/> + <Key android:codes="11437"/> + <Key android:codes="11435"/> + <Key android:codes="11395"/> + <Key android:codes="11419"/> + <Key android:codes="11417" android:popupCharacters="ⲙ̄"/> + <Key android:codes="1005"/> + <Key android:keyWidth="15%p" android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/> + </Row> +</Keyboard> diff --git a/addons/languages/coptic/pack/src/main/res/xml/coptic_keyboards.xml b/addons/languages/coptic/pack/src/main/res/xml/coptic_keyboards.xml new file mode 100644 index 000000000..77aba6b37 --- /dev/null +++ b/addons/languages/coptic/pack/src/main/res/xml/coptic_keyboards.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Keyboards> + <!-- Dictionary attributes: + "nameResId" : the name of the keyboard. Should be short. Reference to a string in values.xml + "defaultDictionaryLocale" : the ID of the keyboard's (ISO) locale, e.g., "en", "iw", "ar", "ru", etc. The dictionary should declare the same locale. + "id" : UUID for this keyboard. Obtain from here: http://www.famkruithof.net/uuid/uuidgen + "iconResId" : a reference to a drawable which can be used to show a flag in the notification bar. + "layoutResId" : a reference to a keyboard layout XML. See res/xml/qwerty.xml + --> + <Keyboard + defaultDictionaryLocale="cop" + description="Coptic keyboard with long-press for some letters" + iconResId="@drawable/ic_status_coptic" + id="7974f964-4ee2-11ea-9262-002618061037" + index="1" + layoutResId="@xml/coptic" + nameResId="@string/coptic_keyboard_name" /> +</Keyboards> |
