tdv/dicts/slovnik-cizich-slov.sh
Přemysl Eric Janouch 55d0f53f7a
Abandon the idea of sts for slovnik-cizich-slov
We'd need something like inlining the type sequence within the data,
which doesn't seem particularly elegant.
2021-10-07 17:24:24 +02:00

12 lines
534 B
Bash
Executable File

#!/bin/sh -e
# Slovník cizích slov, see https://slovnik-cizich-slov.abz.cz/web.php/o-slovniku
# XXX: skipping the /optional/ pronunciation field, tabfile can't handle that
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 \
--book-name="Slovník cizích slov" \
--website=https://slovnik-cizich-slov.abz.cz \
--date="$(date +%F)" \
--collation=cs_CZ