plurimath 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49c6f8268d1cc7dbaa215281ef92e0ce3e7884635976510d02058d6b95632ba2
4
- data.tar.gz: 72830804f1dab626d5ec7da7c02071d8423965bf0381f2089708d8e94f126341
3
+ metadata.gz: 896215930a897878dac674f1be1092b3c6e8f330e20ffe218421b01e0aa98cbc
4
+ data.tar.gz: ad8d176647c84540c11f8ed736e5e816ec88cf65d029b605cf280e326ea7c91a
5
5
  SHA512:
6
- metadata.gz: 7bc88e28991910932794cee1d883d15971fcf8bddf381bdf097eee7bed7263a13fb2431ca12fadb6b1dcc1e35634d5383fcb00f05a2a7b631979727b08009847
7
- data.tar.gz: c22ca2f15f8ab7c86bc6992f06b54007d57be6d6d3262f8a2987b4a2b91f8b2172d9328f5900ed1410ce0d7a3a490dda075cda424a3f2595ff9ae8ebba8a0b14
6
+ metadata.gz: 2414d5501af2bd824d56e0557132ec650eb3bddfa44180e6d2561ae11f976d2c0edffc90bc00d9d442e41b31d5c2c900c9f5e16fad770b2717810ea79f2470aa
7
+ data.tar.gz: 124779151cac821ea29ed9d3cd12f61bd41efb1273e9912cb92377e7ee4d4854ca91906838c8cedd540f76fc8a5c9b17256651bd933bffe582ee026cc6609c8b
@@ -52,12 +52,17 @@ module Plurimath
52
52
  first_value = ox_element("mi")
53
53
  first_value << "log" unless hide_function_name
54
54
  if parameter_one || parameter_two
55
+ tag_name = if parameter_two && parameter_one
56
+ "subsup"
57
+ else
58
+ parameter_one ? "sub" : "sup"
59
+ end
55
60
  new_arr = [
56
61
  first_value,
57
62
  validate_mathml_fields(parameter_one),
58
63
  validate_mathml_fields(parameter_two),
59
64
  ]
60
- Utility.update_nodes(ox_element("msubsup"), new_arr)
65
+ Utility.update_nodes(ox_element("m#{tag_name}"), new_arr)
61
66
  else
62
67
  first_value
63
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.8.9"
4
+ VERSION = "0.8.10"
5
5
  end
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.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter_cldr