setup: add words.txt

This commit is contained in:
FollieHiyuki 2021-05-16 15:12:56 +03:00
parent 045fa07a15
commit 09ec1653bd
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<!-- Default font (no fc-match pattern) -->
<match>
<edit mode="prepend" name="family">
<string>Iosevka Etoile</string>
<string>Iosevka Aile</string>
</edit>
</match>
@ -14,7 +14,7 @@
<string>ja</string>
</test>
<edit mode="prepend" name="family">
<string>Sarasa Fixed Slab J</string>
<string>Sarasa Fixed J</string>
</edit>
</match>

View File

@ -7,7 +7,7 @@ underline=$(tput smul)
esc=$(tput sgr0)
if [ -z "$1" ]; then
aspell dump master | sort | fzf --no-multi | xargs -r dict
sort ~/.local/share/words.txt | fzf --no-multi | xargs -r dict
else
curl -s "dict://dict.org/d:$1" | sed -n -e '/^151.*/,/^\./p' | sed -e 's/^151.*//g' -e '/^\./D' -e '/^\s*1\./i\\' -e "s/{\([^{]*\)}/${esc}${bold}${underline}\1${esc}/g" -e "s/^\($1\)\(\W\)/${esc}${bold}${red}\1${esc}\2/gI" -e "s/^\(\s*\)\([0-9]\.\)/\1${esc}${bold}${cyan}\2${esc}/g" -e 's/--/—/g' -e 's/—\(\w\)/— \1/g'
fi

View File

@ -28,3 +28,6 @@ read -r answer
if [ "${answer}" = "y" ]; then
$HOME/.local/bin/cht.sh --standalone-install $HOME/.local/share/cheat.sh
fi
# Not a script but whatever
curl -fL https://github.com/dwyl/english-words/raw/master/words.txt $HOME/.local/share/words.txt