diff --git a/java/res/xml-sw600dp/rowkeys_farsi2.xml b/java/res/xml-sw600dp/rowkeys_farsi2.xml index 98e0f2186623f9aeec780455a1d0dcebb3d0cfce..234f9843088c807b71b1c62961db9a42665c8c3d 100644 --- a/java/res/xml-sw600dp/rowkeys_farsi2.xml +++ b/java/res/xml-sw600dp/rowkeys_farsi2.xml @@ -29,10 +29,12 @@ latin:keyLabel="س" /> <!-- U+06CC: "ÛŒ" ARABIC LETTER FARSI YEH U+0626: "ئ" ARABIC LETTER YEH WITH HAMZA ABOVE - U+064A: "ÙŠ" ARABIC LETTER YEH --> + U+064A: "ÙŠ" ARABIC LETTER YEH + U+FBE8: "ﯨ" ARABIC LETTER UIGHUR KAZAKH KIRGHIZ ALEF MAKSURA INITIAL FORM + U+0649: "Ù‰" ARABIC LETTER ALEF MAKSURA --> <Key latin:keyLabel="ی" - latin:moreKeys="ئ,ي" /> + latin:moreKeys="ئ,ي,ﯨ|ى" /> <!-- U+0628: "ب" ARABIC LETTER BEH --> <Key latin:keyLabel="ب" /> @@ -42,17 +44,18 @@ <!-- U+0627: "ا" ARABIC LETTER ALEF U+0621: "Ø¡" ARABIC LETTER HAMZA U+0622: "Ø¢" ARABIC LETTER ALEF WITH MADDA ABOVE - U+0672: "Ù²" ARABIC LETTER ALEF WITH WAVY HAMZA ABOVE + U+0623: "Ø£" ARABIC LETTER ALEF WITH HAMZA ABOVE U+0671: "Ù±" ARABIC LETTER ALEF WASLA - U+0673: "Ù³" ARABIC LETTER ALEF WITH WAVY HAMZA BELOW--> - <!-- TODO: DroidSansArabic lacks the glyph of U+0672 ARABIC LETTER ALEF WITH WAVY HAMZA ABOVE --> - <!-- TODO: DroidSansArabic lacks the glyph of U+0673 ARABIC LETTER ALEF WITH WAVY HAMZA BELOW --> + U+0625: "Ø¥" ARABIC LETTER ALEF WITH HAMZA BELOW --> <Key latin:keyLabel="ا" - latin:moreKeys="ء,آ,ٲ,ٱ,ٳ" /> - <!-- U+062A: "ت" ARABIC LETTER TEH --> + latin:moreKeys="ء,آ,أ,ٱ,إ" /> + <!-- U+062A: "ت" ARABIC LETTER TEH + U+062B: "ﺙ" ARABIC LETTER THEH + U+0629: "Ø©": ARABIC LETTER TEH MARBUTA --> <Key - latin:keyLabel="ت" /> + latin:keyLabel="ت" + latin:moreKeys="ث,ة" /> <!-- U+0646: "Ù†" ARABIC LETTER NOON --> <Key latin:keyLabel="ن" /> diff --git a/java/res/xml-sw600dp/rowkeys_farsi3.xml b/java/res/xml-sw600dp/rowkeys_farsi3.xml index c80c14a55696b5d4b5c19de15c92889dec4f9179..cb81840030d6aa0b43435bf6cc367afe7bb790fa 100644 --- a/java/res/xml-sw600dp/rowkeys_farsi3.xml +++ b/java/res/xml-sw600dp/rowkeys_farsi3.xml @@ -45,9 +45,8 @@ <Key latin:keyLabel="پ" /> <!-- U+0648: "Ùˆ" ARABIC LETTER WAW - U+0676: "Ù¶" ARABIC LETTER HIGH HAMZA WAW --> - <!-- TODO: DroidSansArabic lacks the glyph of U+0676 ARABIC LETTER HIGH HAMZA WAW --> + U+0624: "ؤ" ARABIC LETTER WAW WITH HAMZA ABOVE --> <Key latin:keyLabel="و" - latin:moreKeys="ٶ" /> + latin:moreKeys="ؤ" /> </merge> diff --git a/java/res/xml-sw600dp/rowkeys_symbols2.xml b/java/res/xml-sw600dp/rowkeys_symbols2.xml index 6fe86240c9b7f2d21a6fffc6f624edb4ddb9ba20..d7067e0cfea2cf6a7c835124dc2f253b97464cd0 100644 --- a/java/res/xml-sw600dp/rowkeys_symbols2.xml +++ b/java/res/xml-sw600dp/rowkeys_symbols2.xml @@ -21,15 +21,43 @@ <merge xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" > - <Key - latin:keyLabel="#" /> + <switch> + <case + latin:languageCode="fa" + > + <!-- U+066C: "Ù¬" ARABIC THOUSANDS SEPARATOR --> + <Key + latin:keyLabel="٬" + latin:keyHintLabel="&" + latin:keyLabelFlags="hasPopupHint|hasShiftedLetterHint" + latin:moreKeys="&" /> + </case> + <default> + <Key + latin:keyLabel="#" /> + </default> + </switch> <Key latin:keyStyle="currencyKeyStyle" /> <Key latin:keyLabel="!text/keylabel_for_symbols_percent" latin:moreKeys="!text/more_keys_for_symbols_percent" /> - <Key - latin:keyLabel="&" /> + <switch> + <case + latin:languageCode="fa" + > + <!-- U+066B: "Ù«" ARABIC DECIMAL SEPARATOR --> + <Key + latin:keyLabel="٫" + latin:keyHintLabel="#" + latin:keyLabelFlags="hasPopupHint|hasShiftedLetterHint" + latin:moreKeys="#" /> + </case> + <default> + <Key + latin:keyLabel="&" /> + </default> + </switch> <Key latin:keyLabel="*" latin:moreKeys="!text/more_keys_for_star" /> diff --git a/java/res/xml/keys_less_greater.xml b/java/res/xml/keys_less_greater.xml index 4584e5c96994d62c1b3a3e9707df8542909bbe6d..bc9ecdf2ffea83892067dc12de8f3f6519ba6017 100644 --- a/java/res/xml/keys_less_greater.xml +++ b/java/res/xml/keys_less_greater.xml @@ -21,12 +21,30 @@ <merge xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" > - <Key - latin:keyLabel="<" - latin:code="!code/key_less_than" - latin:moreKeys="!text/more_keys_for_less_than" /> - <Key - latin:keyLabel=">" - latin:code="!code/key_greater_than" - latin:moreKeys="!text/more_keys_for_greater_than" /> + <switch> + <case + latin:languageCode="fa" + > + <!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK --> + <Key + latin:keyLabel="«" + latin:code="0x00BB" + latin:moreKeys="!text/more_keys_for_less_than" /> + <Key + latin:keyLabel="»" + latin:code="0x00AB" + latin:moreKeys="!text/more_keys_for_greater_than" /> + </case> + <default> + <Key + latin:keyLabel="<" + latin:code="!code/key_less_than" + latin:moreKeys="!text/more_keys_for_less_than" /> + <Key + latin:keyLabel=">" + latin:code="!code/key_greater_than" + latin:moreKeys="!text/more_keys_for_greater_than" /> + </default> + </switch> </merge> diff --git a/java/res/xml/rowkeys_farsi1.xml b/java/res/xml/rowkeys_farsi1.xml index 81618af771adc936540fa18d917dbf60f410cb2f..840b048f788b6c907724197e3cae37c78f9083f5 100644 --- a/java/res/xml/rowkeys_farsi1.xml +++ b/java/res/xml/rowkeys_farsi1.xml @@ -27,32 +27,32 @@ <Key latin:keyLabel="ص" latin:moreKeys="ض,%" - latin:keyHintLabel="1" - latin:additionalMoreKeys="1,۱" /> + latin:keyHintLabel="۱" + latin:additionalMoreKeys="۱,1" /> <!-- U+0642: "Ù‚" ARABIC LETTER QAF U+06F2: "Û²" EXTENDED ARABIC-INDIC DIGIT TWO --> <Key latin:keyLabel="ق" - latin:keyHintLabel="2" - latin:additionalMoreKeys="2,۲" /> + latin:keyHintLabel="۲" + latin:additionalMoreKeys="۲,2" /> <!-- U+0641: "Ù" ARABIC LETTER FEH U+06F3: "Û³" EXTENDED ARABIC-INDIC DIGIT THREE --> <Key latin:keyLabel="ف" - latin:keyHintLabel="3" - latin:additionalMoreKeys="3,۳" /> + latin:keyHintLabel="۳" + latin:additionalMoreKeys="۳,3" /> <!-- U+063A: "غ" ARABIC LETTER GHAIN U+06F4: "Û´" EXTENDED ARABIC-INDIC DIGIT FOUR --> <Key latin:keyLabel="غ" - latin:keyHintLabel="4" - latin:additionalMoreKeys="4,۴" /> + latin:keyHintLabel="۴" + latin:additionalMoreKeys="۴,4" /> <!-- U+0639: "ع" ARABIC LETTER AIN U+06F5: "Ûµ" EXTENDED ARABIC-INDIC DIGIT FIVE --> <Key latin:keyLabel="ع" - latin:keyHintLabel="5" - latin:additionalMoreKeys="5,۵" /> + latin:keyHintLabel="۵" + latin:additionalMoreKeys="۵,5" /> <!-- U+0647: "Ù‡" ARABIC LETTER HEH U+FEEB: "ﻫ" ARABIC LETTER HEH INITIAL FORM U+0647/U+200D: ARABIC LETTER HEH + ZERO WIDTH JOINER @@ -62,30 +62,30 @@ <Key latin:keyLabel="ه" latin:moreKeys="ﻫ|ه‍,هٔ,ة,%" - latin:keyHintLabel="6" - latin:additionalMoreKeys="6,۶" /> + latin:keyHintLabel="۶" + latin:additionalMoreKeys="۶,6" /> <!-- U+062E: "Ø®" ARABIC LETTER KHAH U+06F7: "Û·" EXTENDED ARABIC-INDIC DIGIT SEVEN --> <Key latin:keyLabel="خ" - latin:keyHintLabel="7" - latin:additionalMoreKeys="7,۷" /> + latin:keyHintLabel="۷" + latin:additionalMoreKeys="۷,7" /> <!-- U+062D: "Ø" ARABIC LETTER HAH U+06F8: "Û¸" EXTENDED ARABIC-INDIC DIGIT EIGHT --> <Key latin:keyLabel="ح" - latin:keyHintLabel="8" - latin:additionalMoreKeys="8,۸" /> + latin:keyHintLabel="۸" + latin:additionalMoreKeys="۸,8" /> <!-- U+062C: "ج" ARABIC LETTER JEEM U+06F9: "Û¹" EXTENDED ARABIC-INDIC DIGIT NINE --> <Key latin:keyLabel="ج" - latin:keyHintLabel="9" - latin:additionalMoreKeys="9,۹" /> + latin:keyHintLabel="۹" + latin:additionalMoreKeys="۹,9" /> <!-- U+0686: "Ú†" ARABIC LETTER TCHEH U+06F0: "Û°" EXTENDED ARABIC-INDIC DIGIT ZERO --> <Key latin:keyLabel="چ" - latin:keyHintLabel="0" - latin:additionalMoreKeys="0,۰" /> + latin:keyHintLabel="۰" + latin:additionalMoreKeys="۰,0" /> </merge> diff --git a/java/res/xml/rowkeys_farsi2.xml b/java/res/xml/rowkeys_farsi2.xml index 77279c60fe976c3d3f30868f972fb67b8c2dbee9..21548936e7016457231a2d506027ede8b1ba5586 100644 --- a/java/res/xml/rowkeys_farsi2.xml +++ b/java/res/xml/rowkeys_farsi2.xml @@ -31,10 +31,12 @@ latin:moreKeys="ض" /> <!-- U+06CC: "ÛŒ" ARABIC LETTER FARSI YEH U+0626: "ئ" ARABIC LETTER YEH WITH HAMZA ABOVE - U+064A: "ÙŠ" ARABIC LETTER YEH --> + U+064A: "ÙŠ" ARABIC LETTER YEH + U+FBE8: "ﯨ" ARABIC LETTER UIGHUR KAZAKH KIRGHIZ ALEF MAKSURA INITIAL FORM + U+0649: "Ù‰" ARABIC LETTER ALEF MAKSURA --> <Key latin:keyLabel="ی" - latin:moreKeys="ئ,ي" /> + latin:moreKeys="ئ,ي,ﯨ|ى" /> <!-- U+0628: "ب" ARABIC LETTER BEH --> <Key latin:keyLabel="ب" /> @@ -44,19 +46,18 @@ <!-- U+0627: "ا" ARABIC LETTER ALEF U+0621: "Ø¡" ARABIC LETTER HAMZA U+0622: "Ø¢" ARABIC LETTER ALEF WITH MADDA ABOVE - U+0672: "Ù²" ARABIC LETTER ALEF WITH WAVY HAMZA ABOVE + U+0623: "Ø£" ARABIC LETTER ALEF WITH HAMZA ABOVE U+0671: "Ù±" ARABIC LETTER ALEF WASLA - U+0673: "Ù³" ARABIC LETTER ALEF WITH WAVY HAMZA BELOW--> - <!-- TODO: DroidSansArabic lacks the glyph of U+0672 ARABIC LETTER ALEF WITH WAVY HAMZA ABOVE --> - <!-- TODO: DroidSansArabic lacks the glyph of U+0673 ARABIC LETTER ALEF WITH WAVY HAMZA BELOW --> + U+0625: "Ø¥" ARABIC LETTER ALEF WITH HAMZA BELOW --> <Key latin:keyLabel="ا" - latin:moreKeys="ء,آ,ٲ,ٱ,ٳ" /> + latin:moreKeys="ء,آ,أ,ٱ,إ" /> <!-- U+062A: "ت" ARABIC LETTER TEH - U+062B: "ﺙ" ARABIC LETTER THEH --> + U+062B: "ﺙ" ARABIC LETTER THEH + U+0629: "Ø©": ARABIC LETTER TEH MARBUTA --> <Key latin:keyLabel="ت" - latin:moreKeys="ث" /> + latin:moreKeys="ث,ة" /> <!-- U+0646: "Ù†" ARABIC LETTER NOON --> <Key latin:keyLabel="ن" /> diff --git a/java/res/xml/rowkeys_farsi3.xml b/java/res/xml/rowkeys_farsi3.xml index 44710e06ae227811b3cb6335eb7e3c2d06a4d67c..29c35134cdd32d18cfb879d477aec86521cb150d 100644 --- a/java/res/xml/rowkeys_farsi3.xml +++ b/java/res/xml/rowkeys_farsi3.xml @@ -44,11 +44,10 @@ <Key latin:keyLabel="پ" /> <!-- U+0648: "Ùˆ" ARABIC LETTER WAW - U+0676: "Ù¶" ARABIC LETTER HIGH HAMZA WAW --> - <!-- TODO: DroidSansArabic lacks the glyph of U+0676 ARABIC LETTER HIGH HAMZA WAW --> + U+0624: "ؤ" ARABIC LETTER WAW WITH HAMZA ABOVE --> <Key latin:keyLabel="و" - latin:moreKeys="ٶ" /> + latin:moreKeys="ؤ" /> <!-- U+06AF: "Ú¯" ARABIC LETTER GAF --> <Key latin:keyLabel="گ" /> diff --git a/java/res/xml/rowkeys_symbols2.xml b/java/res/xml/rowkeys_symbols2.xml index 34b9aa2ee554c5fa01b1081a718dff0d95263f42..425e20470e1a2926694ce642f6926aafcbfa582c 100644 --- a/java/res/xml/rowkeys_symbols2.xml +++ b/java/res/xml/rowkeys_symbols2.xml @@ -21,10 +21,28 @@ <merge xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" > - <Key - latin:keyLabel="\@" /> - <Key - latin:keyLabel="\#" /> + <switch> + <case + latin:languageCode="fa" + > + <!-- U+066C: "Ù¬" ARABIC THOUSANDS SEPARATOR + U+066B: "Ù«" ARABIC DECIMAL SEPARATOR --> + <Key + latin:keyLabel="٬" + latin:keyHintLabel="\@" + latin:moreKeys="\@" /> + <Key + latin:keyLabel="٫" + latin:keyHintLabel="#" + latin:moreKeys="#" /> + </case> + <default> + <Key + latin:keyLabel="\@" /> + <Key + latin:keyLabel="#" /> + </default> + </switch> <Key latin:keyStyle="currencyKeyStyle" /> <Key diff --git a/java/res/xml/rowkeys_symbols3.xml b/java/res/xml/rowkeys_symbols3.xml index 2b2d9a4eac90460d48436cfaa9be2e40ad17cfba..c89716bc7a27f86dc54e10c68510bd2ada525a11 100644 --- a/java/res/xml/rowkeys_symbols3.xml +++ b/java/res/xml/rowkeys_symbols3.xml @@ -24,12 +24,30 @@ <Key latin:keyLabel="!text/keylabel_for_symbols_exclamation" latin:moreKeys="!text/more_keys_for_symbols_exclamation" /> - <Key - latin:keyLabel=""" - latin:moreKeys="!text/more_keys_for_double_quote" /> - <Key - latin:keyLabel="\'" - latin:moreKeys="!text/more_keys_for_single_quote" /> + <switch> + <case + latin:languageCode="fa" + > + <!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK --> + <Key + latin:keyLabel="«" + latin:code="0x00BB" + latin:moreKeys="!text/more_keys_for_double_quote" /> + <Key + latin:keyLabel="»" + latin:code="0x00AB" + latin:moreKeys="!text/more_keys_for_single_quote" /> + </case> + <default> + <Key + latin:keyLabel=""" + latin:moreKeys="!text/more_keys_for_double_quote" /> + <Key + latin:keyLabel="\'" + latin:moreKeys="!text/more_keys_for_single_quote" /> + </default> + </switch> <Key latin:keyLabel=":" /> <Key diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java index 917e233a826921a446a13a539a1e769b897e858a..1e3a0a5baef996ee2ae8bea3905c97f2f2e16fea 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java @@ -993,7 +993,7 @@ public final class KeyboardTextsSet { /* ~41 */ // TODO: Neither DroidSans nor Roboto have the glyph for U+201F DOUBLE HIGH-REVERSED-9 QUOTATION MARK // <string name="more_keys_for_double_quote">“,”,„,‟,«|»,»|«</string> - /* 42 */ "!fixedColumnOrder!4,\u201C,\u201D,\u00AB|\u00BB,\u00BB|\u00AB", + /* 42 */ "!fixedColumnOrder!4,\u201C,\u201D,\",\'", // TODO: Neither DroidSans nor Roboto have the glyph for U+201F DOUBLE HIGH-REVERSED-9 QUOTATION MARK // <string name="more_keys_for_tablet_double_quote">!fixedColumnOrder!6,“,”,„,‟,«|»,»|«;,‘,’,‚,‛</string> /* 43 */ "!fixedColumnOrder!4,\u201C,\u201D,\u00AB|\u00BB,\u00BB|\u00AB,\u2018,\u2019,\u201A,\u201B", @@ -1031,8 +1031,8 @@ public final class KeyboardTextsSet { // U+201D: "â€" RIGHT DOUBLE QUOTATION MARK // U+201E: "„" DOUBLE LOW-9 QUOTATION MARK // U+201F: "‟" DOUBLE HIGH-REVERSED-9 QUOTATION MARK - /* 54 */ "!fixedColumnOrder!3,\u2039|\u203A,\u2264|\u2265,\u00AB|\u00BB", - /* 55 */ "!fixedColumnOrder!3,\u203A|\u2039,\u2265|\u2264,\u00BB|\u00AB", + /* 54 */ "!fixedColumnOrder!3,\u2039|\u203A,\u2264|\u2265,<|>", + /* 55 */ "!fixedColumnOrder!3,\u203A|\u2039,\u2265|\u2264,>|<", // U+0655: "Ù•" ARABIC HAMZA BELOW // U+0652: "Ù’" ARABIC SUKUN // U+0651: "Ù‘" ARABIC SHADDA @@ -1049,7 +1049,7 @@ public final class KeyboardTextsSet { // U+0640: "Ù€" ARABIC TATWEEL // In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. /* 56 */ "!fixedColumnOrder!7,\u0655,\u0652,\u0651,\u064C,\u064D,\u064B,\u0654,\u0656,\u0670,\u0653,\u064F,\u0650,\u064E,\u0640\u0640\u0640|\u0640", - /* 57 */ "\u0653", + /* 57 */ "\u064B", // U+06F1: "Û±" EXTENDED ARABIC-INDIC DIGIT ONE /* 58 */ "\u06F1", // U+06F2: "Û²" EXTENDED ARABIC-INDIC DIGIT TWO diff --git a/tools/maketext/res/values-fa/donottranslate-more-keys.xml b/tools/maketext/res/values-fa/donottranslate-more-keys.xml index b34e580e9d91388aecf705c466367fdb19d58c6f..e64af95c4745f28eb29f3fdd9725ef945d8ac6ae 100644 --- a/tools/maketext/res/values-fa/donottranslate-more-keys.xml +++ b/tools/maketext/res/values-fa/donottranslate-more-keys.xml @@ -100,11 +100,11 @@ U+201D: "â€" RIGHT DOUBLE QUOTATION MARK U+201E: "„" DOUBLE LOW-9 QUOTATION MARK U+201F: "‟" DOUBLE HIGH-REVERSED-9 QUOTATION MARK --> - <string name="more_keys_for_less_than">!fixedColumnOrder!3,‹|›,≤|≥,«|»</string> - <string name="more_keys_for_greater_than">!fixedColumnOrder!3,›|‹,≥|≤,»|«</string> + <string name="more_keys_for_less_than">!fixedColumnOrder!3,‹|›,≤|≥,<|></string> + <string name="more_keys_for_greater_than">!fixedColumnOrder!3,›|‹,≥|≤,>|<</string> <!-- TODO: Neither DroidSans nor Roboto have the glyph for U+201F DOUBLE HIGH-REVERSED-9 QUOTATION MARK --> <!-- <string name="more_keys_for_double_quote">“,”,„,‟,«|»,»|«</string> --> - <string name="more_keys_for_double_quote">!fixedColumnOrder!4,“,”,«|»,»|«</string> + <string name="more_keys_for_double_quote">!fixedColumnOrder!4,“,”,\",\'</string> <!-- TODO: Neither DroidSans nor Roboto have the glyph for U+201F DOUBLE HIGH-REVERSED-9 QUOTATION MARK --> <!-- <string name="more_keys_for_tablet_double_quote">!fixedColumnOrder!6,“,”,„,‟,«|»,»|«;,‘,’,‚,‛</string> --> <string name="more_keys_for_tablet_double_quote">!fixedColumnOrder!4,“,”,«|»,»|«,‘,’,‚,‛</string>