mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Ship en_US hunspell dictionaries on Windows and OSX
For now, this uses the same OpenOffice dictionaries that were used in previous official releases, downloaded from https://sourceforge.net/projects/openofficeorg.mirror/files/contrib/dictionaries/ In the future this could be updated to some newer dictionary like SCOWL's. Fixes arch1t3cht/Aegisub#21.
This commit is contained in:
parent
0e51cfd131
commit
82dc1631d6
@ -1,5 +1,5 @@
|
||||
; This file declares all installables related to spell checking and thesaurii in Aegisub
|
||||
|
||||
[Files]
|
||||
Source: {#DEPS_DIR}\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion
|
||||
Source: {#DEPS_DIR}\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion
|
||||
Source: {#DEPS_DIR}\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion; Components: dictionaries/en_US
|
||||
Source: {#DEPS_DIR}\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion; Components: dictionaries/en_US
|
||||
|
@ -51,6 +51,9 @@ Copy-New-Item $InstallerDir\bin\aegisub.exe $PortableOutputDir
|
||||
|
||||
Write-Output 'Copying - translations'
|
||||
Copy-New-Items "$InstallerDir\share\locale\*" "$PortableOutputDir\locale" -Recurse
|
||||
Write-Output 'Copying - dictionaries'
|
||||
Copy-New-Item $InstallerDepsDir\dictionaries\en_US.aff $PortableOutputDir\dictionaries
|
||||
Copy-New-Item $InstallerDepsDir\dictionaries\en_US.dic $PortableOutputDir\dictionaries
|
||||
Write-Output 'Copying - codecs'
|
||||
Write-Output 'Copying - codecs\Avisynth'
|
||||
Copy-New-Item $InstallerDepsDir\AvisynthPlus64\x64\Output\system\DevIL.dll $PortableOutputDir
|
||||
|
@ -61,7 +61,14 @@ echo "---- Copying dictionaries ----"
|
||||
if test -f "${DICT_DIR}"; then
|
||||
cp -v "${DICT_DIR}/*" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
||||
else
|
||||
echo "Specified dictionary directory ${DICT_DIR} not found!"
|
||||
mkdir -p "${BUILD_DIR}/dictionaries"
|
||||
if ! test -f "${BUILD_DIR}/dictionaries/en_US.aff"; then
|
||||
echo "Specified dictionary directory ${DICT_DIR} not found. Downloading dictionaries:"
|
||||
curl -L "https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.aff" -o "${BUILD_DIR}/dictionaries/en_US.aff"
|
||||
curl -L "https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.dic" -o "${BUILD_DIR}/dictionaries/en_US.dic"
|
||||
fi
|
||||
cp -v "${BUILD_DIR}/dictionaries/en_US.aff" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
||||
cp -v "${BUILD_DIR}/dictionaries/en_US.dic" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
||||
fi
|
||||
|
||||
echo
|
||||
|
@ -81,7 +81,12 @@ if (!(Test-Path VC_redist)) {
|
||||
Invoke-WebRequest https://aka.ms/vs/17/release/VC_redist.x64.exe -OutFile "$redistDir\VC_redist.x64.exe" -UseBasicParsing
|
||||
}
|
||||
|
||||
# TODO dictionaries
|
||||
# dictionaries
|
||||
if (!(Test-Path dictionaries)) {
|
||||
New-Item -ItemType Directory dictionaries
|
||||
Invoke-WebRequest https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.aff -OutFile dictionaries/en_US.aff -UseBasicParsing
|
||||
Invoke-WebRequest https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.dic -OutFile dictionaries/en_US.dic -UseBasicParsing
|
||||
}
|
||||
|
||||
# localization
|
||||
Set-Location $BuildRoot
|
||||
|
Loading…
x
Reference in New Issue
Block a user