medieval_latina 1.0.7 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +47 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +3 -3
- data/README.md +4 -4
- data/lib/medieval_latina.rb +4 -4
- data/lib/medieval_latina/dictionary.rb +2 -0
- data/lib/medieval_latina/version.rb +1 -1
- data/medieval_latina.gemspec +1 -1
- metadata +9 -8
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c84716f769586e052066391a2e4d924403552654a52cf2a93aa762aaf5351a
|
4
|
+
data.tar.gz: 1239d96938528236e373ee3a447181a61338765873a509b1cd53d2cfebbb18c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f09bd31881983cf54db9346227e2cfba2bc568d9e6e3f48254add441104808767eec0aa9fd9d77717510b2c484238aafd5fc6f56aa58727cae48d97f29a95f09
|
7
|
+
data.tar.gz: 95f6f126cb06c5096cc89bea694c575aa9c2ffd0aa784ebecc01e669754f9b435febfaca5b857bfb1a2cf19de1f0f6a5f65dc3e18ee8b117e43523eeb71caf03
|
@@ -0,0 +1,47 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
unit_tests:
|
13
|
+
name: Unit Tests
|
14
|
+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
os:
|
19
|
+
- macos
|
20
|
+
- ubuntu
|
21
|
+
ruby:
|
22
|
+
- 2.4
|
23
|
+
- 2.5
|
24
|
+
- 2.6
|
25
|
+
- 2.7
|
26
|
+
- 3.0
|
27
|
+
allow_failures:
|
28
|
+
- false
|
29
|
+
include:
|
30
|
+
- os: ubuntu
|
31
|
+
ruby: ruby-head
|
32
|
+
allow_failures: true
|
33
|
+
env:
|
34
|
+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
35
|
+
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
|
36
|
+
runs-on: ${{ matrix.os }}-latest
|
37
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
38
|
+
steps:
|
39
|
+
- name: Checkout
|
40
|
+
uses: actions/checkout@v2
|
41
|
+
- name: Setup Ruby
|
42
|
+
uses: ruby/setup-ruby@v1
|
43
|
+
with:
|
44
|
+
ruby-version: ${{ matrix.ruby }}
|
45
|
+
bundler-cache: true
|
46
|
+
- name: Test
|
47
|
+
run: bundle exec rake spec || $ALLOW_FAILURES
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
medieval_latina (1.0.
|
4
|
+
medieval_latina (1.0.11)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
ast (~> 2.4.0)
|
14
14
|
rainbow (3.0.0)
|
15
15
|
rake (12.3.3)
|
16
|
-
rexml (3.2.
|
16
|
+
rexml (3.2.5)
|
17
17
|
rspec (3.9.0)
|
18
18
|
rspec-core (~> 3.9.0)
|
19
19
|
rspec-expectations (~> 3.9.0)
|
@@ -52,4 +52,4 @@ DEPENDENCIES
|
|
52
52
|
standard
|
53
53
|
|
54
54
|
BUNDLED WITH
|
55
|
-
2.
|
55
|
+
2.2.13
|
data/README.md
CHANGED
@@ -22,10 +22,10 @@ Or install it yourself as:
|
|
22
22
|
## Usage
|
23
23
|
|
24
24
|
```ruby
|
25
|
-
["
|
26
|
-
# "
|
27
|
-
# "
|
28
|
-
# "
|
25
|
+
["caelum", "omnia", "pugno"].each { |word| puts MedievalLatina[word] }
|
26
|
+
# "chay-loom"
|
27
|
+
# "onm-nee-ah"
|
28
|
+
# "poon-yoh"
|
29
29
|
```
|
30
30
|
|
31
31
|
## Development
|
data/lib/medieval_latina.rb
CHANGED
@@ -10,7 +10,7 @@ class MedievalLatina
|
|
10
10
|
|
11
11
|
def initialize(word)
|
12
12
|
@index = 0
|
13
|
-
@word = word
|
13
|
+
@word = word.downcase
|
14
14
|
end
|
15
15
|
|
16
16
|
def call
|
@@ -37,7 +37,7 @@ class MedievalLatina
|
|
37
37
|
j: ->(rest) { "y" },
|
38
38
|
x: ->(rest) { "ks" }
|
39
39
|
}
|
40
|
-
CONSONENT_TEAMS = {qu: "kw"}
|
40
|
+
CONSONENT_TEAMS = {gn: "n-y", qu: "kw"}
|
41
41
|
SOFT_C = ["e", "i", "ae", "oe"]
|
42
42
|
SOFT_G = SOFT_C
|
43
43
|
VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "ou"}
|
@@ -74,11 +74,11 @@ class MedievalLatina
|
|
74
74
|
|
75
75
|
def initialize(text, index)
|
76
76
|
@character = text[index]
|
77
|
-
@rest = text
|
77
|
+
@rest = text[index + 1..-1].chars.join
|
78
78
|
end
|
79
79
|
|
80
80
|
def to_team
|
81
|
-
"#{character}#{rest
|
81
|
+
"#{character}#{rest[0]}".intern
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
@@ -1,11 +1,13 @@
|
|
1
1
|
class MedievalLatina
|
2
2
|
DICTIONARY = {
|
3
3
|
"alma" => "almuh",
|
4
|
+
"ego" => "ay-goh",
|
4
5
|
"et" => "ate",
|
5
6
|
"ex" => "ex",
|
6
7
|
"duo" => "doo-oh",
|
7
8
|
"mater" => "mah-tare",
|
8
9
|
"octo" => "awk-toh",
|
10
|
+
"omnia" => "ohm-nee-ah",
|
9
11
|
"optime" => "op-tee-may",
|
10
12
|
"quo" => "quo"
|
11
13
|
}.freeze
|
data/medieval_latina.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = description
|
16
16
|
spec.homepage = "https://github.com/jaysonvirissimo/medieval_latina"
|
17
17
|
spec.license = "MIT"
|
18
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
18
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
19
19
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
20
20
|
spec.metadata["homepage_uri"] = spec.homepage
|
21
21
|
spec.metadata["source_code_uri"] = github_uri
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayson Virissimo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-17 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.
|
@@ -19,9 +19,10 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- ".github/workflows/tests.yml"
|
22
23
|
- ".gitignore"
|
23
24
|
- ".rspec"
|
24
|
-
- ".
|
25
|
+
- ".ruby-version"
|
25
26
|
- Gemfile
|
26
27
|
- Gemfile.lock
|
27
28
|
- LICENSE.txt
|
@@ -41,7 +42,7 @@ metadata:
|
|
41
42
|
homepage_uri: https://github.com/jaysonvirissimo/medieval_latina
|
42
43
|
source_code_uri: https://github.com/jaysonvirissimo/medieval_latina
|
43
44
|
changelog_uri: https://github.com/jaysonvirissimo/medieval_latina
|
44
|
-
post_install_message:
|
45
|
+
post_install_message:
|
45
46
|
rdoc_options: []
|
46
47
|
require_paths:
|
47
48
|
- lib
|
@@ -49,15 +50,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
50
|
requirements:
|
50
51
|
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.
|
53
|
+
version: 2.4.0
|
53
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
55
|
requirements:
|
55
56
|
- - ">="
|
56
57
|
- !ruby/object:Gem::Version
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
60
|
-
signing_key:
|
60
|
+
rubygems_version: 3.2.3
|
61
|
+
signing_key:
|
61
62
|
specification_version: 4
|
62
63
|
summary: Transform medieval Latin text into phonetic English
|
63
64
|
test_files: []
|