Make your own dictionary for MacOSX!
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
Gemfile
README.md
Rakefile
osx_dict.gemspec

README.md

osx_dict

Make your own dictionary for MacOSX! The location to put user dictionary is ~/Library/Dictionaries.

Install

gem install osx_dict

Example

require 'osx_dict'

dict = OSXDict::Dictionary.new(:id => 'com.example.Foo', :name => "Foo Dictionary", :filename => 'Foo Dict')

dict.add_entry(:id => 'foo', :title => 'Foo', :indexes => ['foo', 'Foo'], :body => <<BODY)
<h1>foo</h1>
<p>foo foo foo</p>
BODY

dict.add_entry(:id => 'bar', :title => 'Bar', :indexes => ['bar', 'Bar'], :body => <<BODY)
<h1>bar</h1>
<p>bar bar</p>
BODY

dict.make

Copyright

Copyright (c) 2012 jugyo, released under the MIT license