1
0
Fork 0

Add support for Catalan. (#594)

* Add support for Catalan.

* updated the dictionary validation rules to accomodate the Catalan middle dot

* updated the language list for F-Droid and Google Play

---------

Co-authored-by: sspanak <doftor.livain@gmail.com>
This commit is contained in:
Roconx 2024-08-19 11:12:27 +02:00 committed by GitHub
parent 1d51f9c9b0
commit 61d5c1809f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 909164 additions and 3 deletions

View file

@ -0,0 +1,13 @@
locale: ca-ES
dictionaryFile: ca-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

File diff suppressed because it is too large Load diff

View file

@ -47,7 +47,7 @@ static def extractAlphabetCharsFromLine(String line) {
static def parseLanguageFile(File languageFile, String dictionariesDir) {
String alphabet = languageFile.name.contains("Hebrew") || languageFile.name.contains("Yiddish") ? '"' : ''
String alphabet = ""
File dictionaryFile
int errorCount = 0
String errorMsg = ""
@ -57,6 +57,9 @@ static def parseLanguageFile(File languageFile, String dictionariesDir) {
String localeString = ""
String dictionaryFileName = ""
alphabet = languageFile.name.contains("Catalan") ? '·' : alphabet
alphabet = languageFile.name.contains("Hebrew") || languageFile.name.contains("Yiddish") ? '"' : alphabet
for (String line : languageFile.readLines()) {
if (
line.matches("^[a-zA-Z].*")