new ASK language pack for Spain (thanks csolisr)
This commit is contained in:
parent
db5f64c8f9
commit
3227820695
BIN
build/extlib/LanguagePacks/es.xml.gz
Normal file
BIN
build/extlib/LanguagePacks/es.xml.gz
Normal file
Binary file not shown.
34
metadata/com.anysoftkeyboard.languagepack.spain.txt
Normal file
34
metadata/com.anysoftkeyboard.languagepack.spain.txt
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Category:Office
|
||||||
|
License:GNUFDL/CCBYSA
|
||||||
|
Web Site:https://github.com/anysoftkeyboard
|
||||||
|
Source Code:http://softkeyboard.googlecode.com/svn/trunk/LanguagePacks/Spain
|
||||||
|
Issue Tracker:https://github.com/AnySoftKeyboard/LanguagePack/issues
|
||||||
|
Donate:http://code.google.com/p/softkeyboard
|
||||||
|
|
||||||
|
Name:AnySoftKeyboard: Spanish
|
||||||
|
Summary:Language pack for AnySoftKeyboard
|
||||||
|
Description:
|
||||||
|
Dictionary is based on the Wikipedia article database
|
||||||
|
which can be distributed under the terms of either the GNU Free Documentation
|
||||||
|
or the Creative Commons Attribution-ShareAlike licenses and
|
||||||
|
has about 200,000 words.
|
||||||
|
|
||||||
|
Install [[com.menny.android.anysoftkeyboard]] first, then select
|
||||||
|
the desired layout from AnySoftKeyboard's Settings->Keyboards menu.
|
||||||
|
.
|
||||||
|
|
||||||
|
Repo Type:svn
|
||||||
|
Repo:http://softkeyboard.googlecode.com/svn/trunk/LanguagePacks/Spain
|
||||||
|
|
||||||
|
Build Version:20110717,3,1813,\
|
||||||
|
patch=xml.patch;dump.patch,extlibs=LanguagePacks/es.xml.gz,\
|
||||||
|
srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,prebuild=\
|
||||||
|
sed -i 's@\(.1=\).*@\1$$AnySoftKeyboard-API$$@' project.properties && \
|
||||||
|
mkdir -p dict/ res/raw/ && gunzip -c libs/es.xml.gz > dict/words.xml && \
|
||||||
|
rm -rf assets/,build=java -jar $$AnySoftKeyboardTools$$/makedict/makedict.jar
|
||||||
|
|
||||||
|
Auto Update Mode:None
|
||||||
|
Update Check Mode:RepoManifest
|
||||||
|
Current Version:20110717
|
||||||
|
Current Version Code:3
|
||||||
|
|
12
metadata/com.anysoftkeyboard.languagepack.spain/dump.patch
Normal file
12
metadata/com.anysoftkeyboard.languagepack.spain/dump.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Index: esbuild.sh
|
||||||
|
===================================================================
|
||||||
|
--- a/esbuild.sh (revision 0)
|
||||||
|
+++ b/esbuild.sh (working copy)
|
||||||
|
@@ -0,0 +1,7 @@
|
||||||
|
+curl http://dumps.wikimedia.org/eswiki/20130521/eswiki-20130521-pages-articles.xml.bz2 -o eswiki-latest-pages-articles.xml.bz
|
||||||
|
+bzcat eswiki-latest-pages-articles.xml.bz > eswiki-latest-pages-articles.txt
|
||||||
|
+cat eswiki-latest-pages-articles.txt | grep -v '<[a-z]*\s' | grep -v '&[a-z0-9]*;' | tr '[:punct:][:blank:][:digit:]' '\n' | tr 'A-Z' 'a-z' | tr 'ÁÉÍÓÚÜÑÇ'
|
||||||
|
+'áéíóúüñç' > eswiki-latest-pages-articles.trim.txt
|
||||||
|
+cat eswiki-latest-pages-articles.trim.txt | uniq > eswiki-latest-pages-articles.unique.txt
|
||||||
|
+cat eswiki-latest-pages-articles.unique.txt | sort -f -T . | uniq -c | sort -nr -T . > eswiki-latest-pages-articles.sort.txt
|
||||||
|
+cat eswiki-latest-pages-articles.sort.txt | head -n 200000 | tail -n +2 | awk '{print "<w f=\""$1"\">"$2"</w>"}' > eswiki-latest-pages-articles.dict.txt
|
10
metadata/com.anysoftkeyboard.languagepack.spain/xml.patch
Normal file
10
metadata/com.anysoftkeyboard.languagepack.spain/xml.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/res/xml/dictionaries.xml (revision 1813)
|
||||||
|
+++ b/res/xml/dictionaries.xml (working copy)
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Dictionaries>
|
||||||
|
- <Dictionary nameResId="@string/dictionary" locale="es" id="39bd9067-eaf2-44ff-8f95-3d88dc4d1dc8" type="binary" dictionaryAssertName="es_binary.mp3" description="CyanogenMod Gingerbread dictionary"/>
|
||||||
|
-</Dictionaries>
|
||||||
|
\ No newline at end of file
|
||||||
|
+ <Dictionary nameResId="@string/dictionary" locale="es" id="39bd9067-eaf2-44ff-8f95-3d88dc4d1dc8" dictionaryResourceId="@array/words_dict_array" description="Created by Carlos Solís from Wikipedia 2013"/>
|
||||||
|
+</Dictionaries>
|
Loading…
Reference in a new issue