ECLIPSE CROSSWORD EN FRANÇAIS
Le logiciel
"Eclipse Crossword" (LIEN
pour le télécharger) permet de faire des mots croisés,
mais les consignes sont en anglais.
Pour
les mettre en français, vous devez d'abord faire votre grille avec
le logiel, l'enregistrer au format .html, l'ouvrir ensuite dans un éditeur
de pages html, ou bien lorsqu'elle s'affiche dans votre navigateur, allez
chercher le CODE SOURCE de la page.
- Avec FIREFOX : outils >>>Développeur web >>>Code
source de la page>>>enregistrez-le
- Avec Chrome : cliquez sur la clé en haut à droite >>>Outils
>>> afficher la source
- Avec Internet Explorer : je n'en sais rien car je ne l'utilise plus
depuis bien longtemps.
Sélectionnez
tout le texte ci-dessous, copiez-le.
Dans la page "code source" À l'aide de la fonction "rechercher
remplacer", allez chercher : "Across, "
Sélectionnez le texte qui se trouve à partir de là,
effacez-le.
Copiez (CTRL+V) le texte que vous avez copié au préalable.
Vérifiez si des séries de ???? ne se sont pas glissées
dans le texte (ça arrive), supprimez-les.
Les consignes de votre grille de mots croisés sont maintenant
en français.
voir un
exemple
CODE à SÉLECTIONNER et COPIER
Horizontal, " : "Vertical, ") + WordLength[CurrentWord]
+ " letters.";
document.getElementById("wordclue").innerHTML = Clue[CurrentWord];
document.getElementById("worderror").style.display = "none";
document.getElementById("cheatbutton").style.display = (Word.length
== 0) ? "none" : "";
if (TheirWordLength == WordLength[CurrentWord])
document.getElementById("wordentry").value = TheirWord;
else
document.getElementById("wordentry").value = "";
// Finally, show the answer box.
document.getElementById("answerbox").style.display = "block";
try
{
document.getElementById("wordentry").focus();
document.getElementById("wordentry").select();
}
catch (e)
{
}
}
// Called when the user clicks the OK link.
function OKClick()
{
var TheirWord, x, y, i, TableCell;
if (CrosswordFinished) return;
if (document.getElementById("okbutton").disabled) return;
// First, validate the entry.
TheirWord = document.getElementById("wordentry").value.toUpperCase();
if (TheirWord.length == 0)
{
DeselectCurrentWord();
return;
}
if (ContainsBadChars(TheirWord))
{
document.getElementById("worderror").innerHTML = "Le mot
que vous avez tapé contient des caractères non autorisés.
Ne tapez que des lettres svp.";
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length < WordLength[CurrentWord])
{
document.getElementById("worderror").innerHTML = "Vous
n'avez pas tapé assez de lettres. Ce mot a " + WordLength[CurrentWord]
+ " lettres.";
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length > WordLength[CurrentWord])
{
document.getElementById("worderror").innerHTML = "Vous
avez tapé trop de lettres. Ce mot a " + WordLength[CurrentWord]
+ " lettres.";
document.getElementById("worderror").style.display = "block";
return;
}
// If we made it this far, they typed an acceptable word, so add these
letters to the puzzle and hide the entry box.
x = WordX[CurrentWord];
y = WordY[CurrentWord];
for (i = 0; i < TheirWord.length; i++)
{
TableCell = CellAt(x + (CurrentWord <= LastHorizontalWord ? i : 0),
y + (CurrentWord > LastHorizontalWord ? i : 0));
TableCell.innerHTML = TheirWord.substring(i, i + 1);
}
DeselectCurrentWord();
}
// Called when the "check puzzle" link is clicked.
function CheckClick()
{
var i, j, x, y, UserEntry, ErrorsFound = 0, EmptyFound = 0, TableCell;
if (CrosswordFinished) return;
DeselectCurrentWord();
for (y = 0; y < CrosswordHeight; y++)
for (x = 0; x < CrosswordWidth; x++)
if (TableAcrossWord[x][y] >= 0 || TableDownWord[x][y] >= 0)
{
TableCell = CellAt(x, y);
if (TableCell.className == "ecw-box ecw-boxerror_unsel") TableCell.className
= "ecw-box ecw-boxnormal_unsel";
}
for (i = 0; i < Words; i++)
{
// Get the user's entry for this word.
UserEntry = "";
for (j = 0; j < WordLength[i]; j++)
{
if (i <= LastHorizontalWord)
TableCell = CellAt(WordX[i] + j, WordY[i]);
else
TableCell = CellAt(WordX[i], WordY[i] + j);
if (TableCell.innerHTML.length > 0 && TableCell.innerHTML.toLowerCase()
!= " ")
{
UserEntry += TableCell.innerHTML.toUpperCase();
}
else
{
UserEntry = "";
EmptyFound++;
break;
}
}
// If this word doesn't match, it's an error.
if (HashWord(UserEntry) != AnswerHash[i] && UserEntry.length >
0)
{
ErrorsFound++;
ChangeWordStyle(i, "ecw-box ecw-boxerror_unsel");
}
}
// If they can only check once, disable things prematurely.
if ( OnlyCheckOnce )
{
CrosswordFinished = true;
document.getElementById("checkbutton").style.display = "none";
}
// If errors were found, just exit now.
if (ErrorsFound > 0 && EmptyFound > 0)
document.getElementById("welcomemessage").innerHTML = ErrorsFound
+ (ErrorsFound > 1 ? " erreurs" : " erreur") +
" et " + EmptyFound + (EmptyFound > 1 ? " mots incomplets
trouvés" : " mot incomplet trouvé") + "
found.";
else if (ErrorsFound > 0)
document.getElementById("welcomemessage").innerHTML = ErrorsFound
+ (ErrorsFound > 1 ? " erreurs trouvées" : "
erreur trouvée") + " ";
else if (EmptyFound > 0)
document.getElementById("welcomemessage").innerHTML = "Pas
d\'erreur mais " + EmptyFound + (EmptyFound > 1 ? " mots
incomplets trouvés" : " mot incomplet trouvé")
+ " ";
if (ErrorsFound + EmptyFound > 0)
{
document.getElementById("welcomemessage").style.display = "";
return;
}
// They finished the puzzle!
CrosswordFinished = true;
document.getElementById("checkbutton").style.display = "none";
document.getElementById("congratulations").style.display = "block";
document.getElementById("welcomemessage").style.display = "none";
}
// Called when the "cheat" link is clicked.
function CheatClick()
{
if (CrosswordFinished) return;
var OldWord = CurrentWord;
document.getElementById("wordentry").value = Word[CurrentWord];
OKClick();
ChangeWordStyle(OldWord, "ecw-box ecw-boxcheated_unsel");
}
// Returns a one-way hash for a word.
function HashWord(Word)
{
var x = (Word.charCodeAt(0) * 719) % 1138;
var Hash = 837;
var i;
for (i = 1; i <= Word.length; i++)
Hash = (Hash * i + 5 + (Word.charCodeAt(i - 1) - 64) * x) % 98503;
return Hash;
}
//-->
</script>
</table></td>
<td valign="top" style="padding-left: 1em;">
<div class="ecw-copyright">
<a href="http://www.eclipsecrossword.com/" target="_blank"
style="font-weight: bold;">EclipseCrossword</a> ©
2000-2007
</div>
<div id="welcomemessage" class="ecw-answerbox"
style="display:none;">
<h3>Bienvenue !</h3>
<p>Cliquez dans une case pour commencer</p>
</div>
<div id="answerbox" class="ecw-answerbox" style="display:none;">
<h3 id="wordlabel" class="ecw-wordlabel">
</h3>
<div id="wordinfo" class="ecw-wordinfo"> </div>
<div id="wordclue" class="ecw-cluebox"> </div>
<div style="margin-top: 1em;">
<input class="ecw-input" id="wordentry" type="text"
size="24" style="font-weight: bold; text-transform:uppercase;"
onkeypress="WordEntryKeyPress(event)" onchange="WordEntryKeyPress(event)"
autocomplete="off" />
</div>
<div id="worderror" class="ecw-worderror"></div>
<table border="0" cellspacing="0" cellpadding="0"
width="100%" style="margin-top:1em;"><tbody><tr><td>
<button id="cheatbutton" type="button" class="ecw-input
ecw-button" onclick="CheatClick();">Solution</button>
</td><td align="right">
<button id="okbutton" type="button" class="ecw-input
ecw-button" onclick="OKClick();" style="font-weight:
bold;">OK</button>
<button id="cancelbutton" type="button" class="ecw-input
ecw-button" onclick="DeselectCurrentWord();">Annuler</button>
</td></tr></tbody></table>
</div>
<div id="congratulations" class="ecw-answerbox"
style="display:none;">
<h3>Félicitations!</h3>
<p>Vous avez terminé.</p>
</div>
</td></tr></table>
<div style="margin-top: 1em;">
<button id="checkbutton" type="button" onclick="CheckClick();"
style="display: none;">
<p align="center">VÉRIFIER</p>
</button>
</div>
<script language="JavaScript" type="text/javascript"><!--
BeginCrossword();
//-->
</script>
<!-- Created with EclipseCrossword, (C) Copyright 2000-2007 Green
Eclipse. eclipsecrossword.com -->
</body></html> |