installer: support to spell-check Serbian(Latin)

- also update the Serbian(Cyrillic) dictionary
This commit is contained in:
Uwe Stöhr 2013-04-08 23:42:18 +02:00
parent 66b1d0b1a5
commit dadc1bbe71
4 changed files with 23 additions and 8 deletions

View File

@ -2,9 +2,10 @@
- support for Vietnamese, Thai, Serbian Cyrillic and Mongolian will now - support for Vietnamese, Thai, Serbian Cyrillic and Mongolian will now
automatically be installed to MiKTeX automatically be installed to MiKTeX
- language support files for Belarusian and Hungarian are now included - language support files for Belarusian and Hungarian are now included
- new spell-checker dictionary for Serbian(Latin)
- updated to eLyXer 1.2.5 - updated to eLyXer 1.2.5
- updated spell-checker dictionaries for Belarusian, Breton, Italian, Korean, - updated spell-checker dictionaries for Belarusian, Breton, Italian, Korean,
Latin, Norwegian, Portuguese, Romanian, Slovakian and Swedish Latin, Norwegian, Portuguese, Romanian, Serbian(Cyrillic), Slovakian and Swedish
(To benefit from them you must uninstall an already installed LyX 2.0.x and (To benefit from them you must uninstall an already installed LyX 2.0.x and
then use this installer.) then use this installer.)
- updated thesaurus for Italian, Norwegian (Bokmal), Portuguese, Romanian, - updated thesaurus for Italian, Norwegian (Bokmal), Portuguese, Romanian,

View File

@ -118,6 +118,8 @@ sq_AL.aff
sq_AL.dic sq_AL.dic
sr_RS.aff sr_RS.aff
sr_RS.dic sr_RS.dic
sr_RS-Latin.aff
sr_RS-Latin.dic
sv_SE.aff sv_SE.aff
sv_SE.dic sv_SE.dic
ta_IN.aff ta_IN.aff

View File

@ -28,8 +28,8 @@ Function FindDictionaries
# read out the possible spell-checker filenames from the file # read out the possible spell-checker filenames from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
${for} $5 1 66 ${for} $5 1 68
# the file has 132 lines, but we only need to check for one of the 2 dictionary files per language # the file has 136 lines, but we only need to check for one of the 2 dictionary files per language
# therefore check only for every second line # therefore check only for every second line
FileRead $R5 $String # skip the .aff file FileRead $R5 $String # skip the .aff file
FileRead $R5 $String # $String is now the .dic filename FileRead $R5 $String # $String is now the .dic filename
@ -66,7 +66,7 @@ Function DownloadHunspellDictionaries
# read out the locations from the file # read out the locations from the file
FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
${For} $5 1 132 # the file has 132 lines ${For} $5 1 136 # the file has 136 lines
FileRead $R5 $String # $String is now the dictionary name FileRead $R5 $String # $String is now the dictionary name
StrCpy $R3 $String -6 # $R3 is now the dictionary language code StrCpy $R3 $String -6 # $R3 is now the dictionary language code

View File

@ -381,9 +381,14 @@ Section /o "Slovensk
AddSize 3310 AddSize 3310
SectionEnd SectionEnd
Section /o "Srpski" SecDSerbian Section /o "Srpski (Cirilica)" SecDSerbianC
StrCpy $DictCodes "sr_RS,$DictCodes" StrCpy $DictCodes "sr_RS,$DictCodes"
AddSize 3460 AddSize 3560
SectionEnd
Section /o "Srpski (Latinica)" SecDSerbianL
StrCpy $DictCodes "sr_RS-Latin,$DictCodes"
AddSize 2000
SectionEnd SectionEnd
Section /o "Svenska" SecDSwedish Section /o "Svenska" SecDSwedish
@ -1081,8 +1086,15 @@ Function .onInit
Call StrPoint Call StrPoint
${if} $Pointer != "-1" ${if} $Pointer != "-1"
IntOp $0 ${SF_SELECTED} | ${SF_RO} IntOp $0 ${SF_SELECTED} | ${SF_RO}
SectionSetFlags ${SecDSerbian} $0 SectionSetFlags ${SecDSerbianC} $0
SectionSetSize ${SecDSerbian} 0 SectionSetSize ${SecDSerbianC} 0
${endif}
StrCpy $Search "sr_RS-Latin"
Call StrPoint
${if} $Pointer != "-1"
IntOp $0 ${SF_SELECTED} | ${SF_RO}
SectionSetFlags ${SecDSerbianL} $0
SectionSetSize ${SecDSerbianL} 0
${endif} ${endif}
StrCpy $Search "sv_SE" StrCpy $Search "sv_SE"
Call StrPoint Call StrPoint