1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/scripts/boetlingk.sh

10 lines
333 B
Bash
Executable File

#!/bin/sh
set -efu
input="$*"
curl -sSL "https://www.sanskrit-lexicon.uni-koeln.de/scans/PWScan/2020/web/webtc/getword.php?key=$input&filter=roman&accent=yes&transLit=hk" \
| pandoc --standalone --variable=title:"$input" --from=html --to=man \
| sed 's/\s\+\([:.,;]\)/\1/g;s/\s\+/ /g' \
| man --local-file --pager="bat -p" -