]> git.lyx.org Git - features.git/commitdiff
installer: support to spell-check Serbian(Latin)
authorUwe Stöhr <uwestoehr@lyx.org>
Mon, 8 Apr 2013 21:42:18 +0000 (23:42 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Mon, 8 Apr 2013 21:42:18 +0000 (23:42 +0200)
- also update the Serbian(Cyrillic) dictionary

development/Win32/packaging/installer/ChangeLog.txt
development/Win32/packaging/installer/HunspellDictionaryNames.txt
development/Win32/packaging/installer/include/dictionaries.nsh
development/Win32/packaging/installer/include/init.nsh

index 573076c242045752e870e6f3e698868a6a95404c..4a0898155d494860e5304ff9d51876c9b24ff364 100644 (file)
@@ -2,9 +2,10 @@
 - support for Vietnamese, Thai, Serbian Cyrillic and Mongolian will now
   automatically be installed to MiKTeX
 - language support files for Belarusian and Hungarian are now included
+- new spell-checker dictionary for Serbian(Latin)
 - updated to eLyXer 1.2.5
 - 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
    then use this installer.)
 - updated thesaurus for Italian, Norwegian (Bokmal), Portuguese, Romanian,
index 216f803831496c0236e10e5dd89566b5708d3a76..ecb95cfe767e41680eee8712c64cd10b3b90fc54 100644 (file)
@@ -118,6 +118,8 @@ sq_AL.aff
 sq_AL.dic
 sr_RS.aff
 sr_RS.dic
+sr_RS-Latin.aff
+sr_RS-Latin.dic
 sv_SE.aff
 sv_SE.dic
 ta_IN.aff
index b533baea275816db260720a0dd005e779e7aabfd..9ed3838805a1dbe7c98849385a959f8def15732a 100644 (file)
@@ -28,8 +28,8 @@ Function FindDictionaries
   
   # read out the possible spell-checker filenames from the file        
   FileOpen $R5 "$INSTDIR\Resources\HunspellDictionaryNames.txt" r
-  ${for} $5 1 66
-   # the file has 132 lines, but we only need to check for one of the 2 dictionary files per language
+  ${for} $5 1 68
+   # 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
    FileRead $R5 $String   # skip the .aff file
    FileRead $R5 $String   # $String is now the .dic filename
@@ -66,7 +66,7 @@ Function DownloadHunspellDictionaries
  
  # read out the locations from the file        
  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
   StrCpy $R3 $String -6 # $R3 is now the dictionary language code
index fd5e2ed8282ac8b1fd22af528bb8847494def12a..05dc91e3983f9d2be329039762a95467a3b9a859 100644 (file)
@@ -381,9 +381,14 @@ Section /o "Slovensk
  AddSize 3310
 SectionEnd
 
-Section /o "Srpski" SecDSerbian
+Section /o "Srpski (Cirilica)" SecDSerbianC
  StrCpy $DictCodes "sr_RS,$DictCodes"
- AddSize 3460
+ AddSize 3560
+SectionEnd
+
+Section /o "Srpski (Latinica)" SecDSerbianL
+ StrCpy $DictCodes "sr_RS-Latin,$DictCodes"
+ AddSize 2000
 SectionEnd
 
 Section /o "Svenska" SecDSwedish
@@ -1081,8 +1086,15 @@ Function .onInit
   Call StrPoint
   ${if} $Pointer != "-1"
    IntOp $0 ${SF_SELECTED} | ${SF_RO}
-   SectionSetFlags ${SecDSerbian} $0
-   SectionSetSize ${SecDSerbian} 0
+   SectionSetFlags ${SecDSerbianC} $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}
   StrCpy $Search "sv_SE"
   Call StrPoint