new app com.anysoftkeyboard.languagepack.hungarian

This commit is contained in:
David Black 2013-03-11 17:06:53 +00:00
parent b7a8ad87a4
commit e0efd9d211
5 changed files with 214 additions and 1 deletions

View file

@ -11,7 +11,8 @@ Description:
Repo Type:git
Repo:https://github.com/AnySoftKeyboard/LanguagePack.git
Build Version:1,1,!working template 5eabfc,forceversion=yes,patch=Example.patch,\
Build Version:1,1,!working template: also see com.anysoftkeyboard.languagepack.hungarian (at 5eabfc),\
forceversion=yes,patch=Example.patch,\
srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,\
prebuild=sed -i 's@\(android.library.reference.1=\).*@\1$$AnySoftKeyboard-API$$@' project.properties && \
sed -i 's/change_me/example/g' AndroidManifest.xml && \

View file

@ -0,0 +1,35 @@
Category:Office
License:GPLv3
Web Site:https://github.com/rhornig/anysoftkeyboard-hungarian
Source Code:https://bitbucket.org/dalb8/anysoft-language-pack-hungarian
Issue Tracker:https://github.com/rhornig/anysoftkeyboard-hungarian/issues
Name:AnySoftKeyboard: Magyar
Summary:Language pack for AnySoft keyboard
Description:
Layouts and dictionaries for the Hungarian language.
.
Repo Type:git
#Original repo: the commented recipe below makes an error in fdroid
#Repo:https://github.com/rhornig/anysoftkeyboard-hungarian
Repo:https://bitbucket.org/dalb8/anysoft-language-pack-hungarian
#Build Version:20120208,12,v20120208,\
#patch=add-custom_rules.patch;add-icon.patch;dictionaries.patch,\
#srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,\
#prebuild=echo "android.library.reference.1=$$AnySoftKeyboard-API$$" >> project.properties && \
#mkdir -p dict res/raw StoreStuff && mv dic/hu_HU-1.6.1.xml dict/words.xml && \
#rm -rf assets/ dic/ && \
#cp res/drawable/app_icon.png StoreStuff/landscape.png && \
#cp res/drawable/app_icon.png StoreStuff/portrait.png && \
#cp res/drawable/app_icon.png StoreStuff/store_hi_res_icon.png
Build Version:20120208,12,987626b,\
srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,prebuild=mkdir -p res/raw
Auto Update Mode:None
Update Check Mode:None
Current Version:1.0
Current Version Code:1

View file

@ -0,0 +1,70 @@
diff --git a/custom_rules.xml b/custom_rules.xml
new file mode 100644
index 0000000..b5a2677
--- /dev/null
+++ b/custom_rules.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="custom_rules" >
+
+ <target name="-set-build-type-value" >
+
+ <condition property="is.release" >
+
+ <contains
+ string="${ant.project.invoked-targets}"
+ substring="release" />
+ </condition>
+
+ <condition property="is.debug" >
+
+ <contains
+ string="${ant.project.invoked-targets}"
+ substring="debug" />
+ </condition>
+ </target>
+
+ <target name="-pre-build-makedict" >
+
+ <java
+ failonerror="true"
+ fork="true"
+ jar="../extlib/AnySoftKeyboardTools/makedict/makedict.jar" >
+ </java>
+ </target>
+
+ <target
+ name="-pre-build-verify-pack-release"
+ if="is.release" >
+
+ <java
+ failonerror="true"
+ fork="true"
+ jar="../extlib/AnySoftKeyboardTools/packverifier/packverifier.jar" >
+
+ <arg value="release" >
+ </arg>
+ </java>
+ </target>
+
+ <target
+ name="-pre-build-verify-pack-debug"
+ if="is.debug" >
+
+ <java
+ failonerror="true"
+ fork="true"
+ jar="../extlib/AnySoftKeyboardTools/packverifier/packverifier.jar" >
+
+ <arg value="debug" >
+ </arg>
+ </java>
+ </target>
+
+ <target
+ name="release"
+ depends="-set-build-type-value,-pre-build-makedict,-pre-build-verify-pack-release" >
+ </target>
+
+</project>
\ No newline at end of file

View file

@ -0,0 +1,94 @@
diff --git a/res/xml-sw600dp/keyboards.xml b/res/xml-sw600dp/keyboards.xml
index e5203d3..1db2924 100644
--- a/res/xml-sw600dp/keyboards.xml
+++ b/res/xml-sw600dp/keyboards.xml
@@ -12,6 +12,7 @@
-->
<!-- Tablet keyboards -->
<Keyboard nameResId="@string/hungarian_keyboard_qwertz_tablet"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwertz"
landscapeResId="@xml/hu_qwertz_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwertz"
@@ -22,6 +23,7 @@
defaultEnabled="true" />
<Keyboard nameResId="@string/hungarian_keyboard_qwertz_tablet_split"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwertz"
landscapeResId="@xml/hu_qwertz_landscape_split"
physicalKeyboardMappingResId="@xml/hu_physical_qwertz"
@@ -32,6 +34,7 @@
defaultEnabled="true" />
<Keyboard nameResId="@string/hungarian_keyboard_qwerty_tablet"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwerty"
landscapeResId="@xml/hu_qwerty_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwerty"
@@ -42,6 +45,7 @@
defaultEnabled="false" />
<Keyboard nameResId="@string/hungarian_keyboard_qwerty_tablet_split"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwerty"
landscapeResId="@xml/hu_qwerty_landscape_split"
physicalKeyboardMappingResId="@xml/hu_physical_qwerty"
@@ -51,4 +55,4 @@
id="89588b6a-b788-468b-893d-b24d7d7fa0b6"
defaultEnabled="false" />
-</Keyboards>
\ No newline at end of file
+</Keyboards>
diff --git a/res/xml/keyboards.xml b/res/xml/keyboards.xml
index dda599d..59c5a5f 100644
--- a/res/xml/keyboards.xml
+++ b/res/xml/keyboards.xml
@@ -11,6 +11,7 @@
defaultEnabled := whether the layout is enabled by default
-->
<Keyboard nameResId="@string/hungarian_keyboard_qwertz"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwertz"
landscapeResId="@xml/hu_qwertz_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwertz"
@@ -21,6 +22,7 @@
defaultEnabled="true" />
<Keyboard nameResId="@string/hungarian_keyboard_qwertz_all"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwertz_all"
landscapeResId="@xml/hu_qwertz_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwertz"
@@ -31,6 +33,7 @@
defaultEnabled="false" />
<Keyboard nameResId="@string/hungarian_keyboard_qwerty"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwerty"
landscapeResId="@xml/hu_qwerty_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwerty"
@@ -41,6 +44,7 @@
defaultEnabled="false" />
<Keyboard nameResId="@string/hungarian_keyboard_qwerty_all"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_qwerty_all"
landscapeResId="@xml/hu_qwerty_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwerty"
@@ -51,6 +55,7 @@
defaultEnabled="false" />
<Keyboard nameResId="@string/hungarian_keyboard_yesaku"
+ iconResId="@drawable/app_icon"
layoutResId="@xml/hu_yesaku"
landscapeResId="@xml/hu_qwertz_landscape"
physicalKeyboardMappingResId="@xml/hu_physical_qwertz"
@@ -60,4 +65,4 @@
id="f7246eef-3553-46d8-a579-00c66907aab4"
defaultEnabled="false" />
-</Keyboards>
\ No newline at end of file
+</Keyboards>

View file

@ -0,0 +1,13 @@
diff --git a/res/xml/dictionaries.xml b/res/xml/dictionaries.xml
index a4e871f..61bbdcc 100644
--- a/res/xml/dictionaries.xml
+++ b/res/xml/dictionaries.xml
@@ -9,5 +9,5 @@
description := some text you would like to add.
<Dictionary nameResId="@string/eng_dictionary" key="English" type="binary" dictionaryAssertName="en_binary.mp3" description=""/>
-->
- <Dictionary nameResId="@string/hungarian_dictionary" locale="hu" id="35a800d5-0f7e-4e2a-9cb2-063167466ff0" type="binary" dictionaryAssertName="hu_binary.mp3" description="Based on magyarispell 1.6.1"/>
-</Dictionaries>
\ No newline at end of file
+ <Dictionary nameResId="@string/hungarian_dictionary" locale="hu" id="35a800d5-0f7e-4e2a-9cb2-063167466ff0" type="binary_resource" dictionaryResourceId="@array/words_dict_array" description="Based on magyarispell 1.6.1"/>
+</Dictionaries>