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:
parent
1d51f9c9b0
commit
61d5c1809f
6 changed files with 909164 additions and 3 deletions
|
|
@ -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].*")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue