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

@ -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].*")