zotica 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/source/zotica.rb +1 -1
- data/source/zotica/builder.rb +8 -2
- data/source/zotica/parser.rb +3 -1
- data/source/zotica/resource/font.otf +0 -0
- data/source/zotica/resource/font/math.json +3 -3
- data/source/zotica/resource/font/math.ttf +0 -0
- data/source/zotica/resource/math.json +5 -0
- data/source/zotica/resource/style/math.scss +4 -0
- 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: 3495563850307ddfd71f84190b03db6fdbb08c5a84bafe44394e77b02a8ddfea
|
4
|
+
data.tar.gz: 6085901c9187f2967eadccdfc5c5b193687024e75be0169ce1440632d42a1ec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c05a857ec98869264095212635801ee8150e0e229d8dc9367ccd759bed38403991e4ed9ae3fb2fbcd042da793527c9997fa7475f7e93aa090297d7779e116f9
|
7
|
+
data.tar.gz: ce2d1f5d40eb325ee603a7ed4d612f626fe8a8221b33b286c210a3f4cdc0eca3705fe7acbca4d51086cc73c86c040188e5623e3742fd381c697d3558cc7f622b
|
data/source/zotica.rb
CHANGED
data/source/zotica/builder.rb
CHANGED
@@ -34,7 +34,10 @@ module Zenithal::ZoticaBuilder
|
|
34
34
|
node["class"] = classes.join(" ")
|
35
35
|
end
|
36
36
|
if options[:class]
|
37
|
-
node["class"]
|
37
|
+
node["class"] += " " + options[:class]
|
38
|
+
end
|
39
|
+
if options[:style]
|
40
|
+
node["style"] += options[:style]
|
38
41
|
end
|
39
42
|
end
|
40
43
|
end
|
@@ -587,7 +590,7 @@ module Zenithal::ZoticaBuilder
|
|
587
590
|
return this
|
588
591
|
end
|
589
592
|
|
590
|
-
def build_diagram(vertical_gaps_string, horizontal_gaps_string, options = {}, &block)
|
593
|
+
def build_diagram(vertical_gaps_string, horizontal_gaps_string, align_baseline, options = {}, &block)
|
591
594
|
this = REXML::Nodes[]
|
592
595
|
table_element = nil
|
593
596
|
this << REXML::Element.build("math-diagram") do |this|
|
@@ -597,6 +600,9 @@ module Zenithal::ZoticaBuilder
|
|
597
600
|
if horizontal_gaps_string
|
598
601
|
this["class"] = [*this["class"].split(" "), "hnon"].join(" ")
|
599
602
|
end
|
603
|
+
if align_baseline
|
604
|
+
this["class"] = [*this["class"].split(" "), "baseline"].join(" ")
|
605
|
+
end
|
600
606
|
table_element = this
|
601
607
|
end
|
602
608
|
apply_options(this, options)
|
data/source/zotica/parser.rb
CHANGED
@@ -23,6 +23,7 @@ module Zenithal::ZoticaSingleParserMethod
|
|
23
23
|
this = REXML::Nodes[]
|
24
24
|
options[:role] = determine_role(attributes)
|
25
25
|
options[:class] = attributes["class"]
|
26
|
+
options[:style] = attributes["style"]
|
26
27
|
options[:fonts] = @fonts
|
27
28
|
case name
|
28
29
|
when "n"
|
@@ -241,7 +242,8 @@ module Zenithal::ZoticaSingleParserMethod
|
|
241
242
|
when "diag"
|
242
243
|
vertical_gaps_string = attributes["ver"]
|
243
244
|
horizontal_gaps_string = attributes["hor"]
|
244
|
-
|
245
|
+
align_baseline = attributes["bl"]
|
246
|
+
this << ZoticaBuilder.build_diagram(vertical_gaps_string, horizontal_gaps_string, align_baseline, options) do |table_this|
|
245
247
|
table_this << children_list.fetch(0, REXML::Nodes[])
|
246
248
|
end
|
247
249
|
when "c"
|
Binary file
|
@@ -4695,9 +4695,9 @@
|
|
4695
4695
|
"984487": [-0.238, 0.512],
|
4696
4696
|
"984488": [-0.238, 0.238],
|
4697
4697
|
"984489": [-0.238, 0.512],
|
4698
|
-
"984490": [-0.
|
4699
|
-
"984491": [-0.
|
4700
|
-
"984492": [-0.
|
4698
|
+
"984490": [-0.397, -0.4],
|
4699
|
+
"984491": [-0.403, -0.4],
|
4700
|
+
"984492": [-0.238, -0.246],
|
4701
4701
|
"984493": [-0.069, 0.023],
|
4702
4702
|
"984494": [-0.069, 0.023],
|
4703
4703
|
"984495": [-0.069, 0.023],
|
Binary file
|
@@ -422,6 +422,11 @@
|
|
422
422
|
"colonapproxeq": [":≊", ["rel"]],
|
423
423
|
"aapprox": ["≋", ["rel"]],
|
424
424
|
"colonaapprox": [":≋", ["rel"]],
|
425
|
+
"smile": ["\uDB81\uDDAA", ["rel"]],
|
426
|
+
"largesmile": ["⌣", ["rel"]],
|
427
|
+
"frown": ["\uDB81\uDDAB", ["rel"]],
|
428
|
+
"largefrown": ["⌢", ["rel"]],
|
429
|
+
"closure": ["\uDB81\uDDAC", ["rel"]],
|
425
430
|
"asymp": ["≍", ["rel"]], "nasymp": ["≭", ["rel"]],
|
426
431
|
"bumpeq": ["≏", ["rel"]],
|
427
432
|
"bumpbump": ["≎", ["rel"]],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zotica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziphil
|
8
8
|
autorequire:
|
9
9
|
bindir: exec
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zenml
|