README.md in hunspell-0.1.6 vs README.md in hunspell-0.1.7
- old
+ new
@@ -17,40 +17,40 @@
- dictionary files: download from [LibreOffice](http://cgit.freedesktop.org/libreoffice/dictionaries/tree/) or [OpenOffice](http://wiki.services.openoffice.org/wiki/Dictionaries) websites.
## INSTALLATION
The best way to get Hunspell is to use gem package manager
-
- gem install hunspell
-
+```sh
+gem install hunspell
+```
NOTE: if install fails on newer OSX versions, try this command
-
- sudo ARCHFLAGS="-arch x86_64" gem install hunspell
-
+```sh
+sudo ARCHFLAGS="-arch x86_64" gem install hunspell
+```
If you want to build Hunspell from scratch grab the source from [here](https://github.com/segabor/Hunspell) and execute the
following command
+```sh
+ruby extconf.rb && make
+```
- ruby extconf.rb && make
-
-
FreeBSD gotcha: hunspell spell checker package does not deploy its header
files. Run gem or ruby command with an extra option:
-
- gem install hunspell -- --with-include-dir=<incdir>
-
+```sh
+gem install hunspell -- --with-include-dir=<incdir>
+```
or
-
- ruby extconf.rb --with-include-dir=<incdir> && make
-
+```sh
+ruby extconf.rb --with-include-dir=<incdir> && make
+```
Replace _incdir_ with the path pointing to hunspell includes.
## FIRST STEPS
Here's a basic example how to use Hunspell. Cut it and run in ruby.
### example.rb
-```
+```rb
require "rubygems" # import gem package manager
gem "hunspell" # load Hunspell module
require "Hunspell" # inject Hunspell class to Ruby namespace
# instantiate Hunspell with Hungarian affix and dictionary files