From f9f55501cd3110046a162dc55932c3571e9eb379 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 6 Jul 2023 20:45:13 +0200 Subject: Add an explicit errors section --- build | 17 +++++++++++++++++ data/coins | 2 -- data/errors | 2 ++ src/en/euro/coins.template.html | 32 ++++++++++++++++++++++---------- src/pt/euro/coins.template.html | 33 ++++++++++++++++++++++----------- src/style.css | 19 +++++++++++++++++++ 6 files changed, 82 insertions(+), 23 deletions(-) create mode 100644 data/errors diff --git a/build b/build index c881347..aa7f8c8 100755 --- a/build +++ b/build @@ -235,6 +235,23 @@ compile_for_lang() { | colspan.sed \ | grep -Fv 'MARKER LOL' \ | xfsub '' - $nod/index.html + + gawk -v CC=$CC -v lang=$1 ' + BEGIN { + FS = "\t" + } + + $1 == CC { + if (lang !~ /(en|ga|mt|nl)/) { + sub(/\./, ",", $3) + sub(/€/, "", $3) + sub(/$/, " €", $3) + } + + printf "%s%s%s", + $2, $3, $4 + } + ' data/errors | xfsub '' - $nod/index.html done for denom in `grep -Eo '^[0-9]+' data/notes | uniq`; do diff --git a/data/coins b/data/coins index 4c54851..4f1f7af 100644 --- a/data/coins +++ b/data/coins @@ -232,8 +232,6 @@ ES - - X X - - - - 2021 ES - - - - - - - - 2022 ES ? ? ? ? ? ? ? ? 2023 -FI / / / / / / / X 1999 1/3 -FI / / / / / / / X 1999 2/3 FI X - X X X X X X 1999 FI X - X X X X X X 2000 FI - - X - X X X X 2001 diff --git a/data/errors b/data/errors new file mode 100644 index 0000000..13600e0 --- /dev/null +++ b/data/errors @@ -0,0 +1,2 @@ +FI 1999 €2.00 1/3 ‘9’s filled +FI 1999 €2.00 2/3 ‘9’s filled diff --git a/src/en/euro/coins.template.html b/src/en/euro/coins.template.html index 7f9e570..840752c 100644 --- a/src/en/euro/coins.template.html +++ b/src/en/euro/coins.template.html @@ -37,16 +37,6 @@
- -
-

- There is an error that exists for €2 coins minted in 1999 where the - holes in one, two, or even three of the 9’s are filled. The number of - 9’s filled is displayed with a fraction (e.g. 2/3 for two 9’s filled). -

-
-
-

@@ -154,6 +144,28 @@

+ +
+
+ + + + + + + + + + + + + + +
Error Coins
YearDenominationDescription
+
+
+ +
diff --git a/src/pt/euro/coins.template.html b/src/pt/euro/coins.template.html index 4d0e08d..61eac15 100644 --- a/src/pt/euro/coins.template.html +++ b/src/pt/euro/coins.template.html @@ -37,17 +37,6 @@
- -
-

- Existe um erro nas moedas de 2 € cunhadas em 1999, onde os buracos em - um, dois ou até três dos 9s são preenchidos. O número de 9s - preenchidos é exibido com uma fração (por exemplo, 2/3 para dois 9s - preenchidos). -

-
-
-

@@ -156,6 +145,28 @@

+ +
+
+ + + + + + + + + + + + + + +
Error Coins
YearDenominationDescription
+
+
+ +
diff --git a/src/style.css b/src/style.css index 0d74003..3649075 100644 --- a/src/style.css +++ b/src/style.css @@ -826,3 +826,22 @@ div .country-table:not(:first-child) { #lang-button { display: none; } + +.error-table tbody td:nth-child(2) { + border: none; +} + +.error-table tbody tr:first-child td:last-child { + border-top: none; + border-top-left-radius: 16px; +} + +.error-table tbody tr:last-child td:last-child { + border-bottom: none; + border-bottom-left-radius: 16px; +} + +.error-table tbody td:last-child { + border-left: none; + border-right: none; +} -- cgit v1.2.3