Sublime Forum

Help installing Swedish spell check in Sublime 3

#1

Hi Guys,

In the sublime 3 documentation for Linux I read that “Dictionaries in a format ready to be used by Sublime Text are available at github.com/SublimeText/Dictionaries” so I downloaded three files:

Swedish.dic
Swedish.aff
Swedish.txt

and copied them all to:

/home/grouchygaijin/.config/sublime-text-3/Packages/User

My Preferences.sublime-settings user file looks like this:

{
	"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
	"dictionary": "Packages/User/Swedish.dic",
	"ignored_packages":
	
		"Vintage"
	],
	"update_check": false
	// Set to true to turn spell checking on by default
    "spell_check": true,

I’ve restarted Sublime.
and I get the error message that:

Error trying to parse settings: Unexpected character, expected a comma or closing bracket in Packages/User/Preferences.sublime-settings:10:5

My question is, what exactly do I need to do to have both Swedish and English spell checking?

Thank you,
GG

0 Likes

#2

Don’t know about swedish and english, but if that is all of your settings file, it is not valid. It should have closing curly bracket. Something like:

{ "color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme", // other settings } // <<<<<<< this curly

0 Likes

#3

[quote=“iamntz”]Don’t know about swedish and english, but if that is all of your settings file, it is not valid. It should have closing curly bracket. Something like:

{ "color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme", // other settings } // <<<<<<< this curly[/quote]

Thank you for the reply.
I guess I am slow :smile:

I changed the file to:

{
	"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
	"dictionary": "Packages/User/Swedish.dic",
	"ignored_packages":
	
		"Vintage"
	],
	"update_check": false
	// Set to true to turn spell checking on by default
	    "spell_check": true

}

but get the same error.
Can you see what I am doing wrong?

0 Likes

#4

OK I got the setting file to save properly.

{
	"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
	"dictionary": "Packages/User/Swedish.dic",
	"spell_check": true
}

However, I still can’t check spelling in Swedish. It returns no suggestion found for every word.

0 Likes

#5

It could be a wrong format or encoding dictionary.
Did you try the one from this link ?
https://github.com/SublimeText/Dictionaries

0 Likes

#6

For testing, I cloned the whole repository, then from command pallete i changed dictionary. Works awesome.

0 Likes

#7

[quote=“bizoo”]It could be a wrong format or encoding dictionary.
Did you try the one from this link ?
https://github.com/SublimeText/Dictionaries[/quote]

Yes that is where I got the Swedish files from.
Since it is working for you, could you please give me a step by step of what you did to get it to work?

0 Likes

#8

Here are my user configuration settings:

{
	"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
	"dictionary": "Packages/User/Swedish.dic",
	"spell_check": true
}
 

Here is a screen shot of what happens when I try to check a word that ST thinks is misspelled.
Det is a Swedish word.

http://screencloud.net/v/D2ZM

0 Likes

#9

OK - I got it.
Thanks for the help.

0 Likes