Add Hungarian (#509)
--------- Co-authored-by: agyarmati <agyarmati@surfline.com> Co-authored-by: sspanak <doftor.livain@gmail.com>
This commit is contained in:
parent
a6c81a764d
commit
9a13272fdc
4 changed files with 709905 additions and 1 deletions
14
app/languages/definitions/Hungarian.yml
Normal file
14
app/languages/definitions/Hungarian.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
locale: hu-HU
|
||||||
|
dictionaryFile: hu-utf8.csv
|
||||||
|
abcString: abc
|
||||||
|
layout:
|
||||||
|
- [SPECIAL] # 0
|
||||||
|
- [PUNCTUATION] # 1
|
||||||
|
- [a, á, b, c] # 2
|
||||||
|
- [d, e, é, f] # 3
|
||||||
|
- [g, h, i, í] # 4
|
||||||
|
- [j, k, l] # 5
|
||||||
|
- [m, n, o, ó, ö, ő] # 6
|
||||||
|
- [p, q, r, s] # 7
|
||||||
|
- [t, u, ú, ü, ű, v] # 8
|
||||||
|
- [w, x, y, z] # 9
|
||||||
709878
app/languages/dictionaries/hu-utf8.csv
Normal file
709878
app/languages/dictionaries/hu-utf8.csv
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -113,7 +113,7 @@ public class SoftNumberKey extends SoftKey {
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
ArrayList<String> chars = language.getKeyCharacters(number);
|
ArrayList<String> chars = language.getKeyCharacters(number);
|
||||||
for (int i = 0; i < 5 && i < chars.size(); i++) {
|
for (int i = 0; sb.length() < 5 && i < chars.size(); i++) {
|
||||||
String currentLetter = chars.get(i);
|
String currentLetter = chars.get(i);
|
||||||
if (
|
if (
|
||||||
(isLatinBased && currentLetter.charAt(0) > 'z')
|
(isLatinBased && currentLetter.charAt(0) > 'z')
|
||||||
|
|
|
||||||
12
docs/dictionaries/huWordlistReadme.txt
Normal file
12
docs/dictionaries/huWordlistReadme.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
Lingtrain Hungarian Word from Kaggle:
|
||||||
|
Source: https://www.kaggle.com/datasets/averkij/lingtrain-hungarian-word-frequency
|
||||||
|
Version: 2
|
||||||
|
License: https://creativecommons.org/licenses/by-sa/4.0/
|
||||||
|
|
||||||
|
Wordlist 2 by Domonkos Tikk by courtesy of Typotex
|
||||||
|
Source: https://www.winedt.org/dict/Hungarian.zip
|
||||||
|
|
||||||
|
Wordlist 3 and frequencies from Openboard project
|
||||||
|
Version: 7bf52c1 (2020-01-15)
|
||||||
|
Source: https://github.com/openboard-team/openboard
|
||||||
|
License: https://github.com/openboard-team/openboard/blob/master/LICENSE
|
||||||
Loading…
Add table
Add a link
Reference in a new issue