POL_Internal_InstallFonts

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 9378810
Wine: System

Feedbacks

Source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            $POL_WGET "https://netix.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font" || return 1
            # Fix bad file name
            mv "./download" "./$font"
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    POL_SetupWindow_pulse 50
    sleep 1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Contributions

Filters:

Contribute
Member Message
Quentin PÂRIS Thursday 10 January 2019 at 21:14
Quentin PÂRIS
Admin

Information

This update has been approved by the team.

Differences

@@ -39,7 +39,7 @@
             echo "$(eval_gettext 'Downloading: ')$font..."
             #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
             # BTW all downloaded file has 'download' as name!
-            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
+            $POL_WGET "https://netix.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font" || return 1
             # Fix bad file name
             mv "./download" "./$font"
             PULSE=$(( PULSE + 4 ))

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            $POL_WGET "https://netix.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font" || return 1
            # Fix bad file name
            mv "./download" "./$font"
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    POL_SetupWindow_pulse 50
    sleep 1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

cjuniorfox Monday 19 November 2018 at 11:46
cjuniorfox Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I was unable to download tahoma32.exe.

The link works ok, but from installer, does not work as well.

I made some code updates changing a little the source and replacing the url for a new one.

 

Differences

@@ -1,3 +1,7 @@
+#!/usr/bin/env playonlinux-bash       
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+POL_SetupWindow_Init
 if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
     POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"
 
@@ -25,8 +29,8 @@
     rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
     FONTDIR="$POL_USER_ROOT/fonts/"
     mkdir -p "$FONTDIR"
-    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
-    cd "$FONTDIR"
+    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe tahoma32.exe"
+    cd "$FONTDIR" || exit
     PULSE=0
 
     POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
@@ -39,24 +43,28 @@
             echo "$(eval_gettext 'Downloading: ')$font..."
             #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
             # BTW all downloaded file has 'download' as name!
-            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
+            if [ "$font" = "tahoma32.exe" ]; then
+                $POL_WGET "http://dir.vietnam.online.fr/misc/tahoma32.exe" || return 1;
+            else
+                $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1;
+            fi
             # Fix bad file name
             mv "./download" "./$font"
             PULSE=$(( PULSE + 4 ))
             POL_SetupWindow_pulse $PULSE
             sleep 0.1
     done
-     
-    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
-    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
+      
+    #echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
+    #POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
     # ccd250dd30247d68e0f8a14adf797262
     # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
     # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
     # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
-    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
-    POL_SetupWindow_pulse 50
-    sleep 1
-     
+    #$POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
+    #POL_SetupWindow_pulse 50
+    #sleep 1
+      
     POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
     for font in $FONTS_INSTALLER
     do
@@ -68,19 +76,21 @@
             POL_SetupWindow_pulse $PULSE
             sleep 0.1
     done
-     
-    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
-    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
-    #cabextract TAHOMA32.EXE > /dev/null
-    cabextract tahoma32.exe > /dev/null
+      
+    #POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
+    #echo "$(eval_gettext 'Installing: ')tahoma32.exe"
+    ##cabextract TAHOMA32.EXE > /dev/null
+    #cabextract tahoma32.exe > /dev/null
     POL_SetupWindow_pulse 100
-    sleep 1
-     
+    sleep 0.5
+      
     POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
-     
+      
     rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
-     
+      
     sleep 0.5
     touch "$POL_USER_ROOT/configurations/msfonts_installed"
     #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
 fi
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash       
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe tahoma32.exe"
    cd "$FONTDIR" || exit
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            if [ "$font" = "tahoma32.exe" ]; then
                $POL_WGET "http://dir.vietnam.online.fr/misc/tahoma32.exe" || return 1;
            else
                $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1;
            fi
            # Fix bad file name
            mv "./download" "./$font"
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
      
    #echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    #POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    #$POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    #POL_SetupWindow_pulse 50
    #sleep 1
      
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
      
    #POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    #echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    ##cabextract TAHOMA32.EXE > /dev/null
    #cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 0.5
      
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
      
    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
      
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi
POL_SetupWindow_Close
exit

Replies

cjuniorfox Friday 16 November 2018 at 19:24
cjuniorfox Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -25,7 +25,7 @@
     rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
     FONTDIR="$POL_USER_ROOT/fonts/"
     mkdir -p "$FONTDIR"
-    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
+    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe tahoma32.exe"
     cd "$FONTDIR"
     PULSE=0
 
@@ -39,7 +39,11 @@
             echo "$(eval_gettext 'Downloading: ')$font..."
             #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
             # BTW all downloaded file has 'download' as name!
-            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
+            if ["$font" = "tahoma32.exe"]; then
+                $POL_WGET "http://dir.vietnam.online.fr/misc/tahoma32.exe" || return 1;
+            else
+                $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1;
+            fi
             # Fix bad file name
             mv "./download" "./$font"
             PULSE=$(( PULSE + 4 ))
@@ -47,15 +51,15 @@
             sleep 0.1
     done
      
-    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
-    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
+    #echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
+    #POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
     # ccd250dd30247d68e0f8a14adf797262
     # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
     # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
     # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
-    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
-    POL_SetupWindow_pulse 50
-    sleep 1
+    #$POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
+    #POL_SetupWindow_pulse 50
+    #sleep 1
      
     POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
     for font in $FONTS_INSTALLER
@@ -69,12 +73,12 @@
             sleep 0.1
     done
      
-    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
-    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
-    #cabextract TAHOMA32.EXE > /dev/null
-    cabextract tahoma32.exe > /dev/null
+    #POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
+    #echo "$(eval_gettext 'Installing: ')tahoma32.exe"
+    ##cabextract TAHOMA32.EXE > /dev/null
+    #cabextract tahoma32.exe > /dev/null
     POL_SetupWindow_pulse 100
-    sleep 1
+    sleep 0.5
      
     POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
      

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe tahoma32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            if ["$font" = "tahoma32.exe"]; then
                $POL_WGET "http://dir.vietnam.online.fr/misc/tahoma32.exe" || return 1;
            else
                $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1;
            fi
            # Fix bad file name
            mv "./download" "./$font"
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    #echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    #POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    #$POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    #POL_SetupWindow_pulse 50
    #sleep 1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    #POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    #echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    ##cabextract TAHOMA32.EXE > /dev/null
    #cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 0.5
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Tutul Sunday 4 February 2018 at 17:26
Tutul
Moderator

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Fix bad file name

Differences

@@ -39,7 +39,9 @@
             echo "$(eval_gettext 'Downloading: ')$font..."
             #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
             # BTW all downloaded file has 'download' as name!
-            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" -o $font || return 1
+            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
+            # Fix bad file name
+            mv "./download" "./$font"
             PULSE=$(( PULSE + 4 ))
             POL_SetupWindow_pulse $PULSE
             sleep 0.1
@@ -76,7 +78,7 @@
      
     POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
      
-    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
+    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
      
     sleep 0.5
     touch "$POL_USER_ROOT/configurations/msfonts_installed"

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
            # Fix bad file name
            mv "./download" "./$font"
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    POL_SetupWindow_pulse 50
    sleep 1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 4 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,EXE,done,dll,DLL,inf,txt,TXT} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Tutul Monday 29 January 2018 at 16:20
Tutul
Moderator

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Change the URL for tahoma32 from winetrick github.

The old URL isn't working anymore

 

Btw, all font are doawnloaded with 'download' as filename. So the POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..." isn't useful.

Differences

@@ -38,6 +38,7 @@
             POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
             echo "$(eval_gettext 'Downloading: ')$font..."
             #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+            # BTW all downloaded file has 'download' as name!
             $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
             PULSE=$(( PULSE + 8 ))
             POL_SetupWindow_pulse $PULSE
@@ -48,7 +49,8 @@
     # ccd250dd30247d68e0f8a14adf797262
     # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
     # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
