interscript-maps 2.4.0 → 2.4.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ff5b0b953fb4a12804731b334fda2eaabe5f6b59ef9efd4260708a179f7ce50
|
|
4
|
+
data.tar.gz: 677c01b88897fb641ed3460507efea39856bf39e8165e7d48c6be9bf7855a8ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 125413fd9b33acc722a0acdaa67cc0f320d08a1a893498d3226b4c13f8978eec662034103c3338fb5b3cc1a325af19b2d321160443900b0ca60d774a8a6e5ab0
|
|
7
|
+
data.tar.gz: 70f24c667d231db437a00b64434df99bce800594b37cfa5215fcb34b704a237e11345319605978aac63e26649877de930f4fb3ed486e4e308472d56e1b6a0b86
|
|
@@ -14,14 +14,13 @@ jobs:
|
|
|
14
14
|
with:
|
|
15
15
|
repository: interscript/interscript
|
|
16
16
|
|
|
17
|
-
- name: Run
|
|
17
|
+
- name: Run bootstrap script
|
|
18
18
|
run: ruby bootstrap.rb
|
|
19
19
|
|
|
20
20
|
- uses: ruby/setup-ruby@v1
|
|
21
21
|
with:
|
|
22
22
|
ruby-version: '2.7'
|
|
23
|
-
|
|
24
|
-
working-directory: ./ruby
|
|
23
|
+
bundler-cache: true
|
|
25
24
|
|
|
26
25
|
- uses: actions/setup-node@v1
|
|
27
26
|
with:
|
|
@@ -29,13 +28,17 @@ jobs:
|
|
|
29
28
|
|
|
30
29
|
# For now let's install without secryst, as we don't necessarily need it.
|
|
31
30
|
# We may need to change it once we start to depend on secryst maps.
|
|
32
|
-
-
|
|
31
|
+
- name: Install bundle
|
|
32
|
+
working-directory: ./ruby
|
|
33
|
+
run: bundle install --jobs 4 --retry 3 --with jsexec --without secryst
|
|
33
34
|
|
|
34
|
-
- name: Test
|
|
35
|
-
|
|
35
|
+
- name: Test Ruby package
|
|
36
|
+
working-directory: ./ruby
|
|
37
|
+
run: bundle exec rake
|
|
36
38
|
|
|
37
|
-
- name: Test
|
|
38
|
-
|
|
39
|
+
- name: Test JS package
|
|
40
|
+
working-directory: ./js
|
|
41
|
+
run: npm install && npm run prepareMaps && npm test
|
|
39
42
|
|
|
40
43
|
- name: Publish to rubygems.org
|
|
41
44
|
env:
|
data/.github/workflows/test.yml
CHANGED
|
@@ -2,7 +2,7 @@ name: test
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [ main, v* ]
|
|
6
6
|
pull_request:
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
@@ -15,15 +15,15 @@ jobs:
|
|
|
15
15
|
with:
|
|
16
16
|
repository: interscript/interscript
|
|
17
17
|
|
|
18
|
-
- name: Run
|
|
18
|
+
- name: Run bootstrap script
|
|
19
19
|
run: ruby bootstrap.rb
|
|
20
20
|
|
|
21
21
|
- name: Set up Ruby
|
|
22
22
|
uses: ruby/setup-ruby@v1
|
|
23
23
|
with:
|
|
24
24
|
ruby-version: 2.7
|
|
25
|
-
|
|
26
|
-
- name:
|
|
25
|
+
|
|
26
|
+
- name: Cache Ruby gems
|
|
27
27
|
uses: actions/cache@v2
|
|
28
28
|
env:
|
|
29
29
|
cache-name: cache-ruby-modules
|
|
@@ -32,9 +32,17 @@ jobs:
|
|
|
32
32
|
key: ${{ runner.os }}-ruby-2.7-gems-${{ hashFiles('**/interscript.gemspec') }}
|
|
33
33
|
restore-keys: |
|
|
34
34
|
${{ runner.os }}-ruby-2.7-gems-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
|
|
36
|
+
- name: Configure bundle to use vendor mode
|
|
37
|
+
run: bundle config path vendor/bundle
|
|
38
|
+
|
|
39
|
+
- name: Install bundle
|
|
40
|
+
working-directory: ./ruby
|
|
41
|
+
run: |
|
|
42
|
+
bundle install --jobs 4 --retry 3 --with jsexec --without secryst
|
|
43
|
+
|
|
44
|
+
- name: Execute tests
|
|
45
|
+
working-directory: ./ruby
|
|
46
|
+
run: |
|
|
47
|
+
bundle exec rspec spec/interscript_spec.rb spec/map_name_and_metadata_spec.rb
|
|
48
|
+
|
data/interscript-maps.gemspec
CHANGED
data/interscript-maps.yaml
CHANGED
|
@@ -19,14 +19,14 @@ secryst-models:
|
|
|
19
19
|
# Here we describe Rababa configs for the maps that are required
|
|
20
20
|
rababa-configs:
|
|
21
21
|
"200":
|
|
22
|
-
model: https://github.com/secryst/rababa-models/releases/download/0.1/
|
|
22
|
+
model: https://github.com/secryst/rababa-models/releases/download/0.1/diacritization_model_arabic.onnx
|
|
23
23
|
config:
|
|
24
24
|
session_name: base
|
|
25
25
|
text_encoder: ArabicEncoderWithStartSymbol
|
|
26
26
|
text_cleaner: valid_arabic_cleaners
|
|
27
27
|
max_len: 200
|
|
28
28
|
batch_size: 32
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
# This instruction denotes that the following maps are incompatible with certain
|
|
31
31
|
# compilers and platforms and shouldn't be tested or compiled in.
|
|
32
32
|
skip:
|
|
@@ -167,6 +167,7 @@ aliases:
|
|
|
167
167
|
alias_to: bgnpcgn-fao-Latn-Latn-1968
|
|
168
168
|
fas_Arab2Latn_ALA_1997:
|
|
169
169
|
description: Persian 1997 ALA-Library of Congress System
|
|
170
|
+
alias_to: alalc-fas-Arab-Latn-1997
|
|
170
171
|
fas_Arab2Latn_AMMI_1959:
|
|
171
172
|
description: Afghanistan Ministry of Mines and Industries Transliteration System
|
|
172
173
|
for Geographic Names in Afghanistan (Yaghubi)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: interscript-maps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -48,6 +48,7 @@ files:
|
|
|
48
48
|
- maps/alalc-div-Thaa-Latn-2012.imp
|
|
49
49
|
- maps/alalc-ell-Grek-Latn-1997.imp
|
|
50
50
|
- maps/alalc-ell-Grek-Latn-2010.imp
|
|
51
|
+
- maps/alalc-fas-Arab-Latn-1997.imp
|
|
51
52
|
- maps/alalc-guj-Gujr-Latn-1997.imp
|
|
52
53
|
- maps/alalc-guj-Gujr-Latn-2011.imp
|
|
53
54
|
- maps/alalc-hin-Deva-Latn-1997.imp
|
|
@@ -70,7 +71,6 @@ files:
|
|
|
70
71
|
- maps/alalc-ori-Orya-Latn-2011.imp
|
|
71
72
|
- maps/alalc-pan-Guru-Latn-1997.imp
|
|
72
73
|
- maps/alalc-pan-Guru-Latn-2011.imp
|
|
73
|
-
- maps/alalc-per-Arab-Latn-1997.imp
|
|
74
74
|
- maps/alalc-pli-Deva-Latn-2012.imp
|
|
75
75
|
- maps/alalc-pra-Deva-Latn-2012.imp
|
|
76
76
|
- maps/alalc-rus-Cyrl-Latn-1997.imp
|