aboutsummaryrefslogtreecommitdiff
path: root/dicts/slovnik-cizich-slov.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-07 16:26:57 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-07 16:28:44 +0200
commit20fcf2a0c79b8433bf67594d45af54001ca1b613 (patch)
tree4237e3a4cf46b9e1875ad1a236f613f54e45e911 /dicts/slovnik-cizich-slov.sh
parented8b1bcdad7c430af1eef5fbe78b6ec4eb3eb60e (diff)
downloadtdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.tar.gz
tdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.tar.xz
tdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.zip
tabfile: make it possible to set metadata
And some related clean-up.
Diffstat (limited to 'dicts/slovnik-cizich-slov.sh')
-rwxr-xr-xdicts/slovnik-cizich-slov.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/dicts/slovnik-cizich-slov.sh b/dicts/slovnik-cizich-slov.sh
index cb99ea1..bc6bd9a 100755
--- a/dicts/slovnik-cizich-slov.sh
+++ b/dicts/slovnik-cizich-slov.sh
@@ -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