From 99380d59be12989796ae1dca17d5c9069e381fab Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 9 Jul 2025 13:50:37 +0200 Subject: Better hunspell setup --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7c903d7..169bf9d 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ stage-6.md: stage-5.txt Makefile # This actually updates dict by sorting and removing leading numbers/spaces. dict.tmp: dict + touch dict.tmp cat dict |\ sed "s,^[0-9 ]*,," |\ sort |\ @@ -67,11 +68,11 @@ dict.tmp: dict uniq > dict.tmp && cp dict.tmp dict spellcheck: stage-6.md - hunspell -p dict -d nb_NO stage-6.md dict.tmp + hunspell -p $$(pwd)/dict -d nb_NO,constance-ring $< -spellcheck-words: stage-6.md dict.tmp +spellcheck-words: stage-6.md dict.tmp constance-ring.dic @echo hunspell - hunspell -p dict -d nb_NO -l < $< | sort | uniq -c | sort -n > $@.tmp + hunspell -p $$(pwd)/dict -d nb_NO,constance-ring -l < $< | sort | uniq -c | sort -n > $@.tmp @mv $@.tmp spellcheck-words constance-ring.epub: header.md stage-6.md spellcheck-words -- cgit v1.2.3