Open David-Else opened 3 years ago
@David-Else Couple of things here to help us debug this.
ValeMicrosoft.Contractions
for the style you're using… That is strange syntax, is that a custom style you've created?
Do you have a copy of the Microsoft style locally? I don't see any paths in your ini file.
I can't speak for the "all sorts of nonsense" as I'm not sure what you're putting, but for "What'ssssssss
, that's a spelling error, not a contraction, do you have a rule enabled for checking spelling?
Hi, I don't know what you mean by ValeMicrosoft.Contractions
, I am using BasedOnStyles = Vale, Microsoft
in my .ini
file and the official untouched style files from https://github.com/errata-ai/Microsoft/releases/latest/download/Microsoft.zip.
It is all installed locally, the Microsoft.zip
file is extracted into /home/david/bin/styles/Microsoft
. Here is my full .ini
file:
StylesPath = /home/david/bin/styles
Vocab = story
[*.md]
BasedOnStyles = Vale, Microsoft
When I say 'all sorts of nonsense' I mean you can type any spell error you want and it does not detect it. Yes, spell check is on using Vale in the .ini
@David-Else In your message above you mention the following error, that's what I am referring to…
On the following line, I get an error Use 'what's' instead of 'What is'.ValeMicrosoft.Contractions
for spelling errors, do you have an aspell/hunspell compatible dictionary installed? Using Linux, you probably do, but worth asking.
OK, got it, to save you downloading the file it is:
extends: substitution
message: "Use '%s' instead of '%s'."
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions
level: error
ignorecase: true
action:
name: replace
swap:
are not: aren't
cannot: can't
could not: couldn't
did not: didn't
do not: don't
does not: doesn't
has not: hasn't
have not: haven't
how is: how's
is not: isn't
it is: it's
should not: shouldn't
that is: that's
they are: they're
was not: wasn't
we are: we're
we have: we've
were not: weren't
what is: what's
when is: when's
where is: where's
will not: won't
I do have hunspell on the system. It is setup using this:
# Allow ban.spellright to access built in hunspell directories
sudo ln -s /usr/share/myspell "$HOME/.config/Code/Dictionaries
NOTE spellright is uninstalled now
@ChrisChinchilla Did you manage to reproduce the bug, and do you need any more info? Cheers.
@David-Else Not yet! I have a day job :)
I am using the CLI version, not the server.
On the following line, I get an error
Use 'what's' instead of 'What is'.ValeMicrosoft.Contractions
So I correct to:
and I save, the red squiggle goes away. Now add:
and hit save... NOTHING, no red squiggle.
You can add all sorts of nonsense at the end and it does not work. There is definitely a bug! It is not just for this sentence, I have encountered it often.
PS Awesome free software, thanks!