mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Windows installer: fix problem with installation of babel Packages
- the installer now re-synchronize MiKTeX's package database before installing or updating LaTeX-packages. This assures that new packages and renamed packages can automatically be installed when they are missing (fixes bug #9370) - update the list of LaTeX packages that have to be installed when LyX is installed via the bundle installer for the first time on a PC - add support for Turkish spell-checking
This commit is contained in:
parent
ba045c0a68
commit
4e1e01361f
@ -1,4 +1,21 @@
|
||||
Changelog for LyX-211-2:
|
||||
Changelog for LyX-212-2:
|
||||
- fix problem that some LaTeX language packages were not installed automatically
|
||||
leading to LaTeX errors when compiling LyX documents
|
||||
- new spell checker for Turkish
|
||||
- updated spell-checker dictionaries for English, Norwegian(Bokmal), Portuguese
|
||||
and Scottish
|
||||
(To benefit from them you must uninstall an already installed LyX 2.1.x and
|
||||
then use this installer.)
|
||||
- updated thesaurus for Slovenian
|
||||
(you need to reinstall LyX to benefit from this)
|
||||
- updated to Python 2.7.9
|
||||
|
||||
|
||||
Changelog for LyX-212-1:
|
||||
- installs LyX 2.1.2
|
||||
|
||||
|
||||
Changelog for LyX-211-2:
|
||||
- updated to Python 2.7.8
|
||||
|
||||
|
||||
|
@ -132,6 +132,8 @@ th_TH.aff
|
||||
th_TH.dic
|
||||
tk_TM.aff
|
||||
tk_TM.dic
|
||||
tr_TR.aff
|
||||
tr_TR.dic
|
||||
uk_UA.aff
|
||||
uk_UA.dic
|
||||
ur_PK.aff
|
||||
|
@ -8,9 +8,54 @@ apacite
|
||||
apalike
|
||||
arabi
|
||||
authordate
|
||||
babel
|
||||
babel-albanian
|
||||
babel-bahasa
|
||||
babel-basque
|
||||
babel-breton
|
||||
babel-bulgarian
|
||||
babel-catalan
|
||||
babel-croatian
|
||||
babel-czech
|
||||
babel-danish
|
||||
babel-dutch
|
||||
babel-english
|
||||
babel-esperanto
|
||||
babel-estonian
|
||||
babel-finnish
|
||||
babel-french
|
||||
babel-galician
|
||||
babel-georgian
|
||||
babel-german
|
||||
babel-greek
|
||||
babel-hebrew
|
||||
babel-hungarian
|
||||
babel-icelandic
|
||||
babel-interlingua
|
||||
babel-irish
|
||||
babel-italian
|
||||
babel-kurmanji
|
||||
babel-latin
|
||||
babel-latvian
|
||||
babel-norsk
|
||||
babel-polish
|
||||
babel-portuges
|
||||
babel-romanian
|
||||
babel-russian
|
||||
babel-samin
|
||||
babel-scottish
|
||||
babel-serbian
|
||||
babel-serbianc
|
||||
babel-slovak
|
||||
babel-slovenian
|
||||
babel-sorbian
|
||||
babel-spanish
|
||||
babel-swedish
|
||||
babel-thai
|
||||
babel-turkish
|
||||
babel-ukrainian
|
||||
babel-vietnamese
|
||||
babel-welsh
|
||||
bibtopic
|
||||
bidi
|
||||
booktabs
|
||||
braille
|
||||
breakurl
|
||||
@ -23,44 +68,42 @@ endnotes
|
||||
enumitem
|
||||
esint
|
||||
eso-pic
|
||||
fontspec
|
||||
fancybox
|
||||
fancyhdr
|
||||
filehook
|
||||
float
|
||||
framed
|
||||
geometry
|
||||
greek-inputenc
|
||||
harvard
|
||||
hyperref
|
||||
hyphenat
|
||||
iftex
|
||||
jurabib
|
||||
lettrine
|
||||
listings
|
||||
lithuanian
|
||||
luainputenc
|
||||
genmisc
|
||||
mhchem
|
||||
mongolian-babel
|
||||
miktex-hyph-mongolian
|
||||
multirow
|
||||
natbib
|
||||
units
|
||||
nomencl
|
||||
polyglossia
|
||||
pdfcomment
|
||||
pdfpages
|
||||
prettyref
|
||||
preview
|
||||
refstyle
|
||||
rotating
|
||||
rotfloat
|
||||
sectionbox
|
||||
serbianc
|
||||
miktex-hyph-serbian
|
||||
setspace
|
||||
shapepar
|
||||
soul
|
||||
splitindex
|
||||
subfig
|
||||
tcolorbox
|
||||
thailatex
|
||||
turkmen
|
||||
ulem
|
||||
@ -73,7 +116,6 @@ wrapfig
|
||||
xargs
|
||||
xcolor
|
||||
xetex-def
|
||||
xkeyval
|
||||
arydshln
|
||||
binhex
|
||||
braket
|
||||
@ -82,7 +124,6 @@ caption
|
||||
colortbl
|
||||
diagbox
|
||||
etoolbox
|
||||
eurosym
|
||||
fp
|
||||
koma-script
|
||||
makecmds
|
||||
@ -92,14 +133,9 @@ pict2e
|
||||
sidecap
|
||||
was
|
||||
charter
|
||||
courier
|
||||
garamondx
|
||||
helvet
|
||||
mathpazo
|
||||
utopia
|
||||
ae
|
||||
bera
|
||||
cbgreek
|
||||
ccfonts
|
||||
cmbright
|
||||
concmath
|
||||
@ -110,14 +146,19 @@ eulervm
|
||||
feyn
|
||||
fontaxes
|
||||
fourier
|
||||
iwona
|
||||
kurier
|
||||
lh
|
||||
lmodern
|
||||
libertine
|
||||
lm-math
|
||||
luxi
|
||||
mdput
|
||||
minion2newtx
|
||||
mslapa
|
||||
newtx
|
||||
stmaryrd
|
||||
symbol
|
||||
tex-gyre
|
||||
tfrupee
|
||||
tipa
|
||||
txfonts
|
||||
wasy
|
||||
@ -145,6 +186,7 @@ ctex
|
||||
dinbrief
|
||||
dtk
|
||||
elsarticle
|
||||
elsevier
|
||||
endfloat
|
||||
epsf
|
||||
europecv
|
||||
@ -174,6 +216,7 @@ placeins
|
||||
powerdot
|
||||
pst-grad
|
||||
pst-node
|
||||
revtex
|
||||
revtex4
|
||||
sauerj
|
||||
savesym
|
||||
@ -191,4 +234,11 @@ ucs
|
||||
upquote
|
||||
xecjk
|
||||
xifthen
|
||||
answers
|
||||
chicago
|
||||
frankenstein
|
||||
jsclasses
|
||||
lambda-lists
|
||||
mathdesign
|
||||
mathtools
|
||||
pdfcrop
|
@ -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 70
|
||||
# the file has 140 lines, but we only need to check for one of the 2 dictionary files per language
|
||||
${for} $5 1 71
|
||||
# the file has 142 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 140 # the file has 140 lines
|
||||
${For} $5 1 142 # the file has 142 lines
|
||||
|
||||
FileRead $R5 $String # $String is now the dictionary name
|
||||
StrCpy $R3 $String -6 # $R3 is now the dictionary language code
|
||||
|
@ -167,14 +167,14 @@ SectionEnd
|
||||
|
||||
Section /o "English (CA)" SecDEnglishCA
|
||||
StrCpy $DictCodes "en_CA,$DictCodes"
|
||||
AddSize 690
|
||||
AddSize 531
|
||||
SectionEnd
|
||||
|
||||
Section "English (GB)" SecDEnglishGB
|
||||
# already installed by default
|
||||
SectionIn RO
|
||||
#StrCpy $DictCodes "en_GB,$DictCodes"
|
||||
AddSize 757
|
||||
AddSize 652
|
||||
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 688
|
||||
AddSize 530
|
||||
SectionEnd
|
||||
|
||||
Section "Español (ES)" SecDSpanishES
|
||||
@ -237,7 +237,7 @@ SectionEnd
|
||||
|
||||
Section /o "Gàidhlig" SecDScottish
|
||||
StrCpy $DictCodes "gd_GB,$DictCodes"
|
||||
AddSize 2504
|
||||
AddSize 3090
|
||||
SectionEnd
|
||||
|
||||
Section /o "Galego" SecDGalician
|
||||
@ -322,7 +322,7 @@ SectionEnd
|
||||
|
||||
Section /o "Norsk (Nynorsk)" SecDNorwegianNN
|
||||
StrCpy $DictCodes "nn_NO,$DictCodes"
|
||||
AddSize 1515
|
||||
AddSize 1540
|
||||
SectionEnd
|
||||
|
||||
Section /o "Occitan" SecDOccitan
|
||||
@ -342,7 +342,7 @@ SectionEnd
|
||||
|
||||
Section /o "Português (PT)" SecDPortuguesePT
|
||||
StrCpy $DictCodes "pt_PT,$DictCodes"
|
||||
AddSize 1595
|
||||
AddSize 1490
|
||||
SectionEnd
|
||||
|
||||
Section /o "Româna" SecDRomanian
|
||||
@ -415,6 +415,11 @@ Section /o "T
|
||||
AddSize 950
|
||||
SectionEnd
|
||||
|
||||
Section /o "Türkçe" SecDTurkish
|
||||
StrCpy $DictCodes "tr_TR,$DictCodes"
|
||||
AddSize 8870
|
||||
SectionEnd
|
||||
|
||||
Section /o "Ukrainian" SecDUkrainian
|
||||
StrCpy $DictCodes "uk_UA,$DictCodes"
|
||||
AddSize 3077
|
||||
@ -542,7 +547,7 @@ SectionEnd
|
||||
|
||||
Section /o "Slovenšcina" SecTSlovenian
|
||||
StrCpy $ThesCodes "sl_SI,$ThesCodes"
|
||||
AddSize 1121
|
||||
AddSize 1110
|
||||
SectionEnd
|
||||
|
||||
Section /o "Slovenský" SecTSlovakian
|
||||
@ -1180,6 +1185,13 @@ Function .onInit
|
||||
SectionSetFlags ${SecDTurkmen} $0
|
||||
SectionSetSize ${SecDTurkmen} 0
|
||||
${endif}
|
||||
StrCpy $Search "tr_TR"
|
||||
Call StrPoint
|
||||
${if} $Pointer != "-1"
|
||||
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
||||
SectionSetFlags ${SecDTurkish} $0
|
||||
SectionSetSize ${SecDTurkish} 0
|
||||
${endif}
|
||||
StrCpy $Search "uk_UA"
|
||||
Call StrPoint
|
||||
${if} $Pointer != "-1"
|
||||
|
@ -11,10 +11,10 @@ These typically need to be modified for each LyX release
|
||||
|
||||
!define APP_VERSION_MAJOR 2
|
||||
!define APP_VERSION_MINOR 1
|
||||
!define APP_VERSION_REVISION 0
|
||||
!define APP_VERSION_REVISION 2
|
||||
!define APP_VERSION_EMERGENCY "" # use "1" for an emergency release of LyX otherwise ""
|
||||
!define APP_EMERGENCY_DOT "" # use "." for an emergency release of LyX otherwise ""
|
||||
!define APP_VERSION_BUILD 1 # Start with 1 for the installer releases of each version
|
||||
!define APP_VERSION_BUILD 2 # Start with 1 for the installer releases of each version
|
||||
|
||||
!define APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}" # Version to display
|
||||
|
||||
|
@ -215,17 +215,26 @@ Section -ConfigureScript
|
||||
# ask to update MiKTeX
|
||||
${if} $LaTeXInstalled == "MiKTeX"
|
||||
Call UpdateMiKTeX # function from latex.nsh
|
||||
# install all necessary packages at once
|
||||
# install all necessary packages at once because this is much faster then to install the packages one by one
|
||||
# NOTE: the babelpackages-txt list is only necessary for LyX 2.1.2 ans 2.1.3 because of the restructuration
|
||||
# of babel in MiKTeX. This can be removed for LyX 2.1.4
|
||||
DetailPrint $(TEXT_CONFIGURE_LYX)
|
||||
${if} $MultiUser.Privileges != "Admin"
|
||||
${andif} $MultiUser.Privileges != "Power"
|
||||
# call the non-admin version
|
||||
# at first we need to synchronize the package database
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"'
|
||||
${else}
|
||||
${if} $MiKTeXUser != "HKCU" # call the admin version
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--update-db"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"'
|
||||
${else}
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"'
|
||||
nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"'
|
||||
${endif}
|
||||
${endif}
|
||||
${endif}
|
||||
|
Loading…
Reference in New Issue
Block a user