Make hunspell work regardless of dev environment

Add en_US dictionary from https://extensions.libreoffice.org/extensions/english-dictionaries/2017-01.01
rather than relying on system installed ones which may not exist and
point the make logic at that dictionary
This commit is contained in:
Jacob Langley
2017-02-07 12:46:04 -08:00
parent 163dbfb3df
commit f5e0865041
3 changed files with 49178 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ check-badchars: $(SOURCEPATH) $(BUILD_DIR) Makefile
.PHONY: hunspell-check
hunspell-check: $(BUILD_DIR)/plain-nohtml.txt
@echo '##################### Spell check ##################'
hunspell -p hunspell/isocpp.dic -u < build/plain-nohtml.txt > $(BUILD_DIR)/hunspell-report.txt
hunspell -d hunspell/en_US -p hunspell/isocpp.dic -u < build/plain-nohtml.txt > $(BUILD_DIR)/hunspell-report.txt
@if [ -s $(BUILD_DIR)/hunspell-report.txt ]; then echo 'Warning: Spellcheck failed, fix words or add to dictionary:'; cat $(BUILD_DIR)/hunspell-report.txt; false; fi;
# only list words that are not in dict