Skip to content

Commit

Permalink
Add Dutch language (#84)
Browse files Browse the repository at this point in the history
* Add Dutch language
  • Loading branch information
TomJansen authored Oct 20, 2022
1 parent acb48b7 commit 8534a70
Show file tree
Hide file tree
Showing 12 changed files with 341,146 additions and 0 deletions.
340,981 changes: 340,981 additions & 0 deletions assets/nl-utf8.txt

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions docs/nlWordlistReadme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
// Dutch word list adapted from: https://www.opentaal.org/

[ENGLISH]
You are kindly requested to read this file "license_en_EN.txt"
and to keep a copy of it with every copy you make of this language file.

1. Name: Dutch word list for spell checking - OpenTaal
2. Version of words list: 2.10G; version of spell checking: 2.10G.
3. Requirements: Hunspell 1.2.8 and higher
4. Spelling Seal of Dutch Language Union: The OpenTaal list of lemmas has
received the Spelling Seal of Approval from the Dutch Language Union, the
formal Dutch language institute. For more information please see:
http://www.taalunieversum.org/keurmerk/
5. Copyrights: © 2006-2010 OpenTaal, © 2001-2005 Simon Brouwer e.a.,
© 1996 Nederlandstalige Tex Gebruikersgroep
6. Licenses: OpenTaal aims to create and publish free Dutch language files. To
enable the broadest (re)use the language files are freely available under the
below, liberal licenses at the discretion of the user. We strongly recommend
to read the applicable license before usage.
A. BSD (revised version):
- Full license text: http://creativecommons.org/licenses/BSD/legalcode
- Summary: http://creativecommons.org/licenses/BSD/deed.en
B. Creative Commons, Attribution 3.0 (unported)
- Full license text: http://creativecommons.org/licenses/by/3.0/legalcode
- Summary: http://creativecommons.org/licenses/by/3.0/deed.en
7. Support OpenTaal: OpenTaal is a non-profit volunteer project. With your
(small) financial support OpenTaal will further expand its activities and
enhance its professionalism. Your donation is welcome at
account number: 15.62.32.782, BIC: RABONL2U, IBAN: NL88RABO0156232782 of
Stichting OpenTaal / OpenTaal Foundation. In the Netherlands your donations
are tax deductible. OpenTaal Foundation has been designated by the Dutch Tax
Administration as an Institution for General Benefit (algemeen nut beogende
instelling or ANBI). Please see: http://belastingdienst.nl/anbi/
8. Participate: Everyone is welcome to participate. Please give feedback,
discuss on the mailing list or run Harvester. By contributing to the project
you agree that your contribution is available under free or/open source
licenses. In case you wish, your name will be mentioned on the website. Your
are invited to send us your written request.
9. Rights of third parties: OpenTaal respects the rights of third parties and
aims to keep its data freely available. Therefore you may no use protected
sources of third parties, i.e. dictionaries, without their permission when
you contribute to the project. It is permitted to use the materials of the
Dutch Language Union, i.e. their spelling instruction and word list. In case
you believe OpenTaal is violating your rights, we ask you to send us a
written notice as soon as possible.
10.Contact: OpenTaal Foundation, http://www.opentaal.org, bestuur@opentaal.org

________________________________________________________________
[NEDERLANDS]
U wordt vriendelijk verzocht om dit bestand ("licentie_nl_NL.txt")
te lezen en mee te leveren bij iedere kopie van dit taalhulpbestand.

1. Naam: Nederlandstalige woordenlijst voor spellingcontrole - OpenTaal
2. Versie woordenlijst: 2.10G; versie spellingcontrole: 2.10G
3. Vereisten: Hunspell 1.2.8 en hoger
4. Keurmerk Spelling Nederlandse Taalunie: De lijst met basiswoorden van
OpenTaal draagt het keurmerk van de Nederlandse Taalunie. Voor meer
informatie zie: http://www.taalunieversum.org/keurmerk
5. Auteursrechten: © 2006-2010 OpenTaal, © 2001-2005 Simon Brouwer e.a.,
© 1996 Nederlandstalige Tex Gebruikersgroep
6. Licenties: OpenTaal heeft als doel om vrij beschikbare Nederlandstalige
taalhulpbestanden te ontwikkelen en te verspreiden. Om breed (her)gebruik
mogelijk te maken zijn de taalhulpbestanden gratis beschikbaar onder de twee
onderstaande, liberale licenties naar keuze van de gebruiker. U wordt ten
zeerste aangeraden om voorafgaand aan het gebruik kennis te nemen van de
toepasselijke licentie.
A. BSD (herziene versie):
- Volledige licentie: http://creativecommons.org/licenses/BSD/legalcode
- Samenvatting: http://creativecommons.org/licenses/BSD/deed.nl
B. Creative Commons, Naamsvermelding 3.0 (unported)
- Volledige licentie: http://creativecommons.org/licenses/by/3.0/legalcode
- Samenvatting: http://creativecommons.org/licenses/by/3.0/deed.nl
7. Steun OpenTaal: OpenTaal is een vrijwilligersproject zonder winstoogmerk.
Door uw (kleine) financiële steun kan OpenTaal meer activiteiten ontplooien
en het project professionaliseren. Uw donatie is van harte welkom op
rekeningnummer 15.62.32.782 t.n.v. Stichting OpenTaal. Uw giften zijn
aftrekbaar van de belasting. Stichting OpenTaal is namelijk door de
Belastingdienst erkend als ANBI, oftewel "Algemeen Nut Beogende Instelling".
Zie: http://belastingdienst.nl/anbi/
8. Meedoen: Iedereen is welkom om mee te doen. Meld fouten, discussieer mee op
de mailinglijst of draai Harvester. Door bij te dragen aan het project stemt
u ermee in dat uw bijdrage aan het desbetreffende taalhulpbestand beschikbaar
komt onder vrije en/of opensource licenties. Indien u dat wenst, dan kan uw
naam op de website genoemd worden. We ontvangen uw schriftelijk verzoek
daarvoor graag.
9. Rechten van derden: OpenTaal respecteert de rechten van derden en
wil haar gegevens vrij beschikbaar houden. Voor bijdragen aan het project mag
u daarom niet zonder toestemming gebruikmaken van beschermde naslagwerken,
zoals woordenboeken. Wel is het toegestaan om gebruik te maken van de
materialen van de Nederlandse Taalunie, zoals de leidraad en de woordenlijst.
Indien u van mening bent dat OpenTaal inbreuk maakt op uw rechten, dan
verzoeken we u hierover zo spoedig mogelijk schriftelijk contact met ons op
te nemen.
10.Contact: Stichting OpenTaal, http://www.opentaal.org, bestuur@opentaal.org

19 changes: 19 additions & 0 deletions res/drawable-anydpi-v24/ime_lang_nl.xml
Original file line number Diff line number Diff line change
@@ -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="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<group android:scaleX="0.13084444"
android:scaleY="0.13084444"
android:translateX="2.9717333"
android:translateY="0.96">
<group android:translateY="133.59375">
<path android:pathData="M90.703125,-0L73.625,-0L28.265625,-73.765625L27.84375,-73.625L27.84375,-0L10.765625,-0L10.765625,-102.375L27.84375,-102.375L73.203125,-28.625L73.625,-28.765625L73.625,-102.375L90.703125,-102.375L90.703125,-0Z"
android:fillColor="#000000"/>
<path android:pathData="M128.21875,0L111.125,0L111.125,-109.6875L128.21875,-109.6875L128.21875,0Z"
android:fillColor="#000000"/>
</group>
</group>
</vector>
Binary file added res/drawable-hdpi/ime_lang_nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ime_lang_nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ime_lang_nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ime_lang_nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions res/values-nl/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_settings">Traditional T9 Opties</string>
<string name="close">Sluiten</string>
<string name="error_unexpected">Er is een onverwachte fout opgetreden.</string>

<string name="add_word_add">Toevoegen</string>
<string name="add_word_blank">Leeg woord niet toegevoegd.</string>
<string name="add_word_badchar">Kan geen woord met niet-toewijsbaar teken toevoegen voor %1$s (%2$s).</string>
<string name="add_word_exist">Woord \"%1$s\" staat al in het woordenboek.</string>
<string name="add_word_invalid_language">Kan geen woord invoegen als er geen taal is geselecteerd.</string>
<string name="add_word_title">Woord toevoegen</string>
<string name="pref_help">Laat help zien</string>
<string name="pref_choose_languages">Talen kiezen</string>
<string name="pref_loaddict">Woordenboek laden</string>
<string name="pref_loaduserdict">Gebruikerswoordenboek laden</string>
<string name="pref_truncatedict">Woordenboek wissen</string>
<string name="dictionary_loading">Woordenboek laden…</string>
<string name="dictionary_loading_user_dict">Gebruikerswoordenboek laden…</string>
<string name="dictionary_load_title">Woordenboek laden</string>
<string name="dictionary_not_found">Laden mislukt. Woordenboek voor %1$s niet gevonden.</string>
<string name="dictionary_truncated">Woordenboek succesvol gewist.</string>
</resources>
2 changes: 2 additions & 0 deletions res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<item>Italiano</item>
<item>Українська</item>
<item>Български</item>
<item>Nederlands</item>
</string-array>
<!--pref_lang_titles pair with pref_lang_values -->
<integer-array translatable="false" name="pref_lang_values">
Expand All @@ -18,5 +19,6 @@
<item>@integer/LANG_IT</item>
<item>@integer/LANG_UK</item>
<item>@integer/LANG_BG</item>
<item>@integer/LANG_NL</item>
</integer-array>
</resources>
1 change: 1 addition & 0 deletions res/values/const.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<integer name="LANG_IT">5</integer>
<integer name="LANG_UK">6</integer>
<integer name="LANG_BG">7</integer>
<integer name="LANG_NL">8</integer>

<integer name="LANG_DEFAULT">@integer/LANG_EN</integer>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ private LanguageCollection() {
// Add languages here, to enable them in the UI and
// please, maintain the alphabetical order.
Bulgarian.class,
Dutch.class,
English.class,
French.class,
German.class,
Expand Down
24 changes: 24 additions & 0 deletions src/io/github/sspanak/tt9/languages/definitions/Dutch.java
Original file line number Diff line number Diff line change
@@ -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 Dutch extends English {
public Dutch() {
super();

id = 8;
name = "Nederlands";
locale = new Locale("nl","NL");
dictionaryFile = "nl-utf8.txt";
icon = R.drawable.ime_lang_nl;

characterMap.get(2).addAll(Arrays.asList("à", "ä", "ç"));
characterMap.get(3).addAll(Arrays.asList("é", "è", "ê", "ë"));
characterMap.get(4).addAll(Arrays.asList("î", "ï"));
characterMap.get(6).addAll(Arrays.asList("ö"));
characterMap.get(8).addAll(Arrays.asList("û", "ü"));
}
}

0 comments on commit 8534a70

Please sign in to comment.