1
0
Fork 0

Build scripts cleanup and dictionary loading optimization

* moved the source languages out of assets/ into their own directory (#356)
  
  * split build.gradle into several smaller files

  * improved word frequency validation during build time

  * slightly optimized dictionary loading speed using pre-calculated file size

  * fixed a potential crash when loading invalid assets

  * fixed dictionary loading progress starting at 100% then jumping to 0% when manually loading two dictionaries one after another

  * documentation update
This commit is contained in:
Dimo Karaivanov 2023-08-21 15:29:30 +03:00 committed by GitHub
parent d8c2f7fc15
commit 44ecb8999e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 367 additions and 320 deletions

View file

@ -0,0 +1,15 @@
---
locale: pt-BR
dictionaryFile: pt-BR-utf8.csv
name: Português brasileiro
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

View file

@ -0,0 +1,14 @@
---
locale: bg-BG
dictionaryFile: bg-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_DE] # 1
- [а, б, в, г] # 2
- [д, е, ж, з] # 3
- [и, й, к, л, ѝ] # 4
- [м, н, о, п] # 5
- [р, с, т, у] # 6
- [ф, х, ц, ч] # 7
- [ш, щ, ъ, ь] # 8
- [ю, я] # 9

View file

@ -0,0 +1,14 @@
---
locale: da-DK
dictionaryFile: da-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 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

View file

@ -0,0 +1,14 @@
---
locale: nl-NL
dictionaryFile: nl-utf8.csv
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

View file

@ -0,0 +1,14 @@
---
locale: en
dictionaryFile: en-utf8.csv
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

View file

@ -0,0 +1,14 @@
---
locale: fi-FI
dictionaryFile: fi-utf8.csv
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

View file

@ -0,0 +1,14 @@
---
locale: fr
dictionaryFile: fr-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 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

View file

@ -0,0 +1,14 @@
---
locale: de
dictionaryFile: de-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_DE] # 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

View file

@ -0,0 +1,14 @@
---
locale: el-GR
dictionaryFile: gr-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 1
- [α, β, γ, ά] # 2
- [δ, ε, ζ, έ] # 3
- [η, θ, ι, ή, ί, ϊ, ΐ] # 4
- [κ, λ, μ] # 5
- [ν, ξ, ο, ό] # 6
- [π, ρ, σ, ς] # 7
- [τ, υ, φ, ύ, ϋ, ΰ] # 8
- [χ, ψ, ω, ώ] # 9

View file

@ -0,0 +1,16 @@
---
locale: iw-IL
dictionaryFile: he-utf8.csv
abcString: אבג
hasUpperCase: no
layout:
- [SPECIAL] # 0
- [PUNCTUATION] # 1
- [ד, ה, ו] # 2
- [א, ב, ג] # 3
- [מ, ם, נ, ן] # 4
- [י, כ, ך, ל] # 5
- [ז, ח, ט] # 6
- [ר, ש, ת] # 7
- [צ, ץ, ק] # 8
- [ס, ע, פ, ף] # 9

View file

@ -0,0 +1,15 @@
---
locale: in-ID
dictionaryFile: id-utf8.csv
name: Bahasa Indonesia
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

View file

@ -0,0 +1,14 @@
---
locale: it
dictionaryFile: it-utf8.csv
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

View file

@ -0,0 +1,14 @@
---
locale: nb-NO
dictionaryFile: nb-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 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

View file

@ -0,0 +1,14 @@
---
locale: pl-PL
dictionaryFile: pl-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_DE] # 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

View file

@ -0,0 +1,14 @@
---
locale: ro-RO
dictionaryFile: ro-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 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

View file

@ -0,0 +1,14 @@
---
locale: ru-RU
dictionaryFile: ru-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 1
- [а, б, в, г] # 2
- [д, е, ё, ж, з] # 3
- [и, й, к, л] # 4
- [м, н, о, п] # 5
- [р, с, т, у] # 6
- [ф, х, ц, ч] # 7
- [ш, щ, ъ, ы] # 8
- [ь, э, ю, я] # 9

View file

@ -0,0 +1,14 @@
---
locale: es-ES
dictionaryFile: es-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR, ¡, ¿] # 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

View file

@ -0,0 +1,14 @@
---
locale: sv-SE
dictionaryFile: sv-utf8.csv
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

View file

@ -0,0 +1,14 @@
---
locale: uk-UA
dictionaryFile: uk-utf8.csv
layout:
- [SPECIAL] # 0
- [PUNCTUATION_FR] # 1
- [а, б, в, г, ґ] # 2
- [д, е, є, ж, з] # 3
- [и, і, ї, й, к, л] # 4
- [м, н, о, п] # 5
- [р, с, т, у] # 6
- [ф, х, ц, ч] # 7
- [ш, щ] # 8
- [ь, ю, я] # 9

View file

@ -0,0 +1,16 @@
---
locale: ji-JI
dictionaryFile: ji-utf8.csv
abcString: אבג
hasUpperCase: no
layout:
- [SPECIAL] # 0
- [PUNCTUATION] # 1
- [ד, ה, ו] # 2
- [א, ב, ג] # 3
- [מ, ם, נ, ן] # 4
- [י, כ, ך, ל] # 5
- [ז, ח, ט] # 6
- [ר, ש, ת] # 7
- [צ, ץ, ק] # 8
- [ס, ע, פ, ף] # 9

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff