Skip to content

Commit 3c0f7df

Browse files
Use aspell (#9)
* Use aspell * Add ru package * Add en package * Remove falsey highlights * Fix sed command * Fix regex * Add encoding * Add encoding 2 * Use nuspell
1 parent d52380c commit 3c0f7df

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/spell_check.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111

12-
- name: Install ispell
12+
- name: Set locale
13+
run: |
14+
export LC_CTYPE=C.utf8
15+
16+
- name: Install nuspell
1317
run: |
1418
sudo apt update
15-
sudo apt install -y ispell
19+
sudo apt install -y nuspell hunspell-ru make
1620
17-
- name: Check _posts directory
18-
run: '! cat _posts/* | ispell -a | grep ^\&'
21+
- name: Check _posts
22+
run: make nuspell

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,16 @@ present:
33

44
serve:
55
bundle exec jekyll serve
6+
7+
aspell:
8+
cat _posts/* | aspell --encoding=UTF-8 --lang=en --camel-case list | aspell --encoding=UTF-8 --lang=ru list | sed "s/\(.*\)/\\\\b\1\\\\b/" | grep -R -f - _posts -n --color=always
9+
10+
nuspell:
11+
cat _posts/* | nuspell -i UTF-8 -d ru_RU -l | sed -r 's/([a-z0-9])([A-Z])/\1 \L\2/g' | sed -E 's/[\.:_]([a-z])/ \1/g' | nuspell -i UTF-8 -d en_US -l | sed "s/\(.*\)/\\\\b\1\\\\b/" | grep -R -f - _posts -n --color=always
12+
13+
hunspell:
14+
hunspell -l -i utf-8 -d ru_RU,en_US _posts/*
15+
16+
ispell:
17+
cat _posts/2021-10-21-effective-java.markdown | ispell -l -d russian
18+

0 commit comments

Comments
 (0)