1
0
Fork 0

Norwegian (#191)

* Added Norwegian Bokmål

Co-authored-by: Joddsus <arne.karstensen@gmail.com>
This commit is contained in:
Dimo Karaivanov 2023-03-10 09:05:33 +02:00 committed by GitHub
parent b2dfa456b0
commit f146eaeae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 171030 additions and 0 deletions

170982
assets/nb-utf8.csv Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
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

View 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="183"
android:viewportHeight="168.75"
android:tint="#FFFFFF">
<group android:scaleX="0.92"
android:scaleY="0.84836066"
android:translateX="7.32"
android:translateY="12.79457">
<group android:translateY="133.59375">
<path android:pathData="M91.625,-0L73.828125,-0L28.203125,-73.125L28.203125,-0L10.40625,-0L10.40625,-103.0625L28.203125,-103.0625L73.96875,-29.65625L73.96875,-103.0625L91.625,-103.0625L91.625,-0Z"
android:fillColor="#000000"/>
<path android:pathData="M177.51562,-37.765625Q177.51562,-20,169.60938,-9.5Q161.70312,1,147.84375,1Q134.48438,1,127.03125,-8.65625L126.1875,-0.28125L110.71875,-0.28125L110.71875,-109L127.8125,-109L127.8125,-69.3125Q135.1875,-78.078125,147.70312,-78.078125Q161.625,-78.078125,169.5625,-67.71875Q177.51562,-57.359375,177.51562,-38.75L177.51562,-37.765625ZM160.4375,-39.25Q160.4375,-51.609375,156.07812,-57.796875Q151.71875,-64,143.42188,-64Q132.3125,-64,127.8125,-54.296875L127.8125,-22.9375Q132.375,-13.015625,143.5625,-13.015625Q151.57812,-13.015625,155.9375,-18.984375Q160.29688,-24.96875,160.4375,-37.078125L160.4375,-39.25Z"
android:fillColor="#000000"/>
</group>
</group>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -27,6 +27,7 @@ public class LanguageCollection {
French.class,
German.class,
Italian.class,
Norwegian.class,
Russian.class,
Spanish.class,
Ukrainian.class

View file

@ -0,0 +1,24 @@
package io.github.sspanak.tt9.languages.definitions;
import java.util.Arrays;
import java.util.Locale;
import io.github.sspanak.tt9.R;
public class Norwegian extends English {
public Norwegian() {
super();
name = "Norsk bokmål";
locale = new Locale("nb","NO");
dictionaryFile = "nb-utf8.csv";
icon = R.drawable.ime_lang_nb;
isPunctuationPartOfWords = false;
characterMap.get(2).addAll(Arrays.asList("æ", "å"));
characterMap.get(3).addAll(Arrays.asList("é", "è"));
characterMap.get(6).addAll(Arrays.asList("ø", "ó", "ò", "ô"));
characterMap.get(8).add("ü");
}
}