babosa 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/babosa/transliterator/greek.rb +20 -16
- data/lib/babosa/version.rb +1 -1
- data/spec/transliterators/greek_spec.rb +1 -1
- metadata +8 -8
data/README.md
CHANGED
@@ -243,6 +243,7 @@ tracker](http://github.com/norman/babosa/issues).
|
|
243
243
|
|
244
244
|
Many thanks to the following people for their help:
|
245
245
|
|
246
|
+
* [Vassilis Rodokanakis](https://github.com/vrodokanakis) - Greek support
|
246
247
|
* [Peco Danajlovski](https://github.com/Vortex) - Macedonian support
|
247
248
|
* [Philip Arndt](https://github.com/parndt) - Bugfixes
|
248
249
|
* [Jonas Forsberg](https://github.com/himynameisjonas) - Swedish support
|
@@ -259,6 +260,7 @@ Many thanks to the following people for their help:
|
|
259
260
|
|
260
261
|
## Changelog
|
261
262
|
|
263
|
+
* 0.3.9 - Added missing greek vowels with diaeresis
|
262
264
|
* 0.3.8 - Correct and improve Macedonian support.
|
263
265
|
* 0.3.7 - Fix compatibility with Ruby 1.8.7. Add Swedish support.
|
264
266
|
* 0.3.6 - Allow multiple transliterators. Add Greek support.
|
@@ -7,8 +7,8 @@ module Babosa
|
|
7
7
|
"Ά" => "A",
|
8
8
|
"α" => "a",
|
9
9
|
"ά" => "a",
|
10
|
-
"Β" => "
|
11
|
-
"β" => "
|
10
|
+
"Β" => "V",
|
11
|
+
"β" => "v",
|
12
12
|
"Γ" => "G",
|
13
13
|
"γ" => "g",
|
14
14
|
"Δ" => "D",
|
@@ -19,17 +19,19 @@ module Babosa
|
|
19
19
|
"έ" => "e",
|
20
20
|
"Ζ" => "Z",
|
21
21
|
"ζ" => "z",
|
22
|
-
"Η" => "
|
23
|
-
"Ή" => "
|
24
|
-
"η" => "
|
25
|
-
"ή" => "
|
26
|
-
"Θ" => "
|
22
|
+
"Η" => "I",
|
23
|
+
"Ή" => "i",
|
24
|
+
"η" => "i",
|
25
|
+
"ή" => "i",
|
26
|
+
"Θ" => "TH",
|
27
27
|
"θ" => "th",
|
28
28
|
"Ι" => "I",
|
29
29
|
"Ί" => "Ι",
|
30
30
|
"Î" => "I",
|
31
31
|
"ι" => "i",
|
32
32
|
"ί" => "i",
|
33
|
+
"ϊ" => "i",
|
34
|
+
"ΐ" => "i",
|
33
35
|
"Κ" => "K",
|
34
36
|
"κ" => "k",
|
35
37
|
"Λ" => "L",
|
@@ -38,8 +40,8 @@ module Babosa
|
|
38
40
|
"μ" => "m",
|
39
41
|
"Ν" => "N",
|
40
42
|
"ν" => "n",
|
41
|
-
"Ξ" => "
|
42
|
-
"ξ" => "
|
43
|
+
"Ξ" => "KS",
|
44
|
+
"ξ" => "ks",
|
43
45
|
"Ο" => "O",
|
44
46
|
"Ό" => "O",
|
45
47
|
"ο" => "o",
|
@@ -53,15 +55,17 @@ module Babosa
|
|
53
55
|
"ς" => "s",
|
54
56
|
"Τ" => "T",
|
55
57
|
"τ" => "t",
|
56
|
-
"Υ" => "
|
57
|
-
"Ύ" => "
|
58
|
-
"υ" => "
|
59
|
-
"ύ" => "
|
58
|
+
"Υ" => "Y",
|
59
|
+
"Ύ" => "Y",
|
60
|
+
"υ" => "y",
|
61
|
+
"ύ" => "y",
|
62
|
+
"ϋ" => "y",
|
63
|
+
"ΰ" => "y",
|
60
64
|
"Φ" => "F",
|
61
65
|
"φ" => "f",
|
62
|
-
"Χ" => "
|
63
|
-
"χ" => "
|
64
|
-
"Ψ" => "
|
66
|
+
"Χ" => "X",
|
67
|
+
"χ" => "x",
|
68
|
+
"Ψ" => "PS",
|
65
69
|
"ψ" => "ps",
|
66
70
|
"Ω" => "O",
|
67
71
|
"Ώ" => "O",
|
data/lib/babosa/version.rb
CHANGED
@@ -9,7 +9,7 @@ describe Babosa::Transliterator::Greek do
|
|
9
9
|
it "should transliterate various characters" do
|
10
10
|
examples = {
|
11
11
|
"Γερμανία" => "Germania",
|
12
|
-
"Αυστρία" => "
|
12
|
+
"Αυστρία" => "Aystria",
|
13
13
|
"Ιταλία" => "Italia"
|
14
14
|
}
|
15
15
|
examples.each {|k, v| t.transliterate(k).should eql(v)}
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babosa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.8
|
5
4
|
prerelease:
|
5
|
+
version: 0.3.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Norman Clarke
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 2.3.0
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
none: false
|
26
24
|
requirements:
|
27
25
|
- - ! '>='
|
28
26
|
- !ruby/object:Gem::Version
|
29
27
|
version: 2.3.0
|
28
|
+
prerelease: false
|
29
|
+
type: :development
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rspec
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -35,14 +35,14 @@ dependencies:
|
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: 2.5.0
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
38
|
version_requirements: !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
41
|
- - ~>
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
version: 2.5.0
|
44
|
+
prerelease: false
|
45
|
+
type: :development
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: simplecov
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,14 +51,14 @@ dependencies:
|
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
54
|
version_requirements: !ruby/object:Gem::Requirement
|
57
55
|
none: false
|
58
56
|
requirements:
|
59
57
|
- - ! '>='
|
60
58
|
- !ruby/object:Gem::Version
|
61
59
|
version: '0'
|
60
|
+
prerelease: false
|
61
|
+
type: :development
|
62
62
|
description: ! " A library for creating slugs. Babosa an extraction and improvement
|
63
63
|
of the\n string code from FriendlyId, intended to help developers create similar\n
|
64
64
|
\ libraries or plugins.\n"
|