mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
feat: add dictionary scripts
This commit is contained in:
9
packages/scripts/boetlingk.sh
Executable file
9
packages/scripts/boetlingk.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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" -
|
||||
Reference in New Issue
Block a user