diff options
author | EuAndreh <eu@euandre.org> | 2020-02-05 02:35:39 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-05 02:35:39 -0300 |
commit | e8589f773a0c236ba08d56041515f5cfcfe87549 (patch) | |
tree | e3d9850c796ae358e1eb8fd949c8e68facfa3d95 | |
parent | Revert collections_dir (diff) | |
download | euandre.org-e8589f773a0c236ba08d56041515f5cfcfe87549.tar.gz euandre.org-e8589f773a0c236ba08d56041515f5cfcfe87549.tar.xz |
Remove spelling/
-rwxr-xr-x | spelling/check-spelling.sh | 37 | ||||
-rw-r--r-- | spelling/en_US.aff.txt | 10 | ||||
-rw-r--r-- | spelling/en_US.dic.txt | 11 | ||||
-rw-r--r-- | spelling/fr_FR.dic.txt | 1 | ||||
-rw-r--r-- | spelling/international.dic.txt | 48 |
5 files changed, 0 insertions, 107 deletions
diff --git a/spelling/check-spelling.sh b/spelling/check-spelling.sh deleted file mode 100755 index c9f03d2..0000000 --- a/spelling/check-spelling.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -set -Eeuo pipefail - -HTML_DIR="${1:-}" -[[ -z "${HTML_DIR}" ]] && { - echo 'Undefined input HTML_DIR.' - exit 2 -} - -# Required by =sort= and =hunspell= -export LANG=C.UTF-8 - -for DICT in spelling/*.txt; do - diff <(sort "$DICT") "$DICT" || { - echo "The $DICT dictionary is unsorted. To fix it, run:" - echo " LANG=C.UTF-8 sort $DICT | sponge $DICT" - exit 1 - } -done - -cat spelling/*.txt > dicts.txt -check() { - html="$1" - echo "$1" - hunspell -l -p dicts.txt -d fr_FR -d en_US -i utf-8 "$html" | tee -a spelling.txt -} -export -f check -find "${HTML_DIR}" -type f -name '*.html' | grep -v pastebin | xargs -I{} bash -c "check {}" \; - -if [[ -s spelling.txt ]]; then - printf "\nvvv Mispelled words detected by hunspell.\n\n" - sort < spelling.txt | uniq - printf "\n^^^\n" - exit 1 -else - echo "No words mispelled" -fi diff --git a/spelling/en_US.aff.txt b/spelling/en_US.aff.txt deleted file mode 100644 index 827c34f..0000000 --- a/spelling/en_US.aff.txt +++ /dev/null @@ -1,10 +0,0 @@ -aren -couldn -didn -doesn -isn -pre -sr -ve -wasn -wouldn diff --git a/spelling/en_US.dic.txt b/spelling/en_US.dic.txt deleted file mode 100644 index 90a7531..0000000 --- a/spelling/en_US.dic.txt +++ /dev/null @@ -1,11 +0,0 @@ -autocommit -curation -declaratively -decrypting -programmatically -realising -repo -reproducibility -scriptable -symlinks -tradeoffs diff --git a/spelling/fr_FR.dic.txt b/spelling/fr_FR.dic.txt deleted file mode 100644 index b402cff..0000000 --- a/spelling/fr_FR.dic.txt +++ /dev/null @@ -1 +0,0 @@ -dimanche diff --git a/spelling/international.dic.txt b/spelling/international.dic.txt deleted file mode 100644 index c3c3470..0000000 --- a/spelling/international.dic.txt +++ /dev/null @@ -1,48 +0,0 @@ -144p -250GB -32GB -500GB -81F90EC3CD356060 -8GB -André -BSON -CI -EuAndreh -Fastmail -GPLv3 -GitLab -Gmail -GuixSD -JS -Lerna -Matroska -Merkle -NPM -Nextcloud -NixOS -Pastebin -Raku -SSD -Sourcehut -Spacemacs -Staltz -VPN -Yandex -YouTube -brainer -buildGoModule -ci -dl -guix -i5 -i7 -intbytes -js -libre -merkle -myrepos -no-brainer -npm -touchpad -v8 -youtube |