medieval_latina 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da322f2df21a563b5167ab36f5f117a85f671561e2074813f19ce9195c7c4c03
4
- data.tar.gz: 31f6c7ba58353d7dca2e2fefc959ab7b39a870a760ba46537c7d499f40d56b77
3
+ metadata.gz: b259ab2cbd3336a8ebca3c3eaa87dac5affc76850bf2bf8440950175d68287a3
4
+ data.tar.gz: 89d42056ed9504d4e683b08295a63248fb2e97a6f7a62b1f81148e09824871f8
5
5
  SHA512:
6
- metadata.gz: a98763a2f789447e22a9724e3b222e1f50cbdea95367f1f282b6ae644c68bae257b255fafd08e6765fc4173ad4b1585545855f32f786769f3022b0e522b6f7e5
7
- data.tar.gz: b70ce132468367255306db3106908d5d066697cf642b09d5e301710b433271663866e8f5a23e3f489be2f12b922aa8892a10c1e3f0ed5721349c94cc9ec6dcb0
6
+ metadata.gz: bf736dd6b6ff68a479a93b5ebd64643ddd9cf647c39eef1c52b7da20630fcfb0920d08e7b062ea5ae6b8b34f210666591229c2a21b62bd2675e96fc77fedf173
7
+ data.tar.gz: c2cb0bc3b0a0c5ba85ef0257eb1a424e95e3acee7f1f0ee0dbcffd4132e41208ee18e588016e8379493b81d1509a1fdb783f7bf1116a89b67da967ffe889c450
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- medieval_latina (1.0.0)
4
+ medieval_latina (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- Result.new(consonent, 1)
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)
@@ -1,3 +1,3 @@
1
1
  class MedievalLatina
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-05-23 00:00:00.000000000 Z
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.