From 339d11d0ac6af7da06e1c39336df14e645c47e1a Mon Sep 17 00:00:00 2001 From: Roi Date: Wed, 5 Sep 2018 22:39:38 +0300 Subject: [PATCH] Add Farsi contextual form --- .../gadgetbridge/util/RtlUtils.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java index 73c4beb93..5ebb1b39a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java @@ -177,6 +177,13 @@ public class RtlUtils { put((char)('ل' + 'أ'), '\uFEF7'); put((char)('ل' + 'إ'), '\uFEF9'); put((char)('ل' + 'ا'), '\uFEFB'); + //Farsi + put('گ', '\uFB92'); + put('ک', '\uFB8E'); + put('چ', '\uFB7A'); + put('پ', '\uFB56'); + put('ژ', '\uFB8A'); + put('ی', '\uFBFC'); } }; @@ -207,6 +214,12 @@ public class RtlUtils { put('ه', '\uFEEB'); put('ي', '\uFEF3'); put('ئ', '\uFE8B'); + //Farsi + put('گ', '\uFB94'); + put('ک', '\uFB90'); + put('چ', '\uFB7C'); + put('پ', '\uFB58'); + put('ی', '\uFBFE'); } }; @@ -236,6 +249,12 @@ public class RtlUtils { put('ه', '\uFEEC'); put('ي', '\uFEF4'); put('ئ', '\uFE8C'); + //Farsi + put('گ', '\uFB95'); + put('ک', '\uFB91'); + put('چ', '\uFB7D'); + put('پ', '\uFB59'); + put('ی', '\uFBFF'); } }; @@ -281,6 +300,13 @@ public class RtlUtils { put((char)('ل' + 'أ'), '\uFEF8'); put((char)('ل' + 'إ'), '\uFEFA'); put((char)('ل' + 'ا'), '\uFEFC'); + //Farsi + put('گ', '\uFB93'); + put('ک', '\uFB8F'); + put('چ', '\uFB7B'); + put('پ', '\uFB57'); + put('ژ', '\uFB8B'); + put('ی', '\uFBFD'); } }; public enum contextualState{