-    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
+    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
+    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
     POL_SetupWindow_pulse 100
     sleep 1
     PULSE=0

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            # BTW all downloaded file has 'download' as name!
            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    $POL_WGET ftp://ftp.uevora.pt/pub/windows/Microsoft/Euro/Euro-Compatible%20Tahoma%20Font/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=0
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Terces Thursday 14 December 2017 at 0:41
Terces Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

The location of the fonts on sourceforge changed. I adapted the script to point to the new and right location.

Differences

@@ -37,7 +37,8 @@
             sleep 0.1
             POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
             echo "$(eval_gettext 'Downloading: ')$font..."
-            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
             PULSE=$(( PULSE + 8 ))
             POL_SetupWindow_pulse $PULSE
     done

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            #$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            $POL_WGET "https://sourceforge.net/projects/corefonts/files/the%20fonts/final/$font/download" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=0
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Sunday 31 December 2017 at 21:44
Thank you!
riotbr Saturday 2 July 2016 at 23:31
riotbr Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Hi!

It gets an error when downloading Tahoma32.exe. The host of Microsoft doesn't exist.

Differences

@@ -46,8 +46,8 @@
     POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
     # ccd250dd30247d68e0f8a14adf797262
     # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
-    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
-    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
+    $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
+    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
     POL_SetupWindow_pulse 100
     sleep 1
     PULSE=0

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    # $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=0
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

petch Tuesday 11 August 2015 at 18:26
petch
Developer

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

- Remove use of deprecated $REPERTOIRE

- some more pulse bar resets to 0

Differences

@@ -1,11 +1,11 @@
-if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
+if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
     POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"
 
     echo -e "---$(eval_gettext " Licence translated into your language ")---
     $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
     $(eval_gettext "This is no longer the case, but they are still available from third parties.")
 
-    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
+    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"
 
     echo "---$(eval_gettext " Original licence ")---
     These fonts were provided by Microsoft \"in the interest of
@@ -15,21 +15,22 @@
 
     You are free to download these fonts and use them for your own use,
     but you may not redistribute them in modified form, including changes
-    to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
-    cat "$REPERTOIRE/tmp/licence"
+    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
+    cat "$POL_USER_ROOT/tmp/licence"
 
-    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"
+    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"
 
-    rm -r "$REPERTOIRE/fonts/" 2> /dev/null
-    rm "$REPERTOIRE/fonts" 2> /dev/null
-    rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
-    FONTDIR="$REPERTOIRE/fonts/"
+    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
+    rm "$POL_USER_ROOT/fonts" 2> /dev/null
+    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
+    FONTDIR="$POL_USER_ROOT/fonts/"
     mkdir -p "$FONTDIR"
     FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
     cd "$FONTDIR"
-    PULSE=1
+    PULSE=0
 
     POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
+    POL_SetupWindow_pulse 0
 
     for font in $FONTS_INSTALLER
     do
@@ -49,10 +50,11 @@
     $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
     POL_SetupWindow_pulse 100
     sleep 1
-    PULSE=1
+    PULSE=0
      
     POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
-     
+    POL_SetupWindow_pulse 0
+    
     for font in $FONTS_INSTALLER
     do
             sleep 0.1
@@ -76,6 +78,6 @@
     rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
      
     sleep 0.5
-    touch "$REPERTOIRE/configurations/msfonts_installed"
+    touch "$POL_USER_ROOT/configurations/msfonts_installed"
     #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
 fi

New source code

if [ ! -e "$POL_USER_ROOT/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$POL_USER_ROOT/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$POL_USER_ROOT/tmp/licence"
    cat "$POL_USER_ROOT/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$POL_USER_ROOT/tmp/licence"

    rm -r "$POL_USER_ROOT/fonts/" 2> /dev/null
    rm "$POL_USER_ROOT/fonts" 2> /dev/null
    rm "$POL_USER_ROOT/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$POL_USER_ROOT/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=0

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=0
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    POL_SetupWindow_pulse 0
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$POL_USER_ROOT/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

petch Sunday 17 May 2015 at 16:57
petch
Developer

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Use same source for Tahoma font as POL_Install_tahoma2

 

Differences

@@ -1,23 +1,23 @@
 if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
-    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')" 
-    
+    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"
+
     echo -e "---$(eval_gettext " Licence translated into your language ")---
     $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
     $(eval_gettext "This is no longer the case, but they are still available from third parties.")
-    
+
     $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
-    
+
     echo "---$(eval_gettext " Original licence ")---
     These fonts were provided by Microsoft \"in the interest of
     cross-platform compatibility\".
     This is no longer the case, but they are still available from
     third parties.
-    
+
     You are free to download these fonts and use them for your own use,
     but you may not redistribute them in modified form, including changes
     to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
     cat "$REPERTOIRE/tmp/licence"
-    
+
     POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"
 
     rm -r "$REPERTOIRE/fonts/" 2> /dev/null
@@ -28,56 +28,54 @@
     FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
     cd "$FONTDIR"
     PULSE=1
-    
+
     POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
-    
+
     for font in $FONTS_INSTALLER
     do
-    	sleep 0.1
-    	POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
-    	echo "$(eval_gettext 'Downloading: ')$font..."
-    	$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
-    	PULSE=$(( PULSE + 8 ))
-    	POL_SetupWindow_pulse $PULSE
+            sleep 0.1
+            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
+            echo "$(eval_gettext 'Downloading: ')$font..."
+            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+            PULSE=$(( PULSE + 8 ))
+            POL_SetupWindow_pulse $PULSE
     done
-    
+     
     echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
     POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
-    $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
+    # ccd250dd30247d68e0f8a14adf797262
+    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
     # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
+    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
     POL_SetupWindow_pulse 100
     sleep 1
     PULSE=1
-    
+     
     POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
-    
+     
     for font in $FONTS_INSTALLER
     do
-    	sleep 0.1
-    	POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
-    	echo "$(eval_gettext 'Installing: ')$font..."
-    	cabextract "$font" > /dev/null
-    	PULSE=$(( PULSE + 8 ))
-    	POL_SetupWindow_pulse $PULSE
-    	sleep 0.1
+            sleep 0.1
+            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
+            echo "$(eval_gettext 'Installing: ')$font..."
+            cabextract "$font" > /dev/null
+            PULSE=$(( PULSE + 8 ))
+            POL_SetupWindow_pulse $PULSE
+            sleep 0.1
     done
-    
+     
     POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
     echo "$(eval_gettext 'Installing: ')tahoma32.exe"
-    cabextract TAHOMA32.EXE > /dev/null
-    #cabextract tahoma32.exe > /dev/null
+    #cabextract TAHOMA32.EXE > /dev/null
+    cabextract tahoma32.exe > /dev/null
     POL_SetupWindow_pulse 100
     sleep 1
-    
+     
     POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
-    
-    rm *.exe
-    rm *.done
-    rm *.dll
-    rm *.inf
-    rm *.txt
-    
+     
+    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
+     
     sleep 0.5
     touch "$REPERTOIRE/configurations/msfonts_installed"
     #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
-fi
\ No newline at end of file
+fi

New source code

if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
    cat "$REPERTOIRE/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"

    rm -r "$REPERTOIRE/fonts/" 2> /dev/null
    rm "$REPERTOIRE/fonts" 2> /dev/null
    rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$REPERTOIRE/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=1

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
     
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$REPERTOIRE/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Edited by petch

petch Sunday 17 May 2015 at 15:41
petch
Developer

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Revert Tahoma download from Microsoft FTP site, alternate download seems down

Differences

@@ -1,23 +1,23 @@
 if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
-    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')" 
-    
+    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"
+
     echo -e "---$(eval_gettext " Licence translated into your language ")---
     $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
     $(eval_gettext "This is no longer the case, but they are still available from third parties.")
-    
+
     $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
-    
+
     echo "---$(eval_gettext " Original licence ")---
     These fonts were provided by Microsoft \"in the interest of
     cross-platform compatibility\".
     This is no longer the case, but they are still available from
     third parties.
-    
+
     You are free to download these fonts and use them for your own use,
     but you may not redistribute them in modified form, including changes
     to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
     cat "$REPERTOIRE/tmp/licence"
-    
+
     POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"
 
     rm -r "$REPERTOIRE/fonts/" 2> /dev/null
@@ -28,56 +28,54 @@
     FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
     cd "$FONTDIR"
     PULSE=1
-    
+
     POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
-    
+
     for font in $FONTS_INSTALLER
     do
-    	sleep 0.1
-    	POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
-    	echo "$(eval_gettext 'Downloading: ')$font..."
-    	$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
-    	PULSE=$(( PULSE + 8 ))
-    	POL_SetupWindow_pulse $PULSE
+            sleep 0.1
+            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
+            echo "$(eval_gettext 'Downloading: ')$font..."
+            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+            PULSE=$(( PULSE + 8 ))
+            POL_SetupWindow_pulse $PULSE
     done
-    
+     
     echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
     POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
-    $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
+    # ccd250dd30247d68e0f8a14adf797262
+    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
     # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
+    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
     POL_SetupWindow_pulse 100
     sleep 1
     PULSE=1
-    
+     
     POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
-    
+     
     for font in $FONTS_INSTALLER
     do
-    	sleep 0.1
-    	POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
-    	echo "$(eval_gettext 'Installing: ')$font..."
-    	cabextract "$font" > /dev/null
-    	PULSE=$(( PULSE + 8 ))
-    	POL_SetupWindow_pulse $PULSE
-    	sleep 0.1
+            sleep 0.1
+            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
+            echo "$(eval_gettext 'Installing: ')$font..."
+            cabextract "$font" > /dev/null
+            PULSE=$(( PULSE + 8 ))
+            POL_SetupWindow_pulse $PULSE
+            sleep 0.1
     done
-    
+     
     POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
     echo "$(eval_gettext 'Installing: ')tahoma32.exe"
-    cabextract TAHOMA32.EXE > /dev/null
-    #cabextract tahoma32.exe > /dev/null
+    #cabextract TAHOMA32.EXE > /dev/null
+    cabextract tahoma32.exe > /dev/null
     POL_SetupWindow_pulse 100
     sleep 1
-    
+     
     POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
-    
-    rm *.exe
-    rm *.done
-    rm *.dll
-    rm *.inf
-    rm *.txt
-    
+     
+    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
+     
     sleep 0.5
     touch "$REPERTOIRE/configurations/msfonts_installed"
     #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
-fi
\ No newline at end of file
+fi

New source code

if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')"

    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")

    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"

    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.

    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
    cat "$REPERTOIRE/tmp/licence"

    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"

    rm -r "$REPERTOIRE/fonts/" 2> /dev/null
    rm "$REPERTOIRE/fonts" 2> /dev/null
    rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$REPERTOIRE/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=1

    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"

    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
     
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # ccd250dd30247d68e0f8a14adf797262
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    # $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    $POL_WGET http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=1
     
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
     
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
     
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
     
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
     
    rm "$FONTDIR"/*.{exe,done,dll,inf,txt} &> /dev/null
     
    sleep 0.5
    touch "$REPERTOIRE/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies

Edited by petch

Quentin PÂRIS Tuesday 8 July 2014 at 20:55
Quentin PÂRIS
Admin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Preparing the next version of PlayOnLinux and PlayOnMac (4.2.3)

Differences

@@ -1,82 +1,83 @@
-POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')" 
-
-echo -e "---$(eval_gettext " Licence translated into your language ")---
-$(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
-$(eval_gettext "This is no longer the case, but they are still available from third parties.")
-
-$(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
-
-echo "---$(eval_gettext " Original licence ")---
-These fonts were provided by Microsoft \"in the interest of
-cross-platform compatibility\".
-This is no longer the case, but they are still available from
-third parties.
-
-You are free to download these fonts and use them for your own use,
-but you may not redistribute them in modified form, including changes
-to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
-cat "$REPERTOIRE/tmp/licence"
-
-POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"
-WebVersion=$($POL_WGET $SITE/check.txt -O-)
-
-rm -r "$REPERTOIRE/fonts/" 2> /dev/null
-rm "$REPERTOIRE/fonts" 2> /dev/null
-rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
-FONTDIR="$REPERTOIRE/fonts/"
-mkdir -p "$FONTDIR"
-FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
-cd "$FONTDIR"
-PULSE=1
-
-POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
-
-for font in $FONTS_INSTALLER
-do
-	sleep 0.1
-	POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
-	echo "$(eval_gettext 'Downloading: ')$font..."
-	$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
-	PULSE=$(( PULSE + 8 ))
-	POL_SetupWindow_pulse $PULSE
-done
-
-echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
-POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
-# $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
-$POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
-POL_SetupWindow_pulse 100
-sleep 1
-PULSE=1
-
-POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
-
-for font in $FONTS_INSTALLER
-do
-	sleep 0.1
-	POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
-	echo "$(eval_gettext 'Installing: ')$font..."
-	cabextract "$font" > /dev/null
-	PULSE=$(( PULSE + 8 ))
-	POL_SetupWindow_pulse $PULSE
-	sleep 0.1
-done
-
-POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
-echo "$(eval_gettext 'Installing: ')tahoma32.exe"
-#cabextract TAHOMA32.EXE > /dev/null
-cabextract tahoma32.exe > /dev/null
-POL_SetupWindow_pulse 100
-sleep 1
-
-POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
-
-rm *.exe
-rm *.done
-rm *.dll
-rm *.inf
-rm *.txt
-
-sleep 0.5
-touch "$REPERTOIRE/configurations/msfonts_installed"
-POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
\ No newline at end of file
+if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
+    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')" 
+    
+    echo -e "---$(eval_gettext " Licence translated into your language ")---
+    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
+    $(eval_gettext "This is no longer the case, but they are still available from third parties.")
+    
+    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
+    
+    echo "---$(eval_gettext " Original licence ")---
+    These fonts were provided by Microsoft \"in the interest of
+    cross-platform compatibility\".
+    This is no longer the case, but they are still available from
+    third parties.
+    
+    You are free to download these fonts and use them for your own use,
+    but you may not redistribute them in modified form, including changes
+    to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
+    cat "$REPERTOIRE/tmp/licence"
+    
+    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"
+
+    rm -r "$REPERTOIRE/fonts/" 2> /dev/null
+    rm "$REPERTOIRE/fonts" 2> /dev/null
+    rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
+    FONTDIR="$REPERTOIRE/fonts/"
+    mkdir -p "$FONTDIR"
+    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
+    cd "$FONTDIR"
+    PULSE=1
+    
+    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
+    
+    for font in $FONTS_INSTALLER
+    do
+    	sleep 0.1
+    	POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
+    	echo "$(eval_gettext 'Downloading: ')$font..."
+    	$POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
+    	PULSE=$(( PULSE + 8 ))
+    	POL_SetupWindow_pulse $PULSE
+    done
+    
+    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
+    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
+    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
+    $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
+    POL_SetupWindow_pulse 100
+    sleep 1
+    PULSE=1
+    
+    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
+    
+    for font in $FONTS_INSTALLER
+    do
+    	sleep 0.1
+    	POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
+    	echo "$(eval_gettext 'Installing: ')$font..."
+    	cabextract "$font" > /dev/null
+    	PULSE=$(( PULSE + 8 ))
+    	POL_SetupWindow_pulse $PULSE
+    	sleep 0.1
+    done
+    
+    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
+    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
+    #cabextract TAHOMA32.EXE > /dev/null
+    cabextract tahoma32.exe > /dev/null
+    POL_SetupWindow_pulse 100
+    sleep 1
+    
+    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
+    
+    rm *.exe
+    rm *.done
+    rm *.dll
+    rm *.inf
+    rm *.txt
+    
+    sleep 0.5
+    touch "$REPERTOIRE/configurations/msfonts_installed"
+    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
+fi
\ No newline at end of file

New source code

if [ ! -e "$REPERTOIRE/configurations/msfonts_installed" ]; then
    POL_SetupWindow_message "$(eval_gettext "Microsoft fonts aren't installed; I'll install them for you.")" "$(eval_gettext 'Microsoft fonts')" 
    
    echo -e "---$(eval_gettext " Licence translated into your language ")---
    $(eval_gettext "These fonts were provided by Microsoft\n\"in the interest of cross-platform compatibility\".")
    $(eval_gettext "This is no longer the case, but they are still available from third parties.")
    
    $(eval_gettext "You are free to download these fonts and use them for your own use,\nbut you may not redistribute them in modified form,\nincluding changes to the file name or packaging format.")\n" > "$REPERTOIRE/tmp/licence"
    
    echo "---$(eval_gettext " Original licence ")---
    These fonts were provided by Microsoft \"in the interest of
    cross-platform compatibility\".
    This is no longer the case, but they are still available from
    third parties.
    
    You are free to download these fonts and use them for your own use,
    but you may not redistribute them in modified form, including changes
    to the file name or packaging format." >> "$REPERTOIRE/tmp/licence"
    cat "$REPERTOIRE/tmp/licence"
    
    POL_SetupWindow_licence "$(eval_gettext 'Please read and accept the following:')" "$(eval_gettext 'Microsoft fonts')" "$REPERTOIRE/tmp/licence"

    rm -r "$REPERTOIRE/fonts/" 2> /dev/null
    rm "$REPERTOIRE/fonts" 2> /dev/null
    rm "$REPERTOIRE/configurations/fonts_installed" 2> /dev/null
    FONTDIR="$REPERTOIRE/fonts/"
    mkdir -p "$FONTDIR"
    FONTS_INSTALLER="andale32.exe arialb32.exe arial32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe"
    cd "$FONTDIR"
    PULSE=1
    
    POL_SetupWindow_pulsebar "$(eval_gettext 'Downloading fonts')" "$(eval_gettext 'Microsoft fonts')"
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')$font..."
            echo "$(eval_gettext 'Downloading: ')$font..."
            $POL_WGET "http://heanet.dl.sourceforge.net/sourceforge/corefonts/$font" || return 1
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
    done
    
    echo "$(eval_gettext 'Downloading: ')tahoma32.exe"
    POL_SetupWindow_set_text "$(eval_gettext 'Downloading: ')tahoma32.exe"
    # $POL_WGET ftp://ftp.microsoft.com/softlib/MSLFILES/TAHOMA32.EXE || return 1
    $POL_WGET http://residence-eon.tuxfamily.org/Wine/tahoma32.exe || return 1
    POL_SetupWindow_pulse 100
    sleep 1
    PULSE=1
    
    POL_SetupWindow_pulsebar "$(eval_gettext 'Installing fonts')" "$(eval_gettext 'Microsoft fonts')"
    
    for font in $FONTS_INSTALLER
    do
            sleep 0.1
            POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')$font..."
            echo "$(eval_gettext 'Installing: ')$font..."
            cabextract "$font" > /dev/null
            PULSE=$(( PULSE + 8 ))
            POL_SetupWindow_pulse $PULSE
            sleep 0.1
    done
    
    POL_SetupWindow_set_text "$(eval_gettext 'Installing: ')tahoma32.exe"
    echo "$(eval_gettext 'Installing: ')tahoma32.exe"
    #cabextract TAHOMA32.EXE > /dev/null
    cabextract tahoma32.exe > /dev/null
    POL_SetupWindow_pulse 100
    sleep 1
    
    POL_SetupWindow_set_text "$(eval_gettext 'Cleaning')"
    
    rm *.exe
    rm *.done
    rm *.dll
    rm *.inf
    rm *.txt
    
    sleep 0.5
    touch "$REPERTOIRE/configurations/msfonts_installed"
    #POL_SetupWindow_message "$(eval_gettext 'Microsoft fonts have been installed successfully.')" "$(eval_gettext 'Microsoft fonts')"
fi

Replies