plurimath 0.11.11 → 0.11.12
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/lib/plurimath/math/symbols/symbol.rb +10 -5
- data/lib/plurimath/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4113e509a9cfc9298026571f3c9231f5ffba3ddf9f7307a66fd6335383c4a940
|
|
4
|
+
data.tar.gz: a51115633f6392f2940cb266823a77d660d701867f4c507f6a9e787b84da82b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0450ed469724fc5117b04f24ee0fba4ba91810978943c3c3d08fe6db0ae98bcaa4e5a874a3c41ce05e9671f489941529c34ae6c35f1f5575dd033ddd99987ea2
|
|
7
|
+
data.tar.gz: 9f9a4dc4287cfda6c8f4128ab0e795c6772b1d12bfb3fa9ec56a0a88c4e9c45a7a8fd1941305fdf2cbf7b2a46cbcda879bf500196caa71bddae4ea837d668942
|
|
@@ -46,11 +46,16 @@ module Plurimath
|
|
|
46
46
|
if value&.include?("ⅇ")
|
|
47
47
|
attributes[:intent] = Utility.html_entity_to_unicode(value)
|
|
48
48
|
end
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
# `rspace` is an operator attribute: MathML 4 allows it on `mo` (and
|
|
50
|
+
# `mpadded`), never on `mi`. A generic token that carries one must
|
|
51
|
+
# therefore serialize as `mo`, whatever produced it.
|
|
52
|
+
rspace = @options&.[](:rspace)
|
|
53
|
+
attributes[:rspace] = rspace unless rspace.nil?
|
|
54
|
+
tag_name = rspace.nil? ? "mi" : "mo"
|
|
55
|
+
token_tag = ox_element(tag_name, attributes: attributes)
|
|
56
|
+
return token_tag if ["{:", ":}"].include?(value)
|
|
57
|
+
|
|
58
|
+
value ? token_tag << value : token_tag
|
|
54
59
|
end
|
|
55
60
|
|
|
56
61
|
def to_latex(**)
|
data/lib/plurimath/version.rb
CHANGED