On 29.04.2007, at 13:54, Andy Herbert wrote:
Yesterday on the TextMate irc channel the [gSpell service for OSX] was mentioned, which is a fairly neat way of spell checking (more details on the gSpell homepage.) I decided to try and simulate the service as a TextMate command which takes a selection and looks up the most reasonable alternative with Google.
[The tmCommand is Available here.]
After learning Ruby a bit better, here comes the utf-8 version for French, German etc. of it.
You can set a TM shell variable TM_GSPELL_LANG to e.g. 'de' for German, if you want the German spell checker. If it is unset 'en' is the default.
PS Maybe a Ruby programmer could rewrite it better ;)