Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added br-nativo layout #864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<string name="subtype_with_layout_en_GB">Inglês (Reino Unido) <xliff:g id="KEYBOARD_LAYOUT" example="QWERTY">%s</xliff:g></string>
<string name="subtype_with_layout_en_US">Inglês (EUA) <xliff:g id="KEYBOARD_LAYOUT" example="QWERTY">%s</xliff:g></string>
<string name="subtype_with_layout_hi_ZZ">Hindi-inglês <xliff:g id="KEYBOARD_LAYOUT" example="QWERTY">%s</xliff:g></string>
<string name="subtype_with_layout_pt_BRNT"><xliff:g id="KEYBOARD_LAYOUT" example="QWERTY">%s</xliff:g> (Nativo)</string>
<string name="subtype_no_language">Nenhum idioma (Alfabeto)</string>
<string name="subtype_no_language_qwerty">Alfabeto (QWERTY)</string>
<string name="setup_step1_finished_instruction"><xliff:g id="APPLICATION_NAME" example="Android Keyboard">%s</xliff:g> já está ativado nas configurações de \'Idiomas e Entrada\'. Esta etapa já está concluída. Vamos avançar para a próxima!</string>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@
(Traditional) can be an abbreviation to fit in the CHAR LIMIT. -->
<string name="subtype_generic_traditional"><xliff:g id="LANGUAGE_NAME" example="Nepali">%s</xliff:g> (Traditional)</string>
<string name="subtype_with_layout_bn_BD"><xliff:g id="LANGUAGE_NAME" example="Bangla">%s</xliff:g> (Akkhor)</string>
<!-- Description for Portuguese (BR) keyboard subtype with explicit keyboard layout [CHAR LIMIT=25]
(BR) should be an abbreviation of Brazil to fit in the CHAR LIMIT.
This should be identical to subtype_pt_BR aside from the trailing (%s). -->
<string name="subtype_with_layout_pt_BRNT"><xliff:g id="KEYBOARD_LAYOUT" example="QWERTY">%s</xliff:g> (Native)</string>
<!-- Description for "LANGUAGE_NAME" (Compact) keyboard subtype [CHAR LIMIT=25]
(Compact) can be an abbreviation to fit in the CHAR LIMIT. -->
<string name="subtype_generic_compact"><xliff:g id="LANGUAGE_NAME" example="Hindi">%s</xliff:g> (Compact)</string>
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/res/xml-sw600dp/key_comma.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@
</case>
<case
latin:keyboardLayoutSet="dvorak"
>
>
<Key
latin:keySpec="!"
latin:moreKeys="!text/morekeys_exclamation,%"
latin:keyStyle="settingsMoreKeysStyle" />
</case>
<case
latin:keyboardLayoutSet="br_nativo"
>
<Key
latin:keySpec="!"
latin:moreKeys="!text/morekeys_exclamation,%"
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/res/xml-sw600dp/key_period.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@
<switch>
<case
latin:keyboardLayoutSet="dvorak"
>
>
<Key
latin:keySpec="\?"
latin:moreKeys="!text/morekeys_tablet_period,!text/morekeys_question" />
</case>
<case
latin:keyboardLayoutSet="br_nativo"
>
<Key
latin:keySpec="\?"
latin:moreKeys="!text/morekeys_tablet_period,!text/morekeys_question" />
Expand Down
47 changes: 47 additions & 0 deletions app/src/main/res/xml-sw600dp/rowkeys_br_nativo3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?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.
*/
-->

<merge
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<Key
latin:keySpec="q" />
<Key
latin:keySpec="j"
latin:moreKeys="!text/morekeys_j" />
<Key
latin:keySpec="k"
latin:moreKeys="!text/morekeys_k" />
<Key
latin:keySpec="x" />
<Key
latin:keySpec="b" />
<Key
latin:keySpec="m" />
<Key
latin:keySpec="w"
latin:moreKeys="!text/morekeys_w" />
<Key
latin:keySpec="v"
latin:moreKeys="!text/morekeys_v" />
<Key
latin:keySpec="z"
latin:moreKeys="!text/morekeys_z" />
</merge>
62 changes: 62 additions & 0 deletions app/src/main/res/xml-sw600dp/rows_br_nativo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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.
*/
-->

