plurimath 0.2.3 → 0.2.5

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: 944558a33a10197af09d6f879e505fcb58aa9f5aa60827c0e8a9943cfdd11c5b
4
- data.tar.gz: ff7798321515a67a926b11227ae5f7de17abf6a43cfc6dcff86c02d74a4d78ce
3
+ metadata.gz: 8815a416877ce1bf419cb3ef8a53c33d632301bab0f44c207d0a749ab9520d41
4
+ data.tar.gz: cd5791b5628324b4ba4a3fd7e7bd2e11f472395ae322923ede64a724177010cc
5
5
  SHA512:
6
- metadata.gz: a1b099faaa7af87d92ebc809d80f5ce73da92052d3328ae0de4fd4047cb1786c6a25658d9190e7e0b6288dfd214f3dc0a2dd87e5d383d6e034fd9296b2a25478
7
- data.tar.gz: d69ff8fd9b43ab5151433992c4f69434604fdf455ea980c31b879dd8ac522a493190bb89106944c34cc669aae196842bd5e651e4b2299b85aee38343bcbfed86
6
+ metadata.gz: 2098b3a7724f79b848a2252ca1337186f0845684b903cfbd4edbafeed3b04790082dedcfdd8054ab2106044067602fd12f5cbbe66a44d3cc90eac45bb2adc03f
7
+ data.tar.gz: cfd50426d4e71486d1434b684d517f3643c44a46b726427b6511e70fdb2408c46fff64e5b1a33dff139b9c4b0c292b0f8b762ff802a693ca06d93e3a9c004fc6
@@ -58,7 +58,8 @@ module Plurimath
58
58
  end
59
59
 
60
60
  rule(:quoted_text) do
61
- str('"') >> match("[^\"]").repeat.as(:text) >> str('"')
61
+ str('"') >> match("[^\"]").repeat.as(:text) >> str('"') |
62
+ str('"') >> str("").as(:text)
62
63
  end
63
64
 
64
65
  rule(:symbol_text_or_integer) do
@@ -3561,6 +3561,7 @@ module Plurimath
3561
3561
  cosh: :unary,
3562
3562
  ddot: :unary,
3563
3563
  mbox: :unary,
3564
+ text: :unary,
3564
3565
  '"': :symbols,
3565
3566
  sum: :power_base,
3566
3567
  inf: :power_base,
@@ -82,7 +82,7 @@ module Plurimath
82
82
  (slash >> math_operators_classes) |
83
83
  match["a-zA-Z"].as(:symbols) |
84
84
  match(/\d+(\.[0-9]+)|\d/).repeat(1).as(:number) |
85
- str("\\\\").as("\\\\") |
85
+ str("\\\\").as("\\\\") >> match(/\s/).repeat |
86
86
  (slash >> (lparen | rparen).as(:symbols)) |
87
87
  lparen |
88
88
  str("\\ ").as(:space)
@@ -16,6 +16,7 @@ module Plurimath
16
16
  .gsub(/\\\\ /, "\\\\\\\\")
17
17
  .gsub(/&/, "&")
18
18
  .gsub(/"/, "\"")
19
+ .gsub(/(?<!\\\\)\\&#xa;/, "\\ ")
19
20
  .gsub(/&#xa;/, "")
20
21
  @text = text
21
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.5"
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.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet