new app disable pending licence com.anysoftkeyboard.languagepack.persian

This commit is contained in:
David Black 2013-03-13 16:35:57 +00:00
parent 43480ccd66
commit 3a5e137aac
3 changed files with 106 additions and 0 deletions

View file

@ -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

View file

@ -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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="custom_rules" >
+ <target name="dict" >
+
+ <java
+ failonerror="true"
+ fork="true"
+ jar="../extlib/AnySoftKeyboardTools/makedict/makedict.jar" >
+ </java>
+ </target>
+
+</project>

View file

@ -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 @@
<resources>
<string name="app_name">Persian for AnySoftKeyboard</string>
<string name="keyboard">Persian</string>
- <string name="dictionary">Persian</string>
+ <string name="farsi_dictionary">Farsi</string>
+ <string name="pinglish_dictionary">Pinglish</string>
<string name="pinglish_keyboard">Persian (Pinglish)</string>
</resources>
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.
-->
<Dictionary
id="0fda79fb-45d6-4e98-b20c-b554bd0412df"
locale="fa"
- nameResId="@string/dictionary"
- type="binary"
- dictionaryAssertName="fa_dict.mp3"
+ nameResId="@string/farsi_dictionary"
+ dictionaryResourceId="@raw/words_1"
description="Persian common word from Hamshahri newspaper dataset"/>
<Dictionary
- id="634289ff-366c-4cd8-ab69-e8b0eab3fc25"
- locale="pi"
- nameResId="@string/dictionary"
- type="binary"
- dictionaryAssertName="pi_dict.mp3"
- description="Pinglish (Persian with English letters) common word from Hamshahri newspaper dataset"/>
-</Dictionaries>
\ 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"/>
+</Dictionaries>