LatinIME/java/res/xml/kbd_ar_rows.xml
Tadashi G. Takaoka 327763e518 Adaptive keyboard width/position parser
This change introduces the following features to Keyboard XML format.

 * "keyXPos" can specify the key X coordinate directly.
 * "keyXPos" can be negative. The X coordinate will be calcluated from
    the right edge of the keyboard toward left.
 * "keyWidth" can be zero to be filled up to the right side.
 * "keyWidth can be negative. The key will be filled up to both sides.
 * Spacer's horizontalGap is renamed as keyWidth, and can be inherited
   from key-style.
 * Spacer can have keyXPos attribute.

Using these syntax, all keyboard layouts have been re-written.

Cherry-Pick: I314b2e8ca2aa145ff9506cbf927140a15685af42
Bug: 4442045
Change-Id: I048fe5eaef020d8472ab577e9d326042bae2f3fa
2011-05-31 17:52:32 +09:00

122 lines
3.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2011, 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.
*/
-->
<!-- This file for Arabic layout is an alpha version. It allows to enter -->
<!-- some right-to-left text, but it has gone through no study whatsoever, -->
<!-- and needs to be run through UX. -->
<merge
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
>
<include
latin:keyboardLayout="@xml/kbd_key_styles" />
<Row
latin:keyWidth="10%p"
>
<Key
latin:keyLabel="ض"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="ص" />
<Key
latin:keyLabel="ق" />
<Key
latin:keyLabel="ف"
latin:popupCharacters="ڤ" />
<Key
latin:keyLabel="غ" />
<Key
latin:keyLabel="ع" />
<Key
latin:keyLabel="ه"
latin:popupCharacters="هـ" />
<Key
latin:keyLabel="خ" />
<Key
latin:keyLabel="ح" />
<Key
latin:keyLabel="ج"
latin:popupCharacters="چ"
latin:keyWidth="fillRight"
latin:keyEdgeFlags="right" />
</Row>
<Row
latin:keyWidth="10%p"
>
<Key
latin:keyLabel="ش"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="س" />
<Key
latin:keyLabel="ي"
latin:popupCharacters="ى,ئ" />
<Key
latin:keyLabel="ب"
latin:popupCharacters="پ" />
<Key
latin:keyLabel="ل"
latin:popupCharacters="لا" />
<Key
latin:keyLabel="ا"
latin:popupCharacters="أ,إ,آ,ء" />
<Key
latin:keyLabel="ت" />
<Key
latin:keyLabel="ن" />
<Key
latin:keyLabel="م" />
<Key
latin:keyLabel="ك"
latin:popupCharacters="گ"
latin:keyWidth="fillRight"
latin:keyEdgeFlags="right" />
</Row>
<Row
latin:keyWidth="9.7%p"
>
<Key
latin:keyLabel="ظ"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="ط" />
<Key
latin:keyLabel="ذ" />
<Key
latin:keyLabel="د" />
<Key
latin:keyLabel="ز"
latin:popupCharacters="ژ" />
<Key
latin:keyLabel="ر" />
<Key
latin:keyLabel="و"
latin:popupCharacters="ؤ" />
<Key
latin:keyLabel="ة" />
<Key
latin:keyLabel="ث" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight"
latin:visualInsetsLeft="1%p"
latin:keyEdgeFlags="right" />
</Row>
<include latin:keyboardLayout="@xml/kbd_qwerty_row4" />
</merge>