plurimath 0.11.18 → 0.11.19
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/Gemfile +2 -6
- data/lib/plurimath/asciimath/parser.rb +0 -51
- data/lib/plurimath/math/function/uncertainty.rb +5 -2
- data/lib/plurimath/version.rb +1 -1
- data/scripts/replay_asciimath_corpus.rb +2 -2
- data/scripts/replay_stage_roundtrips.rb +7 -1
- data/scripts/roundtrip_cases.rb +52 -51
- 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: '038e5d829d6925d7a510cd1d086222667316c31fea155ae0d073c3bdd8f2c206'
|
|
4
|
+
data.tar.gz: 40ddb7889316f102cc0c95f52cb135af2670d3bfb66530832b9cee1abd909948
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7b6b28282a878c0d4101fae6ca24b5b0ef8d344405a3840e519866926cb01af5cc6803058377b6a4c9089e6094ca736224bc5d1e72a418db3eb7cf0129aed7d
|
|
7
|
+
data.tar.gz: bdb74cb6adb73ab34912fbdb432c53c775dde1c00e3e4842813eb4a173423e3090b5a1fa0e1ced3119ee470d1c702f8448dfc69d662c33c4103d6767cee40501
|
data/Gemfile
CHANGED
|
@@ -3,12 +3,8 @@ source "https://rubygems.org"
|
|
|
3
3
|
# Specify your gem's dependencies in plurimath.gemspec
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
# amath 0.2.0,
|
|
8
|
-
# commit of plurimath/amath PR #34 (version 0.2.0). Drop this line once 0.2.0
|
|
9
|
-
# is published, and do not release plurimath before then.
|
|
10
|
-
gem "amath", git: "https://github.com/plurimath/amath",
|
|
11
|
-
ref: "667b517bb81276bf920f6f9fea940ae342d8c9e3"
|
|
6
|
+
# The quoted uncertainty channel (amath#17) ships in amath 0.2.1, resolved
|
|
7
|
+
# from RubyGems; the gemspec floor (amath >= 0.2.0, < 0.3) admits it.
|
|
12
8
|
gem "canon"
|
|
13
9
|
gem "fiddle", "~> 1.1"
|
|
14
10
|
# Candidate includes typed symbol portability; retain its exact pin until published.
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
module Plurimath
|
|
4
4
|
class Asciimath
|
|
5
5
|
class Parser
|
|
6
|
-
# An uncertainty call. amath splits letters, so xustd(1,5) is x
|
|
7
|
-
# followed by ustd(1,5): a preceding letter does not exempt it.
|
|
8
|
-
UNCERTAINTY_CALL = /u(?:std|exp|cov)\(/
|
|
9
|
-
|
|
10
6
|
attr_accessor :text, :dialect
|
|
11
7
|
|
|
12
8
|
# pma text goes to amath unchanged; the substitutions below are
|
|
@@ -30,7 +26,6 @@ module Plurimath
|
|
|
30
26
|
# typed model, which Mapper turns into a Formula. A grammar refusal
|
|
31
27
|
# raises Parslet::ParseFailed at the position amath reports in #text.
|
|
32
28
|
def parse
|
|
33
|
-
ambiguous_uncertainty_comma! unless dialect == :pma
|
|
34
29
|
Parse.new.load_amath
|
|
35
30
|
parse_with_amath
|
|
36
31
|
end
|
|
@@ -46,52 +41,6 @@ module Plurimath
|
|
|
46
41
|
rescue ::Amath::ParseError => e
|
|
47
42
|
raise Parse.parse_failed(e, text)
|
|
48
43
|
end
|
|
49
|
-
|
|
50
|
-
# Uncertainty arguments use "." as the decimal mark and "," between
|
|
51
|
-
# arguments. Under a locale whose decimal mark is not ".", a separator
|
|
52
|
-
# comma directly followed by a digit (ustd(1,5), uexp(10,0, 0,3, 2))
|
|
53
|
-
# most likely is a decimal comma: amath would read it as a separator,
|
|
54
|
-
# or give up on the call and read letters (ustd(1,230, 0,004) under fr).
|
|
55
|
-
# Raise instead of guessing; other input is not checked.
|
|
56
|
-
def ambiguous_uncertainty_comma!
|
|
57
|
-
decimal = Plurimath.configuration.decimal
|
|
58
|
-
return if decimal == "." || text.nil?
|
|
59
|
-
|
|
60
|
-
text.to_enum(:scan, UNCERTAINTY_CALL).each do
|
|
61
|
-
start = Regexp.last_match.begin(0)
|
|
62
|
-
next if text[0...start].count('"').odd?
|
|
63
|
-
|
|
64
|
-
call = uncertainty_call(start, Regexp.last_match.end(0))
|
|
65
|
-
next unless call
|
|
66
|
-
|
|
67
|
-
raise Math::AmbiguousDecimalError.new(
|
|
68
|
-
"uncertainty forms use '.' as the decimal mark; the comma " \
|
|
69
|
-
"before a digit in #{call} is ambiguous with decimal " \
|
|
70
|
-
"'#{decimal}' (locale #{Plurimath.configuration.locale}), " \
|
|
71
|
-
"write the value with '.' and separate arguments with ', '",
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# The call text from start to its closing parenthesis if a top-level
|
|
77
|
-
# argument separator in it is directly followed by a digit, else nil.
|
|
78
|
-
def uncertainty_call(start, index)
|
|
79
|
-
depth = 1
|
|
80
|
-
quoted = false
|
|
81
|
-
ambiguous = false
|
|
82
|
-
while index < text.length && depth.positive?
|
|
83
|
-
char = text[index]
|
|
84
|
-
quoted = !quoted if char == '"'
|
|
85
|
-
unless quoted
|
|
86
|
-
depth += 1 if char == "("
|
|
87
|
-
depth -= 1 if char == ")"
|
|
88
|
-
ambiguous ||= depth == 1 && char == "," &&
|
|
89
|
-
text[index + 1].to_s.match?(/\A[0-9]\z/)
|
|
90
|
-
end
|
|
91
|
-
index += 1
|
|
92
|
-
end
|
|
93
|
-
text[start...index] if ambiguous
|
|
94
|
-
end
|
|
95
44
|
end
|
|
96
45
|
end
|
|
97
46
|
end
|
|
@@ -157,7 +157,10 @@ module Plurimath
|
|
|
157
157
|
end
|
|
158
158
|
unitsml = asciimath_unitsml if unit
|
|
159
159
|
args << "\"unitsml(#{unitsml})\"" if unitsml
|
|
160
|
-
|
|
160
|
+
# The quoted channel (amath#17): the call rides asciimath's own
|
|
161
|
+
# string literal, so the reader's comma and decimal rules inside
|
|
162
|
+
# it are the channel's, not the locale's.
|
|
163
|
+
call = "\"#{ASCIIMATH_NAMES[category]}(#{args.compact.join(', ')})\""
|
|
161
164
|
return call if unit.nil? || unitsml
|
|
162
165
|
|
|
163
166
|
# Not expressible in UnitsML: keep it visible after the call, the
|
|
@@ -276,7 +279,7 @@ module Plurimath
|
|
|
276
279
|
|
|
277
280
|
def to_asciimath_math_zone(spacing = "", _last = false, _indent = true,
|
|
278
281
|
options:)
|
|
279
|
-
"#{spacing}
|
|
282
|
+
"#{spacing}#{to_asciimath(options: options)} uncertainty\n"
|
|
280
283
|
end
|
|
281
284
|
|
|
282
285
|
def to_latex_math_zone(spacing = "", _last = false, _indent = true,
|
data/lib/plurimath/version.rb
CHANGED
|
@@ -50,8 +50,8 @@ require "plurimath"
|
|
|
50
50
|
module AsciimathCorpusReplay
|
|
51
51
|
class Error < StandardError; end
|
|
52
52
|
|
|
53
|
-
# plurimath-testsuite
|
|
54
|
-
TESTSUITE_COMMIT = "
|
|
53
|
+
# plurimath-testsuite 0acf8b1be7602595b97b7f18cf3357451f5a9601
|
|
54
|
+
TESTSUITE_COMMIT = "0acf8b1be7602595b97b7f18cf3357451f5a9601"
|
|
55
55
|
PROVENANCE_SHA256 =
|
|
56
56
|
"4f7f379f3994eba5c33c5117c0084b7e0cc9b51a860474813a87de68a5c67130"
|
|
57
57
|
PROVENANCE_SCHEMA = "plurimath-corpus/provenance/3"
|
|
@@ -118,12 +118,18 @@ module ReplayStageRoundtrips
|
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
def cases(dir)
|
|
121
|
-
Dir.glob(File.join(dir, "payloads", "*.yaml")).sort.flat_map do |path|
|
|
121
|
+
rows = Dir.glob(File.join(dir, "payloads", "*.yaml")).sort.flat_map do |path|
|
|
122
122
|
doc = YAML.safe_load_file(path, aliases: false)
|
|
123
123
|
check(doc["schema"] == CASE_SCHEMA,
|
|
124
124
|
"#{path}: schema is not #{CASE_SCHEMA}")
|
|
125
125
|
doc.fetch("cases")
|
|
126
126
|
end
|
|
127
|
+
# Append-only supersessions (the text-unitsml-valid-r2 pattern): a row
|
|
128
|
+
# whose id has an -r2 sibling is kept for history and superseded by that
|
|
129
|
+
# sibling; only the sibling replays.
|
|
130
|
+
superseded = rows.select { |r| r["id"].include?("-r2") }
|
|
131
|
+
.to_h { |r| [r["id"].sub("-r2", ""), true] }
|
|
132
|
+
rows.reject { |r| superseded.key?(r["id"]) }
|
|
127
133
|
end
|
|
128
134
|
|
|
129
135
|
def refusal?(kase)
|
data/scripts/roundtrip_cases.rb
CHANGED
|
@@ -65,133 +65,134 @@ module RoundtripCases
|
|
|
65
65
|
["asciimath-standard",
|
|
66
66
|
"Standard uncertainty calls (ustd), absolute and concise, read from " \
|
|
67
67
|
"AsciiMath.",
|
|
68
|
-
[["absolute",
|
|
69
|
-
["concise",
|
|
70
|
-
["concise-long",
|
|
71
|
-
["negative",
|
|
72
|
-
["negative-concise",
|
|
73
|
-
["zero-magnitude",
|
|
68
|
+
[["absolute-r2", "asciimath", "\"ustd(1.230, 0.004)\"", {}, [MATRIX]],
|
|
69
|
+
["concise-r2", "asciimath", "\"ustd(1.230(4))\"", {}, [MATRIX]],
|
|
70
|
+
["concise-long-r2", "asciimath", "\"ustd(100.02147(35))\"", {}, [MATRIX]],
|
|
71
|
+
["negative-r2", "asciimath", "\"ustd(-1.230, 0.004)\"", {}, [MATRIX]],
|
|
72
|
+
["negative-concise-r2", "asciimath", "\"ustd(-1.230(4))\"", {}, [MATRIX]],
|
|
73
|
+
["zero-magnitude-r2", "asciimath", "\"ustd(5, 0)\"", {}, [MATRIX]]]],
|
|
74
74
|
["asciimath-expanded",
|
|
75
75
|
"Expanded uncertainty calls (uexp) with and without a coverage " \
|
|
76
76
|
"probability, read from AsciiMath.",
|
|
77
|
-
[["k",
|
|
78
|
-
["k-p",
|
|
79
|
-
["negative",
|
|
77
|
+
[["k-r2", "asciimath", "\"uexp(10.0, 0.3, 2)\"", {}, [MATRIX]],
|
|
78
|
+
["k-p-r2", "asciimath", "\"uexp(10.0, 0.3, 2, 0.95)\"", {}, [MATRIX]],
|
|
79
|
+
["negative-r2", "asciimath", "\"uexp(-10.0, 0.3, 2)\"", {}, [MATRIX]]]],
|
|
80
80
|
["asciimath-coverage-interval",
|
|
81
81
|
"Coverage interval calls (ucov) with each interval choice, read from " \
|
|
82
82
|
"AsciiMath.",
|
|
83
|
-
[["unspecified",
|
|
83
|
+
[["unspecified-r2", "asciimath", "\"ucov(1.024, 0.983, 1.088, 0.95)\"", {},
|
|
84
84
|
[MATRIX]],
|
|
85
|
-
["shortest",
|
|
85
|
+
["shortest-r2", "asciimath", "\"ucov(1.024, 0.983, 1.088, 0.95, shortest)\"",
|
|
86
86
|
{}, [MATRIX]],
|
|
87
|
-
["symmetric",
|
|
88
|
-
"ucov(1.024, 0.983, 1.088, 0.95, symmetric)", {}, [MATRIX]],
|
|
89
|
-
["negative",
|
|
87
|
+
["symmetric-r2", "asciimath",
|
|
88
|
+
"\"ucov(1.024, 0.983, 1.088, 0.95, symmetric)\"", {}, [MATRIX]],
|
|
89
|
+
["negative-r2", "asciimath", "\"ucov(-1.024, 0.983, 1.088, 0.95)\"", {},
|
|
90
90
|
[MATRIX]]]],
|
|
91
91
|
["asciimath-shared-exponent",
|
|
92
92
|
"Calls with a shared decimal exponent. The exponent is applied to the " \
|
|
93
93
|
"decimal text on reading, so every writer emits the shifted numbers.",
|
|
94
|
-
[["standard",
|
|
94
|
+
[["standard-r2", "asciimath", "\"ustd((3.85, 0.23)e4)\"", {},
|
|
95
95
|
[ASCIIMATH_DOCUMENT, "Shared exponents"]],
|
|
96
|
-
["concise",
|
|
96
|
+
["concise-r2", "asciimath", "\"ustd(680(41)e-3)\"", {},
|
|
97
97
|
[ASCIIMATH_DOCUMENT, "Shared exponents"]],
|
|
98
|
-
["expanded",
|
|
98
|
+
["expanded-r2", "asciimath", "\"uexp((3.85, 0.23)e+4, 2, 0.95)\"", {},
|
|
99
99
|
[ASCIIMATH_DOCUMENT, "Shared exponents"]],
|
|
100
|
-
["interval",
|
|
101
|
-
"ucov((1.024, 0.983, 1.088)e-3, 0.95, shortest)", {},
|
|
100
|
+
["interval-r2", "asciimath",
|
|
101
|
+
"\"ucov((1.024, 0.983, 1.088)e-3, 0.95, shortest)\"", {},
|
|
102
102
|
[ASCIIMATH_DOCUMENT, "Shared exponents"]]]],
|
|
103
103
|
["asciimath-units",
|
|
104
104
|
"Calls with a UnitsML unit. MathML, OMML and UnicodeMath read the unit " \
|
|
105
105
|
"back as its rendered formula, not as a Unitsml node.",
|
|
106
|
-
[["expanded-g",
|
|
107
|
-
'uexp(100.02147, 0.00079, 2, "unitsml(g)")', {}, [UNITS]],
|
|
108
|
-
["standard-kg",
|
|
106
|
+
[["expanded-g-r2", "asciimath",
|
|
107
|
+
'"uexp(100.02147, 0.00079, 2, "unitsml(g)")"', {}, [UNITS]],
|
|
108
|
+
["standard-kg-r2", "asciimath", '"ustd(1.2, 0.1, "unitsml(kg)")"', {},
|
|
109
109
|
[UNITS]],
|
|
110
|
-
["standard-m-per-s",
|
|
110
|
+
["standard-m-per-s-r2", "asciimath", '"ustd(1.2, 0.1, "unitsml(m*s^-1)")"',
|
|
111
111
|
{}, [UNITS]],
|
|
112
|
-
["standard-kg-m2",
|
|
112
|
+
["standard-kg-m2-r2", "asciimath", '"ustd(1.2, 0.1, "unitsml(kg*m^2)")"',
|
|
113
113
|
{}, [UNITS]],
|
|
114
|
-
["standard-um",
|
|
114
|
+
["standard-um-r2", "asciimath", '"ustd(1.2, 0.1, "unitsml(um)")"', {},
|
|
115
115
|
[UNITS]],
|
|
116
|
-
["concise-g",
|
|
116
|
+
["concise-g-r2", "asciimath", '"ustd(1.230(4), "unitsml(g)")"', {},
|
|
117
117
|
[UNITS]],
|
|
118
|
-
["interval-m",
|
|
119
|
-
'ucov(1.024, 0.983, 1.088, 0.95, shortest, "unitsml(m)")', {},
|
|
118
|
+
["interval-m-r2", "asciimath",
|
|
119
|
+
'"ucov(1.024, 0.983, 1.088, 0.95, shortest, "unitsml(m)")"', {},
|
|
120
120
|
[UNITS]]]],
|
|
121
121
|
["asciimath-locale",
|
|
122
122
|
"AsciiMath calls read under a locale whose decimal mark is a comma. " \
|
|
123
|
-
"The
|
|
124
|
-
|
|
123
|
+
"The quoted channel is locale-independent: its '.' decimals and ',' " \
|
|
124
|
+
"separators are the string literal's, never the locale's.",
|
|
125
|
+
[["fr-dot-r2", "asciimath", "\"ustd(1.230, 0.004)\"", { "locale" => "fr" },
|
|
125
126
|
[ASCIIMATH_DOCUMENT, "Locale and decimal commas"]],
|
|
126
|
-
["fr-comma",
|
|
127
|
+
["fr-comma-r2", "asciimath", "\"ustd(1,5)\"", { "locale" => "fr" },
|
|
127
128
|
[ASCIIMATH_DOCUMENT, "Locale and decimal commas"]],
|
|
128
|
-
["fr-comma-pair",
|
|
129
|
+
["fr-comma-pair-r2", "asciimath", "\"ustd(1,230, 0,004)\"",
|
|
129
130
|
{ "locale" => "fr" },
|
|
130
131
|
[ASCIIMATH_DOCUMENT, "Locale and decimal commas"]]]],
|
|
131
132
|
["asciimath-invalid",
|
|
132
133
|
"Calls that match the call grammar but are not a valid result.",
|
|
133
|
-
[["zero-k",
|
|
134
|
-
["reversed-interval",
|
|
134
|
+
[["zero-k-r2", "asciimath", "\"uexp(1.0, 0.3, 0, 0.95)\"", {}, [ERRORS]],
|
|
135
|
+
["reversed-interval-r2", "asciimath", "\"ucov(1.0, 2.0, 1.5, 0.95)\"", {},
|
|
135
136
|
[ERRORS]]]],
|
|
136
137
|
["unicode-markers",
|
|
137
138
|
"UnicodeMath intent forms, read from UnicodeMath, including units " \
|
|
138
139
|
"written as \\mup and \\mup\"...\".",
|
|
139
|
-
[["standard",
|
|
140
|
+
[["standard-r2", "unicode",
|
|
140
141
|
'ⓘ("standard-uncertainty(1.230,0.004)"1.230(0.004))', {}, [UNICODE]],
|
|
141
|
-
["concise",
|
|
142
|
+
["concise-r2", "unicode",
|
|
142
143
|
'ⓘ("standard-uncertainty:concise(1.230,0.004)"1.230(4))', {},
|
|
143
144
|
[UNICODE]],
|
|
144
|
-
["expanded-p",
|
|
145
|
+
["expanded-p-r2", "unicode",
|
|
145
146
|
'ⓘ("expanded-uncertainty(10.0,0.3,2,0.95)"(10.0±0.3), k=2, p=0.95)',
|
|
146
147
|
{}, [UNICODE]],
|
|
147
|
-
["expanded-spaced",
|
|
148
|
+
["expanded-spaced-r2", "unicode",
|
|
148
149
|
'ⓘ("expanded-uncertainty(10.0,0.3,2)"(10.0 ± 0.3), k=2)', {},
|
|
149
150
|
[UNICODE]],
|
|
150
|
-
["interval-shortest",
|
|
151
|
+
["interval-shortest-r2", "unicode",
|
|
151
152
|
'ⓘ("coverage-interval:shortest(1.024,0.983,1.088,0.95)"' \
|
|
152
153
|
"1.024, [0.983, 1.088], p=0.95)", {}, [UNICODE]],
|
|
153
|
-
["negative",
|
|
154
|
+
["negative-r2", "unicode",
|
|
154
155
|
'ⓘ("standard-uncertainty(-1.230,0.004)"〖-1.230〗(0.004))', {},
|
|
155
156
|
[UNICODE]],
|
|
156
|
-
["unit-g",
|
|
157
|
+
["unit-g-r2", "unicode",
|
|
157
158
|
'ⓘ("expanded-uncertainty(100.02147,0.00079,2,$unit)"' \
|
|
158
159
|
'(100.02147±0.00079)ⓐ(unit \mupg), k=2)', {}, [MATRIX]],
|
|
159
|
-
["unit-kg",
|
|
160
|
+
["unit-kg-r2", "unicode",
|
|
160
161
|
'ⓘ("standard-uncertainty(1.2,0.1,$unit)"1.2(0.1)ⓐ(unit \mupkg))',
|
|
161
162
|
{}, [MATRIX]],
|
|
162
|
-
["unit-kg-quoted",
|
|
163
|
+
["unit-kg-quoted-r2", "unicode",
|
|
163
164
|
'ⓘ("standard-uncertainty(1.2,0.1,$unit)"1.2(0.1)ⓐ(unit \mup"kg"))',
|
|
164
165
|
{}, [MATRIX]],
|
|
165
|
-
["unit-m-per-s",
|
|
166
|
+
["unit-m-per-s-r2", "unicode",
|
|
166
167
|
'ⓘ("standard-uncertainty(1.2,0.1,$unit)"' \
|
|
167
168
|
'1.2(0.1)ⓐ(unit \mupm⋅\mups^(-1)))', {}, [MATRIX]],
|
|
168
|
-
["unit-um",
|
|
169
|
+
["unit-um-r2", "unicode",
|
|
169
170
|
'ⓘ("standard-uncertainty(1.2,0.1,$unit)"1.2(0.1)ⓐ(unit \mupµm))',
|
|
170
171
|
{}, [MATRIX]],
|
|
171
|
-
["unit-kg-m2",
|
|
172
|
+
["unit-kg-m2-r2", "unicode",
|
|
172
173
|
'ⓘ("standard-uncertainty(1.2,0.1,$unit)"' \
|
|
173
174
|
'1.2(0.1)ⓐ(unit \mupkg ⋅ \mupm^(2)))', {}, [MATRIX]]]],
|
|
174
175
|
["mathml-markers",
|
|
175
176
|
"MathML mrow intent forms, read from MathML.",
|
|
176
|
-
[["standard",
|
|
177
|
+
[["standard-r2", "mathml",
|
|
177
178
|
"#{MATHML_OPEN}<mrow intent=\"standard-uncertainty(1.230,0.004)\">" \
|
|
178
179
|
"<mn>1.230</mn><mrow><mo>(</mo><mn>0.004</mn><mo>)</mo></mrow>" \
|
|
179
180
|
"</mrow>#{MATHML_CLOSE}", {}, [MATHML]],
|
|
180
|
-
["concise",
|
|
181
|
+
["concise-r2", "mathml",
|
|
181
182
|
"#{MATHML_OPEN}<mrow intent=\"standard-uncertainty:concise" \
|
|
182
183
|
"(1.230,0.004)\"><mn>1.230</mn><mrow><mo>(</mo><mn>4</mn><mo>)</mo>" \
|
|
183
184
|
"</mrow></mrow>#{MATHML_CLOSE}", {}, [MATHML]],
|
|
184
|
-
["expanded",
|
|
185
|
+
["expanded-r2", "mathml",
|
|
185
186
|
"#{MATHML_OPEN}<mrow intent=\"expanded-uncertainty(10.0,0.3,2)\">" \
|
|
186
187
|
"<mrow><mo>(</mo><mn>10.0</mn><mo>±</mo><mn>0.3</mn><mo>)</mo>" \
|
|
187
188
|
"</mrow><mo>,</mo><mi>k</mi><mo>=</mo><mn>2</mn></mrow>" \
|
|
188
189
|
"#{MATHML_CLOSE}", {}, [MATHML]],
|
|
189
|
-
["unit-kg",
|
|
190
|
+
["unit-kg-r2", "mathml",
|
|
190
191
|
"#{MATHML_OPEN}<mrow intent=\"standard-uncertainty(1.2,0.1,$unit)\">" \
|
|
191
192
|
"<mn>1.2</mn><mrow><mo>(</mo><mn>0.1</mn><mo>)</mo></mrow>" \
|
|
192
193
|
"<mrow arg=\"unit\"><mi mathvariant=\"normal\">kg</mi></mrow></mrow>" \
|
|
193
194
|
"#{MATHML_CLOSE}", {}, [MATRIX]],
|
|
194
|
-
["unit-kg-m2",
|
|
195
|
+
["unit-kg-m2-r2", "mathml",
|
|
195
196
|
"#{MATHML_OPEN}<mrow intent=\"standard-uncertainty(1.2,0.1,$unit)\">" \
|
|
196
197
|
"<mn>1.2</mn><mrow><mo>(</mo><mn>0.1</mn><mo>)</mo></mrow>" \
|
|
197
198
|
"<mo rspace=\"thickmathspace\">⁢</mo><mrow arg=\"unit\">" \
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plurimath
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.19
|
|
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-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: amath
|