fixed bugs, when a word is not a word that aspell recognizes, e.g. 'foo or 你好 immediately returns empty string by Aspell -> spellcheck would choke on those words and hang forever in f.gets
Added command line command: middleman spellcheck source/blog/ source/about.erb to manually run this command for individual files
non-English languages work now to, as i replaced the letter regex with \p{L}, so all unicode letters are selected
removed script, style and code blocks from spellcheck, as those are likely not intended to be fixed
Added config option to disable the automatic run after build (default behavior as before = always run)
if lang is defined on individual resources, that lang will be used for spellcheck, too. Also, I added a clause, to make the lang option callable, so this lang can be determined for a post: active :spellcheck, lang: ->(r) { r.lang.to_s }
Let me know what you think! I can try to split thinks up, but that is a little work, as some changes relate to each other
Hello,
I've done:
f.gets
middleman spellcheck source/blog/ source/about.erb
to manually run this command for individual files\p{L}
, so all unicode letters are selectedactive :spellcheck, lang: ->(r) { r.lang.to_s }
Let me know what you think! I can try to split thinks up, but that is a little work, as some changes relate to each other