plurimath 0.9.7 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 736798b3d03c6e5ce4878bcc3527e29db00d93774be03d158dd5c0017d88dd4d
4
- data.tar.gz: f96fe58a6b9016c2528bdcaec9c3d0fb7e618d245c06975429c6c6ac5b5de609
3
+ metadata.gz: a2daf0b544efc26b15bd562db6b9ccea9fea08b6ad7b085d9315288b84deebc7
4
+ data.tar.gz: 68f7fd796097cc9ad6163342c91ec9db4214edacfa2c0c27c06840e37c80523c
5
5
  SHA512:
6
- metadata.gz: 1ace4140d658078575d1e9248bf6b43a668066ba461a02c93d165ef61a7353fea8b1abb0ce7cd342f5741918b0244a6027d81afb1df8816f3830dfd8e6e5188a
7
- data.tar.gz: fb5458559b3d9624a21c3359370534cc0a877b23aba739e081025cdcd38e5509bafd001a894e7f2a3b54283c918641ee2aa6c2c543484c5bdfad8e7794d62e74
6
+ metadata.gz: d1b5453cf0d8adbecd52d44c10fb98a509e0be7c70e89799e2a34c6a8418271f617143293b0424d9d1e14ca70be5ee8a821d2dfcdd68578be0b38e51b0b53d0f
7
+ data.tar.gz: 106b39d4b3a77e4a4fbc3324c2418060696f731e7adf87fb3c2b4eeb5230e9914af1fb633e0125843472c7cc2cbeafcb7f6e63017dc632ab9a5288ec0c939a04
@@ -110,7 +110,7 @@ module Plurimath
110
110
  end
111
111
 
112
112
  rule(:tr) do
113
- ((left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row) >> comma >> space? >> tr.as(:expr)) |
113
+ ((left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row) >> space? >> comma >> space? >> tr.as(:expr)) |
114
114
  (left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row)
115
115
  end
116
116
 
@@ -842,7 +842,7 @@ module Plurimath
842
842
 
843
843
  while iteration < nodes.length do
844
844
  node = nodes[iteration]
845
- next iteration += 1 unless node.nodes[0].is_a?(Plurimath::XmlEngine::Ox::Element)
845
+ next iteration += 1 unless node.nodes[0].is_a?(Plurimath::XmlEngine::OxEngine::Element)
846
846
 
847
847
  if DERIVATIVE_CONSTS.include?(node.nodes[0]&.nodes&.first)
848
848
  iteration += 1
@@ -66,7 +66,7 @@ module Plurimath
66
66
  separator = "{#{table_attribute(:latex)}}" if environment&.include?("array")
67
67
  left_paren = open_paren&.to_latex(options: options) || "."
68
68
  right_paren = close_paren&.to_latex(options: options) || "."
69
- left = "\\left #{left_paren}\\begin{matrix}"
69
+ left = "\\left #{left_paren.delete_prefix("\\left")}\\begin{matrix}"
70
70
  right = "\\end{matrix}\\right #{right_paren.delete_prefix("\\right")}"
71
71
  "#{left}#{separator}#{latex_content(options: options)}#{right}"
72
72
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "plurimath/xml_engine/ox_engine"
4
+
5
+ Plurimath.xml_engine = Plurimath::XmlEngine::OxEngine
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.9.7"
4
+ VERSION = "0.9.9"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  module Plurimath
2
2
  module XmlEngine
3
- class Ox
3
+ class OxEngine
4
4
  class Element
5
5
  attr_accessor :attributes
6
6
 
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "plurimath/xml_engine"
4
+ require "plurimath/xml_engine/ox_engine/element"
4
5
  require "ox"
5
6
  Ox.default_options = { encoding: "UTF-8" }
6
7
 
7
8
  module Plurimath
8
9
  module XmlEngine
9
- class Ox
10
+ class OxEngine
10
11
  class << self
11
12
  def new_element(name)
12
13
  Element.new(name)
@@ -36,5 +37,3 @@ module Plurimath
36
37
  end
37
38
  end
38
39
  end
39
-
40
- require "plurimath/xml_engine/ox/element"
data/lib/plurimath.rb CHANGED
@@ -15,7 +15,7 @@ elsif ENV['PLURIMATH_OGA']
15
15
  require "plurimath/setup/oga"
16
16
  mml_adapter(:oga)
17
17
  else
18
- require "plurimath/setup/ox"
18
+ require "plurimath/setup/ox_engine"
19
19
  mml_adapter(:ox)
20
20
  end
21
21
 
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.9.7
4
+ version: 0.9.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: 2025-08-06 00:00:00.000000000 Z
11
+ date: 2025-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
@@ -1771,7 +1771,7 @@ files:
1771
1771
  - lib/plurimath/omml/transform.rb
1772
1772
  - lib/plurimath/setup/oga.rb
1773
1773
  - lib/plurimath/setup/opal.rb.erb
1774
- - lib/plurimath/setup/ox.rb
1774
+ - lib/plurimath/setup/ox_engine.rb
1775
1775
  - lib/plurimath/unicode_math.rb
1776
1776
  - lib/plurimath/unicode_math/constants.rb
1777
1777
  - lib/plurimath/unicode_math/parse.rb
@@ -1794,8 +1794,8 @@ files:
1794
1794
  - lib/plurimath/xml_engine/oga/element.rb
1795
1795
  - lib/plurimath/xml_engine/oga/node.rb
1796
1796
  - lib/plurimath/xml_engine/oga/wrapper.rb
1797
- - lib/plurimath/xml_engine/ox.rb
1798
- - lib/plurimath/xml_engine/ox/element.rb
1797
+ - lib/plurimath/xml_engine/ox_engine.rb
1798
+ - lib/plurimath/xml_engine/ox_engine/element.rb
1799
1799
  - plurimath.gemspec
1800
1800
  - supported_parens_list.adoc
1801
1801
  - supported_symbols_list.adoc
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "plurimath/xml_engine/ox"
4
-
5
- Plurimath.xml_engine = Plurimath::XmlEngine::Ox