- enable support for Georgian
- update file sizes
- re-introduce the dictionary download because it is necessary to step through several mirrors if necessary. This function was once added because as it is now, only one mirror is used, if it is dead the user won't get the dictionary
- update the mirror list
excellmedia
freefr
iweb
jaist
kent
liquidtelecom
excellmedia
freefr
iweb
jaist
kent
liquidtelecom
is_IS.dic
it_IT.aff
it_IT.dic
is_IS.dic
it_IT.aff
it_IT.dic
kk_KZ.aff
kk_KZ.dic
ko_KR.aff
kk_KZ.aff
kk_KZ.dic
ko_KR.aff
listings
lithuanian
genmisc
listings
lithuanian
genmisc
mathtools
mhchem
mongolian-babel
mathtools
mhchem
mongolian-babel
# read out the possible spell-checker filenames from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
# read out the possible spell-checker filenames from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
- ${for} $5 1 72
- # the file has 144 lines, but we only need to check for one of the 2 dictionary files per language
+ ${for} $5 1 73
+ # the file has 146 lines, but we only need to check for one of the 2 dictionary files per language
# therefore check only for every second line
FileRead $R5 $String # skip the .aff file
FileRead $R5 $String # $String is now the .dic filename
# therefore check only for every second line
FileRead $R5 $String # skip the .aff file
FileRead $R5 $String # $String is now the .dic filename
# read out the locations from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
# read out the locations from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
- ${For} $5 1 144 # the file has 144 lines
+ ${For} $5 1 146 # the file has 146 lines
FileRead $R5 $String # $String is now the dictionary name
StrCpy $R3 $String -6 # $R3 is now the dictionary language code
${if} $DictCode == $R3
StrCpy $String $String -2 # delete the linebreak characters at the end
FileRead $R5 $String # $String is now the dictionary name
StrCpy $R3 $String -6 # $R3 is now the dictionary language code
${if} $DictCode == $R3
StrCpy $String $String -2 # delete the linebreak characters at the end
- # Download hunspell dictionaries
- Push $R0
- inetc::get /RECEIVETIMEOUT=5000 "https://sourceforge.net/projects/lyxwininstaller/files/hunspell/$String" "$INSTDIR\Resources\dicts\$String" /END
- Pop $R0
+ # Download hunspell dictionaries,
+ # if first download repository is not available try the other ones listed in "DictionaryMirrors.txt"
+ FileOpen $R4 "$INSTDIR\Resources\DictionaryMirrors.txt" r
+
+ ${For} $4 1 24 # there are 24 mirrors in the file
+ FileRead $R4 $Search # $Search is now the mirror
+ StrCpy $Search $Search -2 # delete the linebreak characters at the end
+ Push $R0
+ inetc::get /TIMEOUT=5000 "https://$Search.dl.sourceforge.net/project/lyxwininstaller/hunspell/$String" "$INSTDIR\Resources\dicts\$String" /END
+ Pop $R0
+ ${if} $R0 == "OK"
+ ${ExitFor}
+ ${endif}
+ ${Next}
+
+ FileClose $R4
# if download failed
${if} $R0 != "OK"
# if download failed
${if} $R0 != "OK"
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(HunspellFailed): $R0"
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(HunspellFailed)"
Goto abortinstall
${endif}
${endif} # end if $DictCode == $R3
Goto abortinstall
${endif}
${endif} # end if $DictCode == $R3
${if} $ThesCode == $R3
StrCpy $String $String -2 # delete the linebreak characters at the end
${if} $ThesCode == $R3
StrCpy $String $String -2 # delete the linebreak characters at the end
- # Download thesaurus files
- Push $R0
- inetc::get /POPUP /RECEIVETIMEOUT=5000 "https://sourceforge.net/projects/lyxwininstaller/files/thesaurus/$String" "$INSTDIR\Resources\thes\$String" /END
- Pop $R0
+ # Download thesaurus files,
+ # if first download repository is not available try the other ones listed in "DictionaryMirrors.txt"
+ FileOpen $R4 "$INSTDIR\Resources\DictionaryMirrors.txt" r
+
+ ${For} $4 1 24 # there are 24 mirrors in the file
+ FileRead $R4 $Search # $Search is now the mirror
+ StrCpy $Search $Search -2 # delete the linebreak characters at the end
+ Push $R0
+ inetc::get /TIMEOUT=5000 "https://$Search.dl.sourceforge.net/project/lyxwininstaller/thesaurus/$String" "$INSTDIR\Resources\thes\$String" /END
+ Pop $R0
+ ${if} $R0 == "OK"
+ ${ExitFor}
+ ${endif}
+ ${Next}
+
+ FileClose $R4
# if download failed
${if} $R0 != "OK"
# if download failed
${if} $R0 != "OK"
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(ThesaurusFailed): $R0"
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(ThesaurusFailed)"
Goto abortinstall
${endif}
${endif} # end if $ThesCode == $R3
Goto abortinstall
${endif}
${endif} # end if $ThesCode == $R3
Section /o "English (AU)" SecDEnglishAU
StrCpy $DictCodes "en_AU,$DictCodes"
Section /o "English (AU)" SecDEnglishAU
StrCpy $DictCodes "en_AU,$DictCodes"
SectionEnd
Section /o "English (CA)" SecDEnglishCA
StrCpy $DictCodes "en_CA,$DictCodes"
SectionEnd
Section /o "English (CA)" SecDEnglishCA
StrCpy $DictCodes "en_CA,$DictCodes"
SectionEnd
Section "English (GB)" SecDEnglishGB
# already installed by default
SectionIn RO
#StrCpy $DictCodes "en_GB,$DictCodes"
SectionEnd
Section "English (GB)" SecDEnglishGB
# already installed by default
SectionIn RO
#StrCpy $DictCodes "en_GB,$DictCodes"
SectionEnd
Section /o "English (NZ)" SecDEnglishNZ
SectionEnd
Section /o "English (NZ)" SecDEnglishNZ
# already installed by default
SectionIn RO
#StrCpy $DictCodes "en_US,$DictCodes"
# already installed by default
SectionIn RO
#StrCpy $DictCodes "en_US,$DictCodes"
SectionEnd
Section "Español (ES)" SecDSpanishES
SectionEnd
Section "Español (ES)" SecDSpanishES
+Section /o "ქართული ენა" SecDGeorgian
+ StrCpy $DictCodes "ka_GE,$DictCodes"
+ AddSize 3952
+SectionEnd
+
Section /o "עִברִית" SecDHebrew
StrCpy $DictCodes "he_IL,$DictCodes"
AddSize 3120
Section /o "עִברִית" SecDHebrew
StrCpy $DictCodes "he_IL,$DictCodes"
AddSize 3120
Section /o "Türkmençe" SecDTurkmen
StrCpy $DictCodes "tk_TM,$DictCodes"
Section /o "Türkmençe" SecDTurkmen
StrCpy $DictCodes "tk_TM,$DictCodes"
SectionEnd
Section /o "Türkçe" SecDTurkish
SectionEnd
Section /o "Türkçe" SecDTurkish
Section /o "Українська" SecDUkrainian
StrCpy $DictCodes "uk_UA,$DictCodes"
Section /o "Українська" SecDUkrainian
StrCpy $DictCodes "uk_UA,$DictCodes"
SectionEnd
Section /o "اردو" SecDUrdu
SectionEnd
Section /o "اردو" SecDUrdu
SectionSetFlags ${SecDGalician} $0
SectionSetSize ${SecDGalician} 0
${endif}
SectionSetFlags ${SecDGalician} $0
SectionSetSize ${SecDGalician} 0
${endif}
+ StrCpy $Search "ka_GE"
+ Call StrPoint
+ ${if} $Pointer != "-1"
+ IntOp $0 ${SF_SELECTED} | ${SF_RO}
+ SectionSetFlags ${SecDGeorgian} $0
+ SectionSetSize ${SecDGeorgian} 0
+ ${endif}
StrCpy $Search "he_IL"
Call StrPoint
${if} $Pointer != "-1"
StrCpy $Search "he_IL"
Call StrPoint
${if} $Pointer != "-1"