#!/bin/bash
#
# Infomaniak kDrive - Desktop
# Copyright (C) 2023-2025 Infomaniak Network SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

sed -i .old 's/é/\&eacute;/g' *.html
sed -i .old 's/É/\&Eacute;/g' *.html
sed -i .old 's/è/\&egrave;/g' *.html
sed -i .old 's/È/\&Egrave;/g' *.html
sed -i .old 's/ê/\&ecirc;/g' *.html
sed -i .old 's/Ê/\&Ecirc;/g' *.html
sed -i .old 's/ô/\&ocirc;/g' *.html
sed -i .old 's/Ô/\&Ocirc;/g' *.html
sed -i .old 's/à/\&agrave;/g' *.html
sed -i .old 's/À/\&Agrave;/g' *.html
sed -i .old 's/á/\&aacute;/g' *.html
sed -i .old 's/â/\&acirc;/g' *.html
sed -i .old 's/ó/\&oacute;/g' *.html
sed -i .old 's/ü/\&uuml;/g' *.html
sed -i .old 's/Ü/\&Uuml;/g' *.html
sed -i .old 's/ú/\&uacute;/g' *.html
sed -i .old 's/ù/\&ugrave;/g' *.html
sed -i .old 's/ä/\&auml;/g' *.html
sed -i .old 's/Ä/\&Auml;/g' *.html
sed -i .old 's/ö/\&ouml;/g' *.html
sed -i .old 's/Ö/\&Ouml;/g' *.html
sed -i .old 's/í/\&iacute;/g' *.html
sed -i .old 's/î/\&icirc;/g' *.html
sed -i .old 's/Î/\&Icirc;/g' *.html
sed -i .old 's/ß/\&szlig;/g' *.html
sed -i .old 's/ñ/\&ntilde;/g' *.html
sed -i .old 's/œ/\&oelig;/g' *.html
sed -i .old 's/ç/\&Ccedil;/g' *.html
sed -i .old 's/„/\&bdquo;/g' *.html
sed -i .old 's/“/\&ldquo;/g' *.html
rm -f *.old
