hunspell 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +19 -4
- data/extconf.rb +4 -22
- data/hunspell.c +0 -2
- metadata +45 -42
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a680cc27cb06a09dffffc7e22c1a031543e4731b
|
4
|
+
data.tar.gz: c607e0e77a807c307638c14d4a9f3527fab85a19
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 417807e78bec3bcc9c0195afd3e898f900d99d0f0b49fd0bb8b1913efad97004a73a8cd50c2fefad4f00516e7c1bdbb546bd9cc6ac242c7fe94470f6051c6ac9
|
7
|
+
data.tar.gz: 3ae326fcc7767425f1f45371b5c1a25bb597502482d94073fcb8bf42737edfad378e12e90562d19c13d1d294b7a31136f0aed9db862d41f604507bd9de005bd5
|
data/README
CHANGED
@@ -18,9 +18,9 @@ REQUIREMENTS
|
|
18
18
|
|
19
19
|
Before install Hunspell be sure to have the following components:
|
20
20
|
|
21
|
-
- Ruby 1.8
|
21
|
+
- Ruby >= 1.8
|
22
22
|
- rubygems
|
23
|
-
- hunspell 1.
|
23
|
+
- hunspell >= 1.2.x (libhunspell-1.2)
|
24
24
|
http://hunspell.sourceforge.net
|
25
25
|
- dictionary files for Hunspell
|
26
26
|
http://wiki.services.openoffice.org/wiki/Dictionaries
|
@@ -36,7 +36,19 @@ The best way is to use gem package manager.
|
|
36
36
|
If you want to build Hunspell from scratch grab the source and issue the
|
37
37
|
following commands:
|
38
38
|
|
39
|
-
|
39
|
+
ruby extconf.rb && make
|
40
|
+
|
41
|
+
|
42
|
+
FreeBSD gotcha: hunspell spell checker package does not deploy its header
|
43
|
+
files. Run gem or ruby command with an extra option:
|
44
|
+
|
45
|
+
gem install hunspell -- --with-include-dir=...
|
46
|
+
|
47
|
+
or
|
48
|
+
|
49
|
+
ruby extconf.rb --with-include-dir=... && make
|
50
|
+
|
51
|
+
Replace ... to the path pointing to hunspell includes.
|
40
52
|
|
41
53
|
|
42
54
|
FIRST STEPS
|
@@ -69,12 +81,15 @@ puts "Suggestions for 'paprica': " + sp.suggest("paprica").inspect
|
|
69
81
|
|
70
82
|
=== end of example ===
|
71
83
|
|
84
|
+
Note: you might run this example with -Ke ruby option if you want to
|
85
|
+
see accented letters instead of backslash prefixed utf codes.
|
86
|
+
|
72
87
|
|
73
88
|
FEEDBACK
|
74
89
|
--------
|
75
90
|
|
76
91
|
Any help or report warmly appreciated. Please visit the project's homepage at
|
77
|
-
|
92
|
+
https://github.com/segabor/Hunspell or write me to segabor@gmail.com
|
78
93
|
|
79
94
|
|
80
95
|
DISCLAIMER
|
data/extconf.rb
CHANGED
@@ -1,28 +1,10 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
-
|
3
|
+
# Min version
|
4
|
+
HUNSPELL_VER='1.2'
|
4
5
|
|
5
|
-
|
6
|
-
prefix_list << with_config('prefix')
|
7
|
-
end
|
6
|
+
find_library("hunspell-#{HUNSPELL_VER}", 'Hunspell_create')
|
8
7
|
|
9
|
-
#
|
10
|
-
good_prefix = '/usr/local'
|
11
|
-
prefix_list.each do |prefix|
|
12
|
-
if find_library('hunspell-1.1', 'Hunspell_create', prefix + "/lib")
|
13
|
-
good_prefix = prefix
|
14
|
-
break
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
# workaround for FreeBSD where hunspell package does not deploy header files
|
19
|
-
# you can add include dir explicitly
|
20
|
-
inc_dir = if with_config("include-dir")
|
21
|
-
with_config("include-dir")
|
22
|
-
else
|
23
|
-
good_prefix+"/include"
|
24
|
-
end
|
25
|
-
|
26
|
-
dir_config("Hunspell" , inc_dir, good_prefix+"/lib")
|
8
|
+
# dir_config("Hunspell" , inc_dir, good_prefix+"/lib")
|
27
9
|
|
28
10
|
create_makefile("Hunspell")
|
data/hunspell.c
CHANGED
metadata
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
1
|
+
--- !ruby/object:Gem::Specification
|
4
2
|
name: hunspell
|
5
|
-
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
- lib
|
11
|
-
- .
|
12
|
-
email: segabor@gmail.com
|
13
|
-
homepage: http://hunspell.rubyforge.org
|
14
|
-
rubyforge_project:
|
15
|
-
description: Hunspell is an easy native Ruby interface to the famous Hunspell spell checker library which is part of OpenOffice and Mozilla products. With this bundle you can start to develop your own AJAX based spell checker service for Ruby on Rails.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gábor SEBESTYÉN
|
16
8
|
autorequire:
|
17
|
-
default_executable:
|
18
9
|
bindir: bin
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
files:
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
Hunspell is an easy native Ruby interface to the famous Hunspell spell checker
|
15
|
+
library which is part of OpenOffice and Mozilla products. With this bundle
|
16
|
+
you can start to develop your own AJAX based spell checker service for
|
17
|
+
Ruby on Rails.
|
18
|
+
email: segabor@gmail.com
|
19
|
+
executables: []
|
20
|
+
extensions:
|
21
|
+
- extconf.rb
|
22
|
+
extra_rdoc_files: []
|
23
|
+
files:
|
33
24
|
- extconf.rb
|
34
25
|
- hunspell.c
|
35
26
|
- hunspell.rb
|
@@ -37,17 +28,29 @@ files:
|
|
37
28
|
- README
|
38
29
|
- example.rb
|
39
30
|
- LGPL_LICENSE
|
40
|
-
|
41
|
-
|
31
|
+
homepage: https://github.com/segabor/Hunspell
|
32
|
+
licenses: []
|
33
|
+
metadata: {}
|
34
|
+
post_install_message:
|
42
35
|
rdoc_options: []
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
36
|
+
require_paths:
|
37
|
+
- lib
|
38
|
+
- .
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
requirements:
|
50
|
+
- hunspell 1.2 or newer
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 2.0.7
|
53
|
+
signing_key:
|
54
|
+
specification_version: 4
|
55
|
+
summary: Ruby interface to hunspell spell checker
|
56
|
+
test_files: []
|