tabfile: make it possible to set metadata

And some related clean-up.
This commit is contained in:
2021-10-07 16:26:57 +02:00
parent ed8b1bcdad
commit 20fcf2a0c7
6 changed files with 85 additions and 56 deletions

View File

@@ -5,4 +5,8 @@
curl -Lo- https://slovnik-cizich-slov.abz.cz/export.php | \
iconv -f latin2 -t UTF-8 | perl -CSD -F\\\| -le '
print "$_\t" . $F[2] =~ s/\\/\\\\/gr =~ s/; /\\n/gr for split(", ", $F[0])
' | sort -u | tabfile slovnik-cizich-slov
' | sort -u | tabfile slovnik-cizich-slov \
--book-name="Slovník cizích slov" \
--website=https://slovnik-cizich-slov.abz.cz \
--date="$(date +%F)" \
--collation=cs_CZ