medieval_latina 1.0.2 → 1.0.7

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: 6b2dbf4d62fea9a0a7a3d06f6a66c3902eb85ba0605eb927c6f390c2ac7367e3
4
- data.tar.gz: 5396df26ae69ce6c0c4b3cd59d6af0b242246b31e4fac33698dc9ad1cafbb912
3
+ metadata.gz: 8b633d0e22c3a1c2dff35e5e8cb2276fa9917268f5267ec63595f7caf6a6c746
4
+ data.tar.gz: 94db065671a3f3f2f732fa74293cc7a33416853db8a5e66a45c2fb7e490ca781
5
5
  SHA512:
6
- metadata.gz: 3817575ebbb2313e5c0ff600f44aa6cd94b0968212490b0853293b5cd7ef787e3999c59317c10347e1f6409cd48d6e74d0e4ca79c9bf738fe9c8e9f7b2d84957
7
- data.tar.gz: 400e0dc6c1b3adff85c6e1dbcaa81f642cec74f8c1e046c107568a65e552082700156175d6690f057110981013a84584b660014e7bf62b5be03e222d75e79312
6
+ metadata.gz: e2527073503c1c18da8047d98697ebeeb0f7002d469e5999f8992b856bdfe557ee084467427a2766edf3593ea623efd93f6bb8d87f3a1625b7b1a199b76584a7
7
+ data.tar.gz: 041c8d5d20dc04a1abcdf7d3ee3d6e3d78d41b639bccaa22861d44cb7fe3587a3afcc31a7f57712869f631b2bc09aa8f59db55d66051df570d1abc1f6bca24a3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- medieval_latina (1.0.2)
4
+ medieval_latina (1.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -35,7 +35,7 @@ Then, run `rake spec` to run the tests.
35
35
  You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
36
 
37
37
  To install this gem onto your local machine, run `bundle exec rake install`.
38
- To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+ To release a new version, update the version number in `version.rb`, run `bin/setup` to increment the version in the lock file, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
39
  Run `standardrb --fix` before submitting any changes, to help keep the code formatting uniform.
40
40
 
41
41
  ## Contributing
@@ -3,9 +3,9 @@ require "medieval_latina/version"
3
3
 
4
4
  class MedievalLatina
5
5
  def self.[](text)
6
- text.split(" ").map do |word|
6
+ text.split(" ").map { |word|
7
7
  DICTIONARY[word.downcase] || new(word).call
8
- end.join(" ")
8
+ }.join(" ")
9
9
  end
10
10
 
11
11
  def initialize(word)
@@ -34,12 +34,13 @@ class MedievalLatina
34
34
  CONSONENTS = {
35
35
  c: ->(rest) { SOFT_C.any? { |item| rest.start_with?(item) } ? "ch" : "k" },
36
36
  g: ->(rest) { SOFT_G.any? { |item| rest.start_with?(item) } ? "j" : "g" },
37
- j: ->(rest) { "y" }
37
+ j: ->(rest) { "y" },
38
+ x: ->(rest) { "ks" }
38
39
  }
39
40
  CONSONENT_TEAMS = {qu: "kw"}
40
41
  SOFT_C = ["e", "i", "ae", "oe"]
41
42
  SOFT_G = SOFT_C
42
- VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "ow"}
43
+ VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "ou"}
43
44
  VOWELS = {a: "ah", e: "ay", i: "ee", o: "oh", u: "oo"}
44
45
 
45
46
  Result = Struct.new(:substring, :increment_by)
@@ -1,5 +1,12 @@
1
1
  class MedievalLatina
2
2
  DICTIONARY = {
3
- "duo" => "doo-oh"
4
- }.freeze
5
- end
3
+ "alma" => "almuh",
4
+ "et" => "ate",
5
+ "ex" => "ex",
6
+ "duo" => "doo-oh",
7
+ "mater" => "mah-tare",
8
+ "octo" => "awk-toh",
9
+ "optime" => "op-tee-may",
10
+ "quo" => "quo"
11
+ }.freeze
12
+ end
@@ -1,3 +1,3 @@
1
1
  class MedievalLatina
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.7"
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.2
4
+ version: 1.0.7
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-08-09 00:00:00.000000000 Z
11
+ date: 2020-09-03 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.