<merge
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<include
latin:keyboardLayout="@xml/key_styles_common" />
<include
latin:keyboardLayout="@xml/row_optional_number_row" />
<Row
latin:keyWidth="9.0%p"
>
<include
latin:keyboardLayout="@xml/rowkeys_dvorak1" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="9.0%p"
>
<include
latin:keyboardLayout="@xml/rowkeys_dvorak2" />
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="9.0%p"
>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="10.0%p" />
<include
latin:keyboardLayout="@xml/rowkeys_dvorak3" />
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<!-- Dvorak layout shares almost the same row with Qwerty layout.
The difference is defined in xml-sw600dp/row_qwerty4.xml. -->
<include
latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
26 changes: 26 additions & 0 deletions app/src/main/res/xml/kbd_br_nativo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
*/
-->

<Keyboard
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<include
latin:keyboardLayout="@xml/rows_br_nativo" />
</Keyboard>
11 changes: 10 additions & 1 deletion app/src/main/res/xml/key_comma.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,22 @@
<switch>
<case
latin:keyboardLayoutSet="dvorak"
>
>
<Key
latin:keySpec="q"
latin:moreKeys="!text/morekeys_q,%"
latin:backgroundType="normal"
latin:keyStyle="settingsMoreKeysStyle" />
</case>
<case
latin:keyboardLayoutSet="br_nativo"
>
<Key
latin:keySpec="y"
latin:moreKeys="!text/morekeys_y,%"
latin:backgroundType="normal"
latin:keyStyle="settingsMoreKeysStyle" />
</case>
<case
latin:keyboardLayoutSet="halmak"
>
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/res/xml/key_period.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@
<switch>
<case
latin:keyboardLayoutSet="dvorak"
>
>
<Key
latin:keySpec="z"
latin:keyLabelFlags="hasPopupHint"
latin:moreKeys="!text/morekeys_punctuation,!text/morekeys_z" />
</case>
<case
latin:keyboardLayoutSet="br_nativo"
>
<Key
latin:keySpec="z"
latin:keyLabelFlags="hasPopupHint"
Expand Down
42 changes: 42 additions & 0 deletions app/src/main/res/xml/keyboard_layout_set_br_nativo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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_br_nativo"
latin:enableProximityCharsCorrection="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>
10 changes: 10 additions & 0 deletions app/src/main/res/xml/method.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
nl_BE: Dutch (Belgium)/azerty
pl: Polish/qwerty
pt_BR: Portuguese (Brazil)/qwerty
pt_BRNT: Portuguese (Brazil)/br_nativo
pt_PT: Portuguese (Portugal)/qwerty
ro: Romanian/qwerty
ru: Russian/east_slavic
Expand Down Expand Up @@ -667,6 +668,15 @@
android:imeSubtypeExtraValue="KeyboardLayoutSet=qwerty,AsciiCapable,EmojiCapable"
android:isAsciiCapable="true"
/>
<subtype android:icon="@drawable/ic_ime_switcher_dark"
android:label="@string/subtype_with_layout_pt_BRNT"
android:subtypeId="0xcafff4aa"
android:imeSubtypeLocale="pt_BRNT"
android:languageTag="pt-BR"
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="KeyboardLayoutSet=br_nativo,AsciiCapable,EmojiCapable"
android:isAsciiCapable="true"
/>
<subtype android:icon="@drawable/ic_ime_switcher_dark"
android:label="@string/subtype_generic"
android:subtypeId="0xe2fffc5a"
Expand Down
58 changes: 58 additions & 0 deletions app/src/main/res/xml/rowkeys_br_nativo1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?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.
*/
-->

<merge
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<include
latin:keyboardLayout="@xml/keys_dvorak_123" />
<Key
latin:keySpec="h"
latin:moreKeys="!text/morekeys_h"
latin:keyHintLabel="4"
latin:additionalMoreKeys="4" />
<Key
latin:keySpec="x"
latin:keyHintLabel="5"
latin:additionalMoreKeys="5" />
<Key
latin:keySpec="w"
latin:keyHintLabel="6"
latin:additionalMoreKeys="6" />
<Key
latin:keySpec="l"
latin:keyHintLabel="7"
latin:additionalMoreKeys="7"
latin:moreKeys="!text/morekeys_l" />
<Key
latin:keySpec="t"
latin:keyHintLabel="8"
latin:additionalMoreKeys="8"
latin:moreKeys="!text/morekeys_t" />
<Key
latin:keySpec="c"
latin:keyHintLabel="9"
latin:additionalMoreKeys="9"
latin:moreKeys="!text/morekeys_c" />
<Key
latin:keySpec="p"
latin:keyHintLabel="0"
latin:additionalMoreKeys="0" />
</merge>
Loading