mml 2.4.8 → 2.4.9
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 +4 -4
- data/.github/workflows/corpus.yml +1 -1
- data/.github/workflows/release.yml +7 -0
- data/lib/mml/base/mi.rb +4 -0
- data/lib/mml/version.rb +1 -1
- data/model/portable/manifest.json +1 -1
- data/scripts/replay_corpus.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d353b5f88600f29f540a9ea8b03c72515268bfe628e452e8803acb525335a54
|
|
4
|
+
data.tar.gz: 13e6f1e91d5c0a0b8a2b2967a1a50751c82a774cdba04949ef336f3a5b6dfe46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9d3bb4a3b61411142f4794eac9d7ecedf4ec0578e1b8d523efd511c4200725d63c38c9b569e17b746642c2d7c6d5f3c70a3522e4d21e7a190254c1843abc5ea
|
|
7
|
+
data.tar.gz: f941116812cdc5be7c4d4d2f2de96e78dc30c5daefb4ad971ef621cf40e674a81af4b5f79035d569b67b2ef6fd382dbc07fbfbb628203be238961cff2f76ca30
|
|
@@ -24,7 +24,7 @@ defaults:
|
|
|
24
24
|
# The testsuite commit is a literal here (not read from a step output) so the
|
|
25
25
|
# checkout ref is fixed by this file; a step checks it against the pin.
|
|
26
26
|
env:
|
|
27
|
-
TESTSUITE_COMMIT:
|
|
27
|
+
TESTSUITE_COMMIT: 674126a07fa1cf89c24bc50fadb305299e1d1b18
|
|
28
28
|
PIN: spec/fixtures/testsuite-pin.yml
|
|
29
29
|
|
|
30
30
|
jobs:
|
|
@@ -14,12 +14,19 @@ on:
|
|
|
14
14
|
default: 'skip'
|
|
15
15
|
repository_dispatch:
|
|
16
16
|
types: [ do-release ]
|
|
17
|
+
# The publish leg: when the release PR (head branch release/v*) merges,
|
|
18
|
+
# metanorma/ci tags the merge commit and publishes (metanorma/ci#515).
|
|
19
|
+
# Ordinary PR closes are skipped inside the reusable workflow.
|
|
20
|
+
pull_request:
|
|
21
|
+
types:
|
|
22
|
+
- closed
|
|
17
23
|
|
|
18
24
|
jobs:
|
|
19
25
|
release:
|
|
20
26
|
permissions:
|
|
21
27
|
contents: write
|
|
22
28
|
id-token: write
|
|
29
|
+
pull-requests: write
|
|
23
30
|
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
|
24
31
|
with:
|
|
25
32
|
next_version: ${{ github.event.inputs.next_version }}
|
data/lib/mml/base/mi.rb
CHANGED
|
@@ -12,6 +12,8 @@ module Mml
|
|
|
12
12
|
attribute :mathbackground, :string
|
|
13
13
|
attribute :mathsize, :string
|
|
14
14
|
attribute :mathvariant, :string
|
|
15
|
+
attribute :lspace, :string
|
|
16
|
+
attribute :rspace, :string
|
|
15
17
|
attribute :mglyph_value, :mglyph, collection: true
|
|
16
18
|
attribute :malignmark_value, :malignmark, collection: true
|
|
17
19
|
attribute :lang, :string
|
|
@@ -26,6 +28,8 @@ module Mml
|
|
|
26
28
|
map_attribute "mathbackground", to: :mathbackground
|
|
27
29
|
map_attribute "mathsize", to: :mathsize
|
|
28
30
|
map_attribute "mathvariant", to: :mathvariant
|
|
31
|
+
map_attribute "lspace", to: :lspace
|
|
32
|
+
map_attribute "rspace", to: :rspace
|
|
29
33
|
map_attribute "xml:lang", to: :lang
|
|
30
34
|
map_element "mglyph", to: :mglyph_value
|
|
31
35
|
map_element "malignmark", to: :malignmark_value
|
data/lib/mml/version.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"format": "mml-portable-models/1",
|
|
3
3
|
"source_repository": "https://github.com/plurimath/mml",
|
|
4
4
|
"source_revision": "a88197810737e7eb809bbb5f887703a25beac3db",
|
|
5
|
-
"source_version": "2.4.
|
|
5
|
+
"source_version": "2.4.8",
|
|
6
6
|
"framework_repository": "https://github.com/lutaml/lutaml-model",
|
|
7
7
|
"framework_revision": "fd2989fd8478b1ecb2508d98fa2d66792c09c72b",
|
|
8
8
|
"framework_status": "open candidate; not a released dependency",
|
data/scripts/replay_corpus.rb
CHANGED
|
@@ -212,13 +212,23 @@ module MmlReplayCorpus
|
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# Every model-roundtrip row of the generation, with its payload path.
|
|
215
|
+
# Append-only supersession: a row whose id has an -r2 sibling is kept
|
|
216
|
+
# for history and is superseded by that sibling; only the sibling runs.
|
|
215
217
|
def roundtrip_rows(payloads)
|
|
216
|
-
payloads.flat_map do |rel, bytes|
|
|
218
|
+
rows = payloads.flat_map do |rel, bytes|
|
|
217
219
|
doc = YAML.safe_load(bytes, aliases: false)
|
|
218
220
|
next [] unless doc["boundary"] == BOUNDARY
|
|
219
221
|
|
|
220
222
|
doc.fetch("cases").map { |row| [rel, row] }
|
|
221
223
|
end
|
|
224
|
+
superseded = superseding_ids(rows)
|
|
225
|
+
rows.reject { |_, row| superseded.key?(row["id"]) }
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# The ids superseded by their -r2 siblings, keyed by the original id.
|
|
229
|
+
def superseding_ids(rows)
|
|
230
|
+
ids = rows.map { |_, row| row["id"] }.select { |id| id.include?("-r2") }
|
|
231
|
+
ids.to_h { |id| [id.sub("-r2", ""), id] }
|
|
222
232
|
end
|
|
223
233
|
|
|
224
234
|
def decode(row, where)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|