Add on screen keyboard

This commit is contained in:
Arne Keller 2022-02-23 11:16:34 +01:00
parent 9ecc069cb6
commit acf727ea56
6 changed files with 75 additions and 91 deletions

View File

@ -3,10 +3,10 @@ set -e
word_file=deu_news_2021_100K-words.txt
cat $word_file | head -n10000 | cut -f2 > top10000de_utf8.txt
awk '{ if (length($0) == 5) print }' top10000de_utf8.txt > top10000de_utf8_len5.txt
cat top10000de_utf8_len5.txt | rg "^([A-Za-z]|ä|ö|ü|Ä|Ö|Ü)+\$" | sort > top10000de_utf8_len5_filtered.txt
cat top10000de_utf8_len5.txt | rg "^([A-Za-z]|ä|ö|ü|Ä|Ö|Ü)+\$" | sort > top10000de_utf8_len5_filtered.txt
comm -23 top10000de_utf8_len5_filtered.txt blacklist.txt > valid_words.txt
cat $word_file | cut -f2 | awk '{ if (length($0) == 5) print }' - | rg "^([A-Za-z]|ä|ö|ü|Ä|Ö|Ü)+\$" | sort > valid_guesses.txt
cat $word_file | cut -f2 | awk '{ if (length($0) == 5) print }' - | rg "^([A-Za-z]|ä|ö|ü|Ä|Ö|Ü)+\$" | sort > valid_guesses.txt
comm -23 valid_guesses.txt blacklist.txt > valid_guesses2.txt
mv valid_guesses2.txt valid_guesses.txt

View File

@ -26,11 +26,12 @@ body {
}
.correct {
background-color: lime;
background-color: rgb(0 204 136);
color: #000;
}
.wrong-position {
background-color: yellow;
background-color: rgb(255 204 0);
color: #000;
}
@ -43,4 +44,40 @@ body {
font-size: xx-large;
border: 1px solid #bbb;
vertical-align: top;
text-align: center;
}
#keyboard {
margin-top: 1em;
}
/*
.keyboard-row:nth-child(2) {
margin-left: 0.75em;
}
.keyboard-row:nth-child(3) {
margin-left: 1.5em;
}
*/
.key {
width: 1.5em;
height: 1.5em;
font-size: xx-large;
margin: 0.05em;
vertical-align: top;
color: #fff;
background-color: rgb(107 114 128);
border-color: rgb(55 65 81);
cursor: pointer;
}
#backspace, #enter {
width: 3em;
margin: 0.1em;
display: inline-flex;
justify-content: center;
align-items: center;
}

View File

