Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #136 from RockyTV/Brazilian
Browse files Browse the repository at this point in the history
Update dictionary listing and settings
  • Loading branch information
friesenkiwi authored Jun 1, 2018
2 parents 158dc67 + be49522 commit 2e6777c
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 14 deletions.
11 changes: 7 additions & 4 deletions src/main/play/en-US/listing/fulldescription
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Layout de teclado Português so Brasil com dicionário.
Brazilian Portuguese Language pack

Usa o dicionário AOSP. O código fonte está em outro projeto por padrão.
Features:

Instale [[com.menny.android.anysoftkeyboard]] primeiro, então selecione um layout de sua vontade
em configurações do AnySoftKeyboard->Keyboards menu.
Brazilian Portuguese dictionary based on the open source Android dictionary.
Includes the ç key.

This is an expansion language pack for AnySoftKeyboard.
Install AnySoftKeyboard first, and then select the Brazilian keyboard from AnySoftKeyboard's Settings -> Languages -> Keyboards menu.
2 changes: 1 addition & 1 deletion src/main/play/en-US/listing/shortdescription
Original file line number Diff line number Diff line change
@@ -1 +1 @@
AnySoftKeyboard - Pacote de Idioma Português do Brasil.
AnySoftKeyboard Brazilian Portuguese Language pack
2 changes: 1 addition & 1 deletion src/main/play/en-US/listing/title
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Pacote de Idioma Português do Brasil
Brazilian Portuguese for AnySoftKeyboard
6 changes: 3 additions & 3 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">AnySoftKeyboard - Pacote de Idioma Português do Brasil</string>
<string name="keyboard_name">Portugês Brasileiro</string>
<string name="dictionary_name">Português do Brasil</string>
<string name="app_name">AnySoftKeyboard - Brazilian Portuguese Language Pack</string>
<string name="keyboard_name">Português (Brasil)</string>
<string name="dictionary_name">Português (Brasil)</string>
</resources>
2 changes: 1 addition & 1 deletion src/main/res/xml/dictionaries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dictionaryResourceId" : a reference to the raw resource of the words dictionary
"autoTextResourceId" : a reference to a common typing mistakes XML.
-->
<Dictionary nameResId="@string/dictionary_name" locale="pt" id="cfa534d0-f43a-11e6-9598-0800200c9a66" type="binary_resource"
<Dictionary nameResId="@string/dictionary_name" locale="pt_BR" id="cfa534d0-f43a-11e6-9598-0800200c9a66" type="binary_resource"
dictionaryResourceId="@array/words_dict_array" autoTextResourceId="@xml/autotext"
description="AOSP Dictionary"/>
</Dictionaries>
4 changes: 3 additions & 1 deletion src/main/res/xml/keyboards.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
"layoutResId" : a reference to a keyboard layout XML. See res/xml/qwerty.xml
-->
<Keyboard nameResId="@string/keyboard_name" iconResId="@drawable/flag" layoutResId="@xml/qwerty"
id="4c99178a-9a80-4218-8b13-f05f474c7f5e" defaultDictionaryLocale="pt-BR" description="Teclado brasileiro com ç" index="111"/>
id="4c99178a-9a80-4218-8b13-f05f474c7f5e" defaultDictionaryLocale="pt_BR" description="Teclado QWERTY com Ç" index="111"/>
<Keyboard nameResId="@string/keyboard_name" iconResId="@drawable/flag" layoutResId="@xml/qwerty_with_symbols"
id="848ac210-4d87-11e8-b566-0800200c9a66" defaultDictionaryLocale="pt_BR" description="Teclado QWERTY com símbolos" index="112"/>
</Keyboards>
6 changes: 3 additions & 3 deletions src/main/res/xml/qwerty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
</Row>

