#!/bin/sh
#
read tablo;
echo "Creation page html pour l'allemand";
#
# Tableau 1
# Titre dans le title-bar et titre de la page.
read fic1;
echo "<html><head><title>Bouchon en allemand</title></head><body bgcolor=\"lightblue\"><h2><font color=\"red\"><CENTER>Bouchon en allemand</CENTER></font></h2><CENTER><table width=\"75%\" border=\"1\">" > $tablo;
# Creation table dans table
echo "<tr><td><CENTER><img src=\"../IMAGES/bouchonconteneur.jpg\"></CENTER></td><td rowspan=\"2\"><table width=\"100%\" border=\"1\"><tr><td bgcolor=\"white\" colspan=\"4\"><CENTER>CONTENEUR : der Stöpsel</CENTER></td></tr>" >> $tablo;
# Initialisation du compteur
i=1
# Outils : Wget, lynx, egrep et cat.
for nom1 in `cat $fic1`
{
wget -rO ./PAGES-ASPIREES/Allemand/$i.html $nom1
lynx -dump -nolist $nom1 > ./DUMP-TEXT/Allemand/$i.html
egrep -i "\b(st.psel|stoepsel)\b" ./DUMP-TEXT/Allemand/$i.html > ./CONTEXTES/Allemand/$i.html
cat ./CONTEXTES/Allemand/$i.html >> ./CONTEXTES/conteneur-all.txt
echo "<tr><td width=\"150\" align=\"center\"><a href=\"$nom1\">URL $i</a></td>
<td width=\"150\" align=\"center\"><a href=\"../PAGES-ASPIREES/Allemand/$i.html\">PAGE ASPIREE</a></td>
<td width=\"150\" align=\"center\"><a href=\"../DUMP-TEXT/Allemand/$i.html\">PAGE DUMP</a></td>
<td width=\"150\" align=\"center\"><a href=\"../CONTEXTES/Allemand/$i.html\">PAGE CONTEXTE</a></td></tr>" >> $tablo;
let "i=i+1" ;
}
echo "</td></tr></table><tr><td bgcolor=\"white\"><iframe src=\"../NUAGES/contexte-conteneur-all-dic.TXT.html\" width=\"100%\" height=\"100%\"></iframe></td></tr></table></CENTER>" >> $tablo;
#
# Tableau 2
read fic2;
echo "<p><CENTER><table width=\"75%\" border=\"1\">" >> $tablo;
echo "<tr><td><CENTER><img src=\"../IMAGES/bouchonliege.jpg\"></CENTER></td><td rowspan=\"2\"><table width=\"100%\" border=\"1\"><tr><td bgcolor=\"white\" colspan=\"4\"><CENTER>LIEGE : der Kork</CENTER></td></tr>" >> $tablo;
# Outils : Wget, lynx, egrep et cat.
for nom2 in `cat $fic2`
{
wget -rO ./PAGES-ASPIREES/Allemand/$i.html $nom2
lynx -dump -nolist $nom2 > ./DUMP-TEXT/Allemand/$i.html
egrep -i "\b(kork|korken)\b" ./DUMP-TEXT/Allemand/$i.html > ./CONTEXTES/Allemand/$i.html
cat ./CONTEXTES/Allemand/$i.html >> ./CONTEXTES/liège-all.txt
echo "<tr><td width=\"150\" align=\"center\"><a href=\"$nom2\">URL $i</a></td>
<td width=\"150\" align=\"center\"><a href=\"../PAGES-ASPIREES/Allemand/$i.html\">PAGE ASPIREE</a></td>
<td width=\"150\" align=\"center\"><a href=\"../DUMP-TEXT/Allemand/$i.html\">PAGE DUMP</a></td>
<td width=\"150\" align=\"center\"><a href=\"../CONTEXTES/Allemand/$i.html\">PAGE CONTEXTE</a></td></tr>" >> $tablo;
let "i=i+1" ;
}
echo "</td></tr></table><tr><td bgcolor=\"white\"><iframe src=\"../NUAGES/contexte-liege-all-dic.TXT.html\" width=\"100%\" height=\"100%\"></iframe></td></tr></table></CENTER>" >> $tablo;
#
# Tableau 3
read fic3;
echo "<p><CENTER><table width=\"75%\" border=\"1\">" >> $tablo;
echo "<tr><td><CENTER><img src=\"../IMAGES/bouchonembouteillage.jpg\"></CENTER></td><td rowspan=\"2\"><table width=\"100%\" border=\"1\"><tr><td bgcolor=\"white\" colspan=\"4\"><CENTER>EMBOUTEILLAGE : der Stau</CENTER></td></tr>" >> $tablo;
# Outils : Wget, lynx, egrep et cat.
for nom3 in `cat $fic3`
{
wget -rO ./PAGES-ASPIREES/Allemand/$i.html $nom3
lynx -dump -nolist $nom3 > ./DUMP-TEXT/Allemand/$i.html
egrep -i "\bstau\b" ./DUMP-TEXT/Allemand/$i.html > ./CONTEXTES/Allemand/$i.html
cat ./CONTEXTES/Allemand/$i.html >> ./CONTEXTES/embouteillage-all.txt
echo "<tr><td width=\"150\" align=\"center\"><a href=\"$nom3\">URL $i</a></td>
<td width=\"150\" align=\"center\"><a href=\"../PAGES-ASPIREES/Allemand/$i.html\">PAGE ASPIREE</a></td>
<td width=\"150\" align=\"center\"><a href=\"../DUMP-TEXT/Allemand/$i.html\">PAGE DUMP</a></td>
<td width=\"150\" align=\"center\"><a href=\"../CONTEXTES/Allemand/$i.html\">PAGE CONTEXTE</a></td></tr>" >> $tablo;
let "i=i+1" ;
}
echo "</td></tr></table><tr><td bgcolor=\"white\"><iframe src=\"../NUAGES/contexte-embouteillage-all-dic.TXT.html\" width=\"100%\" height=\"100%\"></iframe></td></tr></table></CENTER>" >> $tablo;
#
# Tableau 4
read fic4;
echo "<p><CENTER><table width=\"75%\" border=\"1\">" >> $tablo;
echo "<tr><td><CENTER><img src=\"../IMAGES/bouchonlyonnais.jpg\"></CENTER></td><td rowspan=\"2\"><table width=\"100%\" border=\"1\"><tr><td bgcolor=\"white\" colspan=\"4\"><CENTER>RESTAURANT : der Bouchon</CENTER></td></tr>" >> $tablo;
# Outils : Wget, lynx, egrep et cat.
for nom4 in `cat $fic4`
{
wget -rO ./PAGES-ASPIREES/Allemand/$i.html $nom4
lynx -dump -nolist $nom4 > ./DUMP-TEXT/Allemand/$i.html
egrep -i "\bbouchon\b" ./DUMP-TEXT/Allemand/$i.html > ./CONTEXTES/Allemand/$i.html
cat ./CONTEXTES/Allemand/$i.html >> ./CONTEXTES/resto-all.txt
echo "<tr><td width=\"150\" align=\"center\"><a href=\"$nom4\">URL $i</a></td>
<td width=\"150\" align=\"center\"><a href=\"../PAGES-ASPIREES/Allemand/$i.html\">PAGE ASPIREE</a></td>
<td width=\"150\" align=\"center\"><a href=\"../DUMP-TEXT/Allemand/$i.html\">PAGE DUMP</a></td>
<td width=\"150\" align=\"center\"><a href=\"../CONTEXTES/Allemand/$i.html\">PAGE CONTEXTE</a></td></tr>" >> $tablo;
let "i=i+1" ;
}
# fin du fichier html
echo "</td></tr></table><tr><td bgcolor=\"white\"><iframe src=\"../NUAGES/contexte-resto-all-dic.TXT.html\" width=\"100%\" height=\"100%\"></iframe></td></tr></table></CENTER></body></html>" >> $tablo;