]> git.lyx.org Git - features.git/commitdiff
Win installer: update thesaurus and dictionaries
authorUwe Stöhr <uwestoehr@lyx.org>
Thu, 19 May 2016 01:28:31 +0000 (03:28 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Thu, 19 May 2016 01:28:31 +0000 (03:28 +0200)
- also use a better default MiKTeX repository

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

index 90f738c9479b37e29f52a785268f39d31d275188..aa6d83505103466058307bd3bd848f1db52205d5 100644 (file)
@@ -4,6 +4,11 @@ Changelog for LyX.220-RC2-1:
 - installs LyX 2.2.0 RC2
 - updated to Imagemagick 6.9.4-1
 - updated to JabRef 3.3
+- new thesaurus for Norwegian (Nynorsk)
+- updated thesaurus for English (US) and Norwegian (Bokmal)
+- updated spell-checker dictionary for English (AU and GB), Norwegian (Bokmal and Nynorsk) and Scottish
+  (To benefit from it you must uninstall an already installed LyX 2.2.0 and
+   then use this installer.)
 
 
 Changelog for LyX.220-RC1-1:
index 1bdf28eec7aca8c51925896aebc6a43ef991b44f..1ee0090c5aaa0895cb0f5abe30df8f29a402eda0 100644 (file)
@@ -32,6 +32,8 @@ th_it_IT_v2.dat
 th_it_IT_v2.idx
 th_nb_NO_v2.dat
 th_nb_NO_v2.idx
+th_nn_NO_v2.dat
+th_nn_NO_v2.idx
 th_pl_PL_v2.dat
 th_pl_PL_v2.idx
 th_pt_PT_v2.dat
index d66c98476696190cac4203d3cc81e4caceb6fcee..efac5c1fccc16c8ebafa76fba5415f9ed647393f 100644 (file)
@@ -43,8 +43,8 @@ Function FindDictionaries
   
   # read out the possible thesaurus filenames from the file    
   FileOpen $R5 "$INSTDIR\Resources\ThesaurusDictionaryNames.txt" r
-  ${for} $5 1 25
-   # the file has 50 lines, but we only need to check for one of the 2 dictionary files per language
+  ${for} $5 1 26
+   # the file has 52 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   # $String is now the dictionary name
    FileRead $R5 $String   # $String is now the dictionary name
@@ -112,7 +112,7 @@ Function DownloadThesaurusDictionaries
  
  # read out the locations from the file        
  FileOpen $R5 "$INSTDIR\Resources\ThesaurusDictionaryNames.txt" r
- ${For} $5 1 50          # the file has 50 lines
+ ${For} $5 1 52          # the file has 52 lines
  
   FileRead $R5 $String   # $String is now the dictionary name
   StrCpy $R3 $String 5 3 # $R3 is now the dictionary language code
index a76f4008af61fb75b9d0efde2a32881784bad662..9076a004c69f05b6709ba10abf57ebfb9760a90c 100644 (file)
@@ -162,7 +162,7 @@ SectionEnd
 
 Section /o "English (AU)" SecDEnglishAU
  StrCpy $DictCodes "en_AU,$DictCodes"
- AddSize 587
+ AddSize 651
 SectionEnd
 
 Section /o "English (CA)" SecDEnglishCA
@@ -174,7 +174,7 @@ Section "English (GB)" SecDEnglishGB
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "en_GB,$DictCodes"
- AddSize 652
+ AddSize 760
 SectionEnd
 
 Section /o "English (NZ)" SecDEnglishNZ
@@ -186,7 +186,7 @@ Section "English (US)" SecDEnglishUS
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "en_US,$DictCodes"
- AddSize 530
+ AddSize 547
 SectionEnd
 
 Section "Español (ES)" SecDSpanishES
@@ -237,7 +237,7 @@ SectionEnd
 
 Section /o "Gàidhlig" SecDScottish
  StrCpy $DictCodes "gd_GB,$DictCodes"
- AddSize 3090
+ AddSize 4161
 SectionEnd
 
 Section /o "Galego" SecDGalician
@@ -317,12 +317,12 @@ SectionEnd
 
 Section /o "Norsk (Bokmål)" SecDNorwegianNB
  StrCpy $DictCodes "nb_NO,$DictCodes"
- AddSize 3992
+ AddSize 5291
 SectionEnd
 
 Section /o "Norsk (Nynorsk)" SecDNorwegianNN
  StrCpy $DictCodes "nn_NO,$DictCodes"
- AddSize 1540
+ AddSize 3292
 SectionEnd
 
 Section /o "Occitan" SecDOccitan
@@ -477,7 +477,7 @@ SectionEnd
 
 Section /o "English (US/AU)" SecTEnglishUSAU
  StrCpy $ThesCodes "en_US,$ThesCodes"
- AddSize 21600
+ AddSize 22095
 SectionEnd
 
 Section /o "Español" SecTSpanish
@@ -522,7 +522,12 @@ SectionEnd
 
 Section /o "Norsk (Bokmål)" SecTNorwegianNB
  StrCpy $ThesCodes "nb_NO,$ThesCodes"
- AddSize 2535
+ AddSize 2595
+SectionEnd
+
+Section /o "Norsk (Nynorsk)" SecTNorwegianNN
+ StrCpy $ThesCodes "nn_NO,$ThesCodes"
+ AddSize 2
 SectionEnd
 
 Section /o "Polski" SecTPolish
@@ -1328,6 +1333,13 @@ Function .onInit
    SectionSetFlags ${SecTNorwegianNB} $0
    SectionSetSize ${SecTNorwegianNB} 0
   ${endif}
+  StrCpy $Search "nn_NO"
+  Call StrPoint
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecTNorwegianNN} $0
+   SectionSetSize ${SecTNorwegianNN} 0
+  ${endif}
   StrCpy $Search "pl_PL"
   Call StrPoint
   ${if} $Pointer != "-1"