<Row>
<Key android:codes="-1"
<Key android:codes="-1" android:keyWidth="15%p"
android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/>
<Key android:horizontalGap="5%p" android:codes="122" android:keyLabel="z"/>
<Key android:codes="122" android:keyLabel="z"/>
<Key android:codes="120" android:keyLabel="x"/>
<Key android:codes="99" android:keyLabel="c"/>
<Key android:codes="118" android:keyLabel="v"/>
<Key android:codes="98" android:keyLabel="b"/>
<Key android:codes="110" android:keyLabel="n"/>
<Key android:codes="109" android:keyLabel="m"/>
<Key android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
<Key android:keyWidth="15%p" android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
</Row>
</Keyboard>

46 changes: 46 additions & 0 deletions src/main/res/xml/qwerty_with_symbols.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ask="http://schemas.android.com/apk/res-auto"
android:keyWidth="10%p"
android:keyHeight="@integer/key_normal_height">
<Row>
<Key android:codes="q" android:popupCharacters="1¹₁" ask:hintLabel="1" android:keyEdgeFlags="left"/>
<Key android:codes="w" android:popupCharacters="2²₂ŵ" ask:hintLabel="2"/>
<Key android:codes="e" android:popupCharacters="3³₃èéêëęē€" ask:hintLabel="3"/>
<Key android:codes="r" android:popupCharacters="4⁴₄řŕ" ask:hintLabel="4"/>
<Key android:codes="t" android:popupCharacters="" ask:hintLabel="5"/>
<Key android:codes="y" android:popupCharacters="6ýÿ" ask:hintLabel="6"/>
<Key android:codes="u" android:popupCharacters="7ùúûüŭűūµ" ask:hintLabel="7"/>
<Key android:codes="i" android:popupCharacters="8ìíîïłīι*" ask:hintLabel="8"/>
<Key android:codes="o" android:popupCharacters="9òóôõöøőœō" ask:hintLabel="9"/>
<Key android:codes="p" android:popupCharacters="" ask:hintLabel="0" android:keyEdgeFlags="right"/>
</Row>

<Row>
<Key android:codes="a" android:popupCharacters="\@àáâãäåæą" ask:hintLabel="\@" android:keyEdgeFlags="left"/>
<Key android:codes="s" android:popupCharacters="$§ßśŝš" ask:hintLabel="$"/>
<Key android:codes="d" android:popupCharacters="#%đď" ask:hintLabel="# %"/>
<Key android:codes="f" android:popupCharacters="^\u0026" ask:hintLabel="^ \u0026"/>
<Key android:codes="g" android:popupCharacters="`°ĝ" ask:hintLabel="` °"/>
<Key android:codes="h" android:popupCharacters="_~ĥ" ask:hintLabel="_ ~"/>
<Key android:codes="j" android:popupCharacters="\\|ĵ" ask:hintLabel="\\ |"/>
<Key android:codes="k" android:popupCharacters="([{" ask:hintLabel="("/>
<Key android:codes="l" android:popupCharacters="ľĺł£)]}" ask:hintLabel=")"/>
<Key ask:isFunctional="true" android:codes="\u0027" android:popupCharacters="\u0022"
android:keyEdgeFlags="right"/>
</Row>

<Row>
<Key android:codes="-1" android:keyWidth="15%p"
android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/>
<Key android:codes="z" android:popupCharacters="/÷żžź" ask:hintLabel="/"/>
<Key android:codes="x" android:popupCharacters="*·×" ask:hintLabel="*"/>
<Key android:codes="c" android:popupCharacters="-—çćĉč" ask:hintLabel=""/>
<Key android:codes="v" android:popupCharacters="" ask:hintLabel="+"/>
<Key android:codes="b" android:popupCharacters="\u003D"/>
<Key android:codes="n" android:popupCharacters="&lt;«ńňñ" ask:hintLabel="&lt;"/>
<Key android:codes="m" android:popupCharacters="&gt;»µ" ask:hintLabel="&gt;"/>
<Key android:keyWidth="15%p" android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
</Row>
</Keyboard>

0 comments on commit 2e6777c

Please sign in to comment.