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: c2ca94b73ea25fcae4ea101ebeb42ac20783ba629fe7990ddc19ec78b0b43f1e
4
- data.tar.gz: ae5e4cb1bb63298a33585c298272883dff6e710a5848e51bf8ab2e570a106db6
3
+ metadata.gz: 3ff5b0b953fb4a12804731b334fda2eaabe5f6b59ef9efd4260708a179f7ce50
4
+ data.tar.gz: 677c01b88897fb641ed3460507efea39856bf39e8165e7d48c6be9bf7855a8ae
5
5
  SHA512:
6
- metadata.gz: 341faa8f0b8d0f4b65b46aa9f1750e1a3c2777bbb4db6997a8f01e6f613aeb2218e7b3925313c73fe7220102a26dc3d22f69e7b23b49f3e17793603e5d93624d
7
- data.tar.gz: 7a39f13ad166287c3a6db9a9ef5e055d92f732c478c434aa1a07814254074ef6654b462bfd960a4abc9d21991b1bbdfcb80cbcbe5cb74ed45571604ed46a7777
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 a bootstrap script
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
- architecture: 'x64'
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
- - run: pushd ruby && bundle install --jobs 4 --retry 3 --with jsexec --without secryst && popd
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 the Ruby package
35
- run: pushd ruby && bundle exec rake && popd
35
+ - name: Test Ruby package
36
+ working-directory: ./ruby
37
+ run: bundle exec rake
36
38
 
37
- - name: Test the JS package
38
- run: pushd js && npm install && npm run prepareMaps && npm test && popd
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:
@@ -2,7 +2,7 @@ name: test
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master, v* ]
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 a bootstrap script
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: cache ruby gems
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
- - run: |
37
- bundle config path vendor/bundle
38
- pushd ruby && bundle install --jobs 4 --retry 3 --with jsexec --without secryst && popd
39
-
40
- - run: pushd ruby && bundle exec rspec spec/interscript_spec.rb spec/map_name_and_metadata_spec.rb && popd
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
+
@@ -1,4 +1,4 @@
1
- INTERSCRIPT_MAPS_VERSION="2.4.0"
1
+ INTERSCRIPT_MAPS_VERSION="2.4.2"
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "interscript-maps"
@@ -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/diacritization_model_max_len_200.onnx
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)
@@ -1,7 +1,7 @@
1
1
  metadata {
2
2
  authority_id: alalc
3
3
  id: 1997
4
- language: iso-639-2:per
4
+ language: iso-639-2:fas
5
5
  source_script: Arab
6
6
  destination_script: Latn
7
7
  name: Romanization Table -- Persian (1997)
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.0
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