Add Finnish language (#220)
This commit is contained in:
parent
80facb4930
commit
62f2a39b58
9 changed files with 223125 additions and 0 deletions
223071
assets/fi-utf8.csv
Normal file
223071
assets/fi-utf8.csv
Normal file
File diff suppressed because it is too large
Load diff
12
docs/dictionaries/fiWordlistReadme.txt
Normal file
12
docs/dictionaries/fiWordlistReadme.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Norwegian wordlist by: Openboard
|
||||
Version: 7bf52c1 (2020-01-15)
|
||||
Source: https://github.com/openboard-team/openboard
|
||||
License: https://github.com/openboard-team/openboard/blob/master/LICENSE
|
||||
|
||||
Modifications:
|
||||
|
||||
- Removed words with numbers and symbols other than $ and -;
|
||||
- Replaced characters outside of the 29-letter Finnish alphabet with
|
||||
equivalent ones;
|
||||
- Merged repeating words with different capitalization, favoring the one with
|
||||
the higher frequency.
|
||||
19
res/drawable-anydpi-v24/ime_lang_fi.xml
Normal file
19
res/drawable-anydpi-v24/ime_lang_fi.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="115"
|
||||
android:viewportHeight="189.91406"
|
||||
android:tint="#FFFFFF">
|
||||
<group android:scaleX="0.5570941"
|
||||
android:scaleY="0.92"
|
||||
android:translateX="25.46709"
|
||||
android:translateY="7.5965624">
|
||||
<group android:translateY="150.89062">
|
||||
<path android:pathData="M68.34375,-46L25.390625,-46L25.390625,-0.5L11.890625,-0.5L11.890625,-103.1875L75.3125,-103.1875L75.3125,-92L25.390625,-92L25.390625,-57.109375L68.34375,-57.109375L68.34375,-46Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M103.984375,0L90.96875,0L90.96875,-76.578125L103.984375,-76.578125L103.984375,0ZM89.921875,-96.4375Q89.921875,-99.609375,91.84375,-101.796875Q93.78125,-104,97.578125,-104Q101.375,-104,103.34375,-101.796875Q105.3125,-99.609375,105.3125,-96.421875Q105.3125,-93.25,103.34375,-91.125Q101.375,-89,97.578125,-89Q93.78125,-89,91.84375,-91.125Q89.921875,-93.25,89.921875,-96.4375Z"
|
||||
android:fillColor="#000000"/>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
BIN
res/drawable-hdpi/ime_lang_fi.png
Normal file
BIN
res/drawable-hdpi/ime_lang_fi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 219 B |
BIN
res/drawable-mdpi/ime_lang_fi.png
Normal file
BIN
res/drawable-mdpi/ime_lang_fi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 202 B |
BIN
res/drawable-xhdpi/ime_lang_fi.png
Normal file
BIN
res/drawable-xhdpi/ime_lang_fi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 289 B |
BIN
res/drawable-xxhdpi/ime_lang_fi.png
Normal file
BIN
res/drawable-xxhdpi/ime_lang_fi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 403 B |
|
|
@ -25,6 +25,7 @@ public class LanguageCollection {
|
|||
Bulgarian.class,
|
||||
Dutch.class,
|
||||
English.class,
|
||||
Finnish.class,
|
||||
French.class,
|
||||
German.class,
|
||||
Hebrew.class,
|
||||
|
|
|
|||
22
src/io/github/sspanak/tt9/languages/definitions/Finnish.java
Normal file
22
src/io/github/sspanak/tt9/languages/definitions/Finnish.java
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package io.github.sspanak.tt9.languages.definitions;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
|
||||
import io.github.sspanak.tt9.R;
|
||||
|
||||
public class Finnish extends English {
|
||||
public Finnish() {
|
||||
super();
|
||||
|
||||
name = "Suomi";
|
||||
locale = new Locale("fi","FI");
|
||||
dictionaryFile = "fi-utf8.csv";
|
||||
icon = R.drawable.ime_lang_fi;
|
||||
|
||||
isPunctuationPartOfWords = true;
|
||||
|
||||
characterMap.get(2).addAll(Arrays.asList("ä", "å"));
|
||||
characterMap.get(6).addAll(Arrays.asList("ö"));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue