Swedish language (#223)
--------- Co-authored-by: KaniJonas <127991222+KaniJonas@users.noreply.github.com>
This commit is contained in:
parent
62f2a39b58
commit
3f3b733490
9 changed files with 196600 additions and 0 deletions
196553
assets/sv-utf8.csv
Normal file
196553
assets/sv-utf8.csv
Normal file
File diff suppressed because it is too large
Load diff
4
docs/dictionaries/svWordListReadme.txt
Normal file
4
docs/dictionaries/svWordListReadme.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Swedish 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
|
||||
19
res/drawable-anydpi-v24/ime_lang_sv.xml
Normal file
19
res/drawable-anydpi-v24/ime_lang_sv.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="157"
|
||||
android:viewportHeight="189.91406"
|
||||
android:tint="#FFFFFF">
|
||||
<group android:scaleX="0.76055455"
|
||||
android:scaleY="0.92"
|
||||
android:translateX="18.796469"
|
||||
android:translateY="7.5965624">
|
||||
<group android:translateY="150.89062">
|
||||
<path android:pathData="M72,-25.453125Q72,-33.8125,65.734375,-39.109375Q59.484375,-44.40625,43.953125,-48.484375Q27.140625,-52.6875,18.484375,-59.421875Q9.84375,-66.15625,9.84375,-77.578125Q9.84375,-89.28125,19.515625,-96.640625Q29.1875,-104,44.375,-104Q60.1875,-104,69.890625,-95.203125Q79.59375,-86.421875,79.3125,-73.765625L79.109375,-73.34375L71.375,-73.34375Q71.375,-83.6875,64.09375,-90.34375Q56.8125,-97,44.375,-97Q32.0625,-97,25.140625,-91.453125Q18.21875,-85.921875,18.21875,-77.703125Q18.21875,-69.890625,24.609375,-64.671875Q31.015625,-59.453125,46.6875,-55.484375Q63.21875,-51.3125,71.828125,-44.203125Q80.4375,-37.09375,80.4375,-25.46875Q80.4375,-13.34375,70.421875,-6.171875Q60.40625,1,44.859375,1Q29.53125,1,18.109375,-6.703125Q6.6875,-14.40625,7.03125,-29.171875L7.171875,-29.59375L14.90625,-29.59375Q14.90625,-17.578125,23.828125,-11.78125Q32.765625,-6,44.859375,-6Q57.03125,-6,64.515625,-11.328125Q72,-16.671875,72,-25.453125Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M119.765625,-19.046875L122.234375,-10.125L122.65625,-10.125L125.328125,-19.046875L146,-76L154.71875,-76L125.8125,0L119.0625,0L90.09375,-76L98.8125,-76L119.765625,-19.046875Z"
|
||||
android:fillColor="#000000"/>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
BIN
res/drawable-hdpi/ime_lang_sv.png
Normal file
BIN
res/drawable-hdpi/ime_lang_sv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 466 B |
BIN
res/drawable-mdpi/ime_lang_sv.png
Normal file
BIN
res/drawable-mdpi/ime_lang_sv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 313 B |
BIN
res/drawable-xhdpi/ime_lang_sv.png
Normal file
BIN
res/drawable-xhdpi/ime_lang_sv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 625 B |
BIN
res/drawable-xxhdpi/ime_lang_sv.png
Normal file
BIN
res/drawable-xxhdpi/ime_lang_sv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 938 B |
|
|
@ -33,6 +33,7 @@ public class LanguageCollection {
|
|||
Norwegian.class,
|
||||
Russian.class,
|
||||
Spanish.class,
|
||||
Swedish.class,
|
||||
Ukrainian.class
|
||||
);
|
||||
|
||||
|
|
|
|||
23
src/io/github/sspanak/tt9/languages/definitions/Swedish.java
Normal file
23
src/io/github/sspanak/tt9/languages/definitions/Swedish.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package io.github.sspanak.tt9.languages.definitions;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
|
||||
import io.github.sspanak.tt9.R;
|
||||
|
||||
public class Swedish extends English {
|
||||
public Swedish() {
|
||||
super();
|
||||
|
||||
name = "Svenska";
|
||||
locale = new Locale("sv","SE");
|
||||
dictionaryFile = "sv-utf8.csv";
|
||||
icon = R.drawable.ime_lang_sv;
|
||||
|
||||
isPunctuationPartOfWords = false;
|
||||
|
||||
characterMap.get(2).addAll(Arrays.asList("å", "ä"));
|
||||
characterMap.get(3).addAll(Arrays.asList("é"));
|
||||
characterMap.get(6).addAll(Arrays.asList("ö"));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue