squelette

find exceptional genders for a noun ending
git clone https://a3nm.net/git/squelette/
Log | Files | Refs

commit 4a10784791be5e7cccaa887484a7b90740ed0c45
parent 512101976a19ea408f97a4a2d69afb6f440161e7
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun,  6 Sep 2015 00:06:32 +0200

fixes

Diffstat:
head | 2+-
makegame.sh | 4++--
squelette.sh | 5++++-
template.md | 2+-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/head b/head @@ -4,7 +4,7 @@ <title>Mot GENDER en -SUFFIX</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="stylesheet" href="main.css" type="text/css" /> + <link rel="stylesheet" href="../main.css" type="text/css" /> </head> <body> <div id="container"> diff --git a/makegame.sh b/makegame.sh @@ -5,6 +5,7 @@ set -x cd game CODE=$(pwgen 16 1) NUM=1 +cp ../main.css . htmlredirect "$CODE" > index.html while read l do @@ -29,6 +30,5 @@ done mkdir -p $CODE cd $CODE python -m markdown -x markdown.extensions.toc ../../finish.md | - cat ../../head - ../../foot | - > index.html + cat ../../head - ../../foot > index.html cd .. diff --git a/squelette.sh b/squelette.sh @@ -33,7 +33,7 @@ grep -v '0 0 [0-9]* [0-9]*$' eval_raw | awk '$5 > 2 && $7>20' | ./filter.py < enigmes | awk '$4 > 0.57' | cat - <(echo) | ./mkenigme.sh | sed '$d' > texte -head -42 enigmes | cut -d ' ' -f1,3 | +./filter.py < enigmes | head -42 | cut -d ' ' -f1,3 | awk '{ printf "%s %s\n", $2 == "f" ? "masculin" : "féminin ", $1 @@ -42,3 +42,6 @@ head -42 enigmes | cut -d ' ' -f1,3 | cat enigmes2 | awk '{ printf "trouver un mot %s en -%s\n", $1, $2 }' > liste +mkdir -p game + +./makegame.sh < enigmes2 diff --git a/template.md b/template.md @@ -1,4 +1,4 @@ -**Question NUM :** Y a-t-il un mot *GENDER* se finissant en *-PREFIX* ? +**Question NUM :** Trouver un mot *GENDER* se finissant en *-PREFIX* ! <form action="#" onsubmit="window.location.href = document.getElementById('page').value + '.html';"> <input id="page" placeholder="votre mot ici"/>