From 3a5e137aac940fece1eefdd7d38ec1daf5fd79a4 Mon Sep 17 00:00:00 2001 From: David Black Date: Wed, 13 Mar 2013 16:35:57 +0000 Subject: [PATCH] new app disable pending licence com.anysoftkeyboard.languagepack.persian --- ...m.anysoftkeyboard.languagepack.persian.txt | 37 ++++++++++++++ .../rules.patch | 18 +++++++ .../xml.patch | 51 +++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 metadata/com.anysoftkeyboard.languagepack.persian.txt create mode 100644 metadata/com.anysoftkeyboard.languagepack.persian/rules.patch create mode 100644 metadata/com.anysoftkeyboard.languagepack.persian/xml.patch diff --git a/metadata/com.anysoftkeyboard.languagepack.persian.txt b/metadata/com.anysoftkeyboard.languagepack.persian.txt new file mode 100644 index 0000000000..ecc7be8804 --- /dev/null +++ b/metadata/com.anysoftkeyboard.languagepack.persian.txt @@ -0,0 +1,37 @@ +Category:Office +License:Unknown +Web Site:http://www.pedramhayati.com/2011/05/15/persianfarsi-language-for-android +Source Code:https://github.com/pi3ch/persian_anysoftkeyboard +Issue Tracker:https://github.com/pi3ch/persian_anysoftkeyboard/issues + +Name:AnySoftKeyboard: Persian +Summary:Language pack for AnySoft keyboard +Description: +N.B You may need to install Persian fonts. This process would require root +and is described on the website. + +* Full Persian keyboards +* Farsi and Pinglish word suggestion and auto completion +* Persian numbers + +Dictionaries are based on +[http://ece.ut.ac.ir/dbrg/Hamshahri/download.html Hamshahri Corpus]. +. + +Repo Type:git +Repo:https://github.com/pi3ch/persian_anysoftkeyboard + +#Uses old format, therefore we won't use ASK-API +Build Version:20120613-persian-numbers,4,!no licence 5c341f2e73,patch=xml.patch;rules.patch,\ +srclibs=AnySoftKeyboardTools@73e9a09496,prebuild=\ +mkdir -p res/raw/ dict/ && rm -rf assets/ gen/ && \ +cp res/xml/pi.xml dict/words.xml && ant dict -f custom_rules.xml && \ +mv res/raw/words_1.dict words_2.dict && \ +cp res/xml/fa.xml dict/words.xml && ant dict -f custom_rules.xml && \ +rm dict/words.xml && mv words_2.dict res/raw/ + +Auto Update Mode:None +Update Check Mode:RepoManifest +Current Version:20120613-persian-numbers +Current Version Code:4 + diff --git a/metadata/com.anysoftkeyboard.languagepack.persian/rules.patch b/metadata/com.anysoftkeyboard.languagepack.persian/rules.patch new file mode 100644 index 0000000000..f950dcbcc3 --- /dev/null +++ b/metadata/com.anysoftkeyboard.languagepack.persian/rules.patch @@ -0,0 +1,18 @@ +diff --git a/custom_rules.xml b/custom_rules.xml +new file mode 100644 +index 0000000..575a987 +--- /dev/null ++++ b/custom_rules.xml +@@ -0,0 +1,12 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ diff --git a/metadata/com.anysoftkeyboard.languagepack.persian/xml.patch b/metadata/com.anysoftkeyboard.languagepack.persian/xml.patch new file mode 100644 index 0000000000..1d2a9ef019 --- /dev/null +++ b/metadata/com.anysoftkeyboard.languagepack.persian/xml.patch @@ -0,0 +1,51 @@ +diff --git a/res/values/strings.xml b/res/values/strings.xml +index c2b8920..57851ec 100755 +--- a/res/values/strings.xml ++++ b/res/values/strings.xml +@@ -2,6 +2,7 @@ + + Persian for AnySoftKeyboard + Persian +- Persian ++ Farsi ++ Pinglish + Persian (Pinglish) + +diff --git a/res/xml/dictionaries.xml b/res/xml/dictionaries.xml +index 48243b3..85bab61 100755 +--- a/res/xml/dictionaries.xml ++++ b/res/xml/dictionaries.xml +@@ -4,23 +4,20 @@ + id := a UUID (you may want to generate this using our simple Java program at: /trunk/project/dict_creation (uuidgen_Windows.bat or uuidgen_Linux) + locale := a locate identifier for this dictionary. E.g., English will be en, Hebrew will be iw, etc. + nameResId := the resource Id which holds the name of the dictionary. See strings.xml. +- type := currently we only support binary dictionaries. +- dictionaryAssertName := the binary data holder ++ dictionaryResourceId := the binary data holder + description := some text you would like to add. + --> + + + +- +\ No newline at end of file ++ id="634289ff-366c-4cd8-ab69-e8b0eab3fc25" ++ locale="pi" ++ nameResId="@string/pinglish_dictionary" ++ dictionaryResourceId="@raw/words_2" ++ description="Pinglish (Persian with English letters) common word from Hamshahri newspaper dataset"/> ++