medieval_latina 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/medieval_latina.rb +7 -1
- data/lib/medieval_latina/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b259ab2cbd3336a8ebca3c3eaa87dac5affc76850bf2bf8440950175d68287a3
|
4
|
+
data.tar.gz: 89d42056ed9504d4e683b08295a63248fb2e97a6f7a62b1f81148e09824871f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf736dd6b6ff68a479a93b5ebd64643ddd9cf647c39eef1c52b7da20630fcfb0920d08e7b062ea5ae6b8b34f210666591229c2a21b62bd2675e96fc77fedf173
|
7
|
+
data.tar.gz: c2cb0bc3b0a0c5ba85ef0257eb1a424e95e3acee7f1f0ee0dbcffd4132e41208ee18e588016e8379493b81d1509a1fdb783f7bf1116a89b67da967ffe889c450
|
data/Gemfile.lock
CHANGED
data/lib/medieval_latina.rb
CHANGED
@@ -34,6 +34,7 @@ class MedievalLatina
|
|
34
34
|
g: ->(rest) { SOFT_G.any? { |item| rest.start_with?(item) } ? "j" : "g" },
|
35
35
|
j: ->(rest) { "y" }
|
36
36
|
}
|
37
|
+
CONSONENT_TEAMS = {qu: "kw"}
|
37
38
|
SOFT_C = ["e", "i", "ae", "oe"]
|
38
39
|
SOFT_G = SOFT_C
|
39
40
|
VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "ow"}
|
@@ -42,13 +43,18 @@ class MedievalLatina
|
|
42
43
|
Result = Struct.new(:substring, :increment_by)
|
43
44
|
|
44
45
|
def consonent(character, rest)
|
46
|
+
consonent_team = CONSONENT_TEAMS["#{character}#{rest.chars.first}".intern]
|
45
47
|
consonent = if CONSONENTS.key?(character.intern)
|
46
48
|
CONSONENTS[character.intern].call(rest)
|
47
49
|
else
|
48
50
|
character
|
49
51
|
end
|
50
52
|
|
51
|
-
|
53
|
+
if consonent_team
|
54
|
+
Result.new(consonent_team, 2)
|
55
|
+
elsif consonent
|
56
|
+
Result.new(consonent, 1)
|
57
|
+
end
|
52
58
|
end
|
53
59
|
|
54
60
|
def vowel(character, next_character)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: medieval_latina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayson Virissimo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
There are good text-to-speech engines for English and classical Latin, but none for medieval Latin.
|