Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit 187a1e4

Browse files
committed
Galician language support
1 parent 5027031 commit 187a1e4

30 files changed

Lines changed: 36 additions & 86246 deletions

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Galician dictionary from ???. Galician flag image from [ic_launcherWikipedia](https://en.wikipedia.org/wiki/Galicia_(Spain)#/media/File:Flag_of_Galicia.svg)
1+
Galician dictionary extracted from [Galipedia articles dump](https://dumps.wikimedia.org/glwiki/20180220/).
2+
3+
Galician flag image from [Wikipedia](htt ps://en.wikipedia.org/wiki/Galicia_(Spain)#/media/File:Flag_of_Galicia.svg)
24

35
This is the common template for language Packs for the [AnySoftKeyboard](https://github.com/AnySoftKeyboard/AnySoftKeyboard) app for Android devices.
46
Each pack can contain and provide multiple keyboards or dictionaries for auto correction.
@@ -20,15 +22,15 @@ To start a new pack, follow this checklist:
2022
1. Change `applicationId` in `build.gradle` in the same way.
2123
1. Edit `src/main/res/xml/keyboards.xml` according to the comments in it. It references `src/main/res/xml/qwerty.xml`, so edit this as well. Have a look at all the other Language Pack branches, to get an idea, what is possible and how to correctly configure a keyboard.
2224
1. If you want to add more keyboards, you can do this by copying `qwerty.xml` and add a <keyboard> element in `keyboards.xml`. The user can pre-select in the ASK settings, which keyboards she would like to have available for toggling through.
23-
1. Edit `src/main/res/xml/dictionaries.xml`
25+
1. Edit `src/main/res/xml/dictionariesfor.xml`
2426
1. Edit `src/main/res/values/strings.xml`, change the strings there and possibly add some more which are referenced in the other xml files. Also, create a new folder `src/main/res/values-XX`, where `XX` is the correspondent two-letter ISO 639-1 language code.
2527
1. Edit (e.g. via Inkscape) one of the files in `src/main/svg-png/flag/` to represent the language, e.g. by using the flag from Wikipedia (the flag has to be placed on the right edge of the document and have the full height).
2628
1. Rebuild the drawables with `./gradlew svgToDrawablePng` or "Build" -> "Rebuild Project" in Android Studio. Drawables will be generated at `src/main/res/mipmap-*/`.
2729
1. Choose whether you like the standard or the broad variant and set that as application's `android:icon` in `src/main/AndroidManifest.xml`.
2830
1. You can also add a new `src/main/res/drawable/flag.png` and reference it in the `iconResId=""` attribute in the keyboards.xml.
2931
1. Put the source files for the dictionary into the dictionary/ directory. Take special care to take the conditions of the license into account, under which you obtained the data.
3032
1. Change the build.gradle to use and configure the tasks necessary. There are several different variants ([more Information](https://github.com/AnySoftKeyboard/AnySoftKeyboardTools/blob/master/README.md)):
31-
* `GenerateWordsListTask`
33+
* `GenerateWordsListTask`mergeAllWordLists
3234
* `GenerateWordsListFromAOSPTask`
3335
* `MergeWordsListTask`
3436
1. Change the README.md to reflect the characteristics of your pack

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ buildscript {
1313
repositories {
1414
jcenter()
1515
mavenCentral()
16+
google()
1617
maven { url 'https://jitpack.io' }
1718
maven { url "https://plugins.gradle.org/m2/" }
1819
}
1920
dependencies {
20-
classpath 'com.android.tools.build:gradle:3.0.1'
21+
classpath 'com.android.tools.build:gradle:3.1.0'
2122

2223
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:makedictionary:287fe7812294918636359e4d28dbcbc931f3dab8'
2324
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:generatewordslist:287fe7812294918636359e4d28dbcbc931f3dab8'
@@ -95,9 +96,7 @@ play {
9596
}
9697

9798
task parseTextInputFiles(type: GenerateWordsListTask) {
98-
inputFiles new File(project.getProjectDir(), "dictionary/NY_STATE_ASSEMBLY_TRANSCRIPT_20120621.txt"),
99-
//Download the archive from https://dumps.wikimedia.org/other/static_html_dumps/current/simple/
100-
new File(project.getProjectDir(), "dictionary/First_English_Civil_War_Wikipedia.htm")
99+
inputFiles new File(project.getProjectDir(), "dictionary/glwiki-20180220-pages-articles.txt")
101100
outputWordsListFile new File(project.getProjectDir(), "dictionary/words_from_texts.xml")
102101
}
103102

dictionary/First_English_Civil_War_Wikipedia.htm

Lines changed: 0 additions & 902 deletions
This file was deleted.

dictionary/LICENSE_for_en_wikipedia.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)