plurimath 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plurimath/asciimath/constants.rb +4 -0
- data/lib/plurimath/asciimath/parse.rb +1 -1
- data/lib/plurimath/math/symbols/paren/lfloor.rb +1 -1
- data/lib/plurimath/math/symbols/paren/rceil.rb +1 -1
- data/lib/plurimath/math/symbols/paren/rfloor.rb +1 -1
- data/lib/plurimath/math/symbols/prime.rb +3 -3
- data/lib/plurimath/math/symbols/sprime.rb +3 -3
- data/lib/plurimath/version.rb +1 -1
- 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: 4c7657d4a324bfa99582fef0116854399b6edca5fcc2e2a9d9e2ed800555e37b
|
4
|
+
data.tar.gz: 8fd6706893097300bd4dc924407d8ab34391a58651722b49103375d1e812b7b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31eaaade52e25f28e1be17f718a07433ff5b890bbb5cf7ebc4f10f669ea2d14ab054518d0fc8867274247f8b7d1cc546f47fa23f4daa98b6e28ccd5b2b81ffd1
|
7
|
+
data.tar.gz: a63d0eff7b2a95149edec5b4e2b0e9c4c6301ddeec08e068efdbc660f85ba08fac81f7c20cf29f6bcb5769ab97340f6f29bf0696449d3aae3361c143c803beab
|
@@ -5,7 +5,7 @@ module Plurimath
|
|
5
5
|
class Asciimath
|
6
6
|
class Parse < Parslet::Parser
|
7
7
|
rule(:td) { expression.as(:td) }
|
8
|
-
rule(:base) { arr_to_expression(Constants.
|
8
|
+
rule(:base) { arr_to_expression(Constants.absent_symbols, :symbol).absent? >> str("_") }
|
9
9
|
rule(:power) { str("^") }
|
10
10
|
rule(:space) { match(/\s+/) }
|
11
11
|
rule(:comma) { (str(",") >> space?) }
|
@@ -3,10 +3,10 @@ module Plurimath
|
|
3
3
|
module Symbols
|
4
4
|
class Prime < Symbol
|
5
5
|
INPUT = {
|
6
|
-
unicodemath: ["′", "prime"],
|
7
|
-
asciimath: ["′", "prime"],
|
6
|
+
unicodemath: ["′", "prime", "'"],
|
7
|
+
asciimath: ["′", "prime", "'"],
|
8
8
|
mathml: ["′"],
|
9
|
-
latex: ["′", "prime"],
|
9
|
+
latex: ["′", "prime", "'"],
|
10
10
|
omml: ["′"],
|
11
11
|
html: ["′"],
|
12
12
|
}.freeze
|
@@ -3,10 +3,10 @@ module Plurimath
|
|
3
3
|
module Symbols
|
4
4
|
class Sprime < Symbol
|
5
5
|
INPUT = {
|
6
|
-
unicodemath: ["'"
|
7
|
-
asciimath: ["'"
|
6
|
+
unicodemath: ["'"],
|
7
|
+
asciimath: ["'"],
|
8
8
|
mathml: ["'"],
|
9
|
-
latex: ["'"
|
9
|
+
latex: ["'"],
|
10
10
|
omml: ["'"],
|
11
11
|
html: ["'"],
|
12
12
|
}.freeze
|
data/lib/plurimath/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.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: 2024-06-
|
11
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter_cldr
|