2021-10-07 03:37:12 +02:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Slovník cizích slov, see https://slovnik-cizich-slov.abz.cz/web.php/o-slovniku
|
2021-10-07 17:21:49 +02:00
|
|
|
# XXX: skipping the /optional/ pronunciation field, tabfile can't handle that
|
2021-10-07 03:37:12 +02:00
|
|
|
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])
|
2021-10-07 16:26:57 +02:00
|
|
|
' | 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
|