@ -1,14 +1,17 @@
<!DOCTYPE html>
<meta charset="utf8">
<title>Qwörtle</title>
<link rel="shortcut icon" href="./favicon.png">
<link rel="stylesheet" href="./index.css">
<div class="centering">
<h1>Qwörtle</h1>
<div id="main">
</div>
<div id="main"></div>
<div id="keyboard">
<div class="keyboard-row"></div>
<div class="keyboard-row"></div>
<div class="keyboard-row"></div>
</div>
</div>
<script src="./index.js"></script>

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,6 @@ Abney
Abort
About
Abruf
absaß
Abtei
Abzug
achen
@ -339,10 +338,6 @@ AUKUS
Aulas
Aunty
Aures
außen
Außen
außer
Außer
Autel
Autor
Autos
@ -484,7 +479,6 @@ Beige
Beine
Beins
Beira
beißt
Beitz
bekam
Bekim
@ -532,7 +526,6 @@ Berti
Bertl
Beruf
BERUF
besaß
Besen
beste
Beste
@ -639,7 +632,6 @@ Blood
Bloom
bloss
Bloss
bloße
Blubb
Blues
Bluff
@ -844,10 +836,8 @@ Busch
Busen
Bushs
Busse
büßen
büsst
Büsst
büßte
Büste
Busty
buten
@ -1781,7 +1771,6 @@ flauw
Fleck
Fleet
fleht
Fleiß
Fleth
Fleur
Flick
@ -1845,7 +1834,6 @@ Fötus
Fouls
Foyer
Foyth
Fraaß
Frach
frage
Frage
@ -1918,10 +1906,6 @@ Fürst
Furth
furzt
Füsse
fußen
Füßen
Fußes
fußte
fynup
Gabby
Gabel
@ -1989,7 +1973,6 @@ GECKO
Geely
Geers
Geert
Gefäß
gegen
Gegen
gehen
@ -2007,8 +1990,6 @@ Gelbe
Gelde
Gelle
gelte
gemäß
Gemäß
Gemma
Gemmi
Gempp
@ -2022,7 +2003,6 @@ Genre
Genth
Genua
genug
Genuß
Geoff
geölt
gerät
@ -2033,7 +2013,6 @@ Gerig
gerne
Gerne
Gerty
Gesäß
gesät
Geste
getan
@ -2055,7 +2034,6 @@ gibts
Gibts
Giesa
Giess
gießt
Gifts
Giger
Giggs
@ -2129,7 +2107,6 @@ Gosar
Gosau
Gössi
Gössl
Goßow
Gothe
Götti
Götze
@ -2195,9 +2172,6 @@ Groos
Gropp
Grosi
Gross
große
Große
Größe
grote
Grote
Groth
@ -2212,8 +2186,6 @@ grüne
Grüne
GRÜNE
Grupp
Grüße
grüßt
Guard
Guben
Gucci
@ -2421,10 +2393,6 @@ Heint
heise
Heise
heiss
heiße
Heiße
heißt
Heißt
Heist
Heitz
Helau
@ -2468,7 +2436,6 @@ Hertz
herum
Herzl
Hesse
Heßes
hetze
Hetze
hetzt
@ -3050,7 +3017,6 @@ Kerne
Kerns
Kerry
Kerze
Keßen
Kette
Keule
Keven
@ -3099,7 +3065,6 @@ klart
klärt
klaum
klaus
Klauß
klaut
Klaws
klebt
@ -3533,7 +3498,6 @@ Liegt
Lienz
Liere
Liese
ließe
liest
Liest
Lieth
@ -3695,7 +3659,6 @@ lupft
Lupin
Lürig
Lusin
Lüßen
Lütge
Luthe
Lüthi
@ -3822,10 +3785,6 @@ Maske
Mason
masse
Masse
maßen
Maßen
Maßes
mäßig
matar
Matej
Mateo
@ -4093,11 +4052,8 @@ Musik
Musks
Müsli
müsse
müßig
Müßig
musst
müsst
müßte
Mutes
mutet
mutig
@ -4293,7 +4249,6 @@ nTred
Nübel
Nueva
Nüsse
Nüßle
nutze
Nutze
nütze
@ -4654,7 +4609,6 @@ Preis
Prenn
PREOS
Press
Preuß
Prevc
price
Price
@ -4883,7 +4837,6 @@ Reins
reise
Reise
Reiss
reißt
reist
Reitz
Reize
@ -5175,8 +5128,6 @@ Sapri
Sarma
Sarno
Sasha
saßen
säßen
Sassy
Satan
satte
@ -5217,7 +5168,6 @@ schon
Schon
schön
Schön
Schoß
Schub
schuf
Schuh
@ -5480,7 +5430,6 @@ Spice
spiel
Spiel
Spies
Spieß
Spiez
Spind
Spins
@ -5548,7 +5497,6 @@ statt
Statt
Staub
Staus
Stauß
staut
stays
Steak
@ -5585,7 +5533,6 @@ stieg
Stieg
Stiel
Stier
stieß
Stiff
Stift
Stihl
@ -5618,13 +5565,9 @@ störe
Storm
stört
Storz
stoße
Stöße
stößt
Stoxx
STOXX
Stoye
Straß
Stree
Strem
streu
@ -5675,11 +5618,6 @@ Supes
Suppe
Susan
Sushi
süßen
Süßen
süßer
süßes
Süßes
Suter
Svend
Sweep
@ -6345,10 +6283,6 @@ Weine
weint
weise
Weise
weiße
Weiße
weißt
Weißt
weist
Weisz
weite

View File

@ -37,8 +37,6 @@ Arten
Ärzte
Asien
Augen
außen
außer
Autor
Autos
Babys
@ -226,7 +224,6 @@ fühlt
führe
führt
Funke
Füßen
gaben
ganze
Ganze
@ -239,7 +236,6 @@ gehen
Geist
Gelbe
gelte
gemäß
genau
Genau
genug
@ -255,9 +251,6 @@ griff
Griff
Grill
Gross
große
Große
Größe
Grund
grüne
Grüne
@ -285,8 +278,6 @@ hätte
Hätte
Hause
heben
heiße
heißt
helfe
heran
Herrn
@ -476,7 +467,6 @@ Marke
Markt
Maske
Masse
mäßig
Mauer
meine
Meine
@ -597,7 +587,6 @@ sagen
Sagen
sagte
sahen
saßen
Sätze
sauer
schon
@ -661,14 +650,12 @@ Stern
stets
Stich
stieg
stieß
still
Stock
Stoff
stolz
Stolz
Stopp
stößt
Strom
Stück
Stufe
@ -766,8 +753,6 @@ Wegen
wehrt
Weile
Weise
weiße
Weiße
weist
weite
Welle