52 lines
2.2 KiB
Diff
52 lines
2.2 KiB
Diff
|
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>
|