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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5567e1591cf7d7e6a4c7b55d2ff1933a68223f8a1fa1d0be34bf9469655442fa
4
- data.tar.gz: 306e20394ecdc7578bc14e045e79e7d1e72be6035d48aaa096f6d8014cf730d7
3
+ metadata.gz: 3495563850307ddfd71f84190b03db6fdbb08c5a84bafe44394e77b02a8ddfea
4
+ data.tar.gz: 6085901c9187f2967eadccdfc5c5b193687024e75be0169ce1440632d42a1ec2
5
5
  SHA512:
6
- metadata.gz: cd0b1ec61a39cf39d606050a3833193f1ba863dd8f1deb8b38c54eaecfce6722c829c9186e7de385beada34f489b0131f602a79154440a7cca797c8d3fcbb961
7
- data.tar.gz: 00c7030d65a31d12d2adc01e1b73d585ae4c24bc0b762d844f3382bbc3664b4ff0592b78d3650964e6f24020b5a81e001b44ab4a54c11ba98b61bacd0a437e7c
6
+ metadata.gz: 5c05a857ec98869264095212635801ee8150e0e229d8dc9367ccd759bed38403991e4ed9ae3fb2fbcd042da793527c9997fa7475f7e93aa090297d7779e116f9
7
+ data.tar.gz: ce2d1f5d40eb325ee603a7ed4d612f626fe8a8221b33b286c210a3f4cdc0eca3705fe7acbca4d51086cc73c86c040188e5623e3742fd381c697d3558cc7f622b
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Zenithal
5
5
 
6
- ZOTICA_VERSION = "1.5.0"
6
+ ZOTICA_VERSION = "1.6.0"
7
7
  ZOTICA_VERSION_ARRAY = ZOTICA_VERSION.split(/\./).map(&:to_i)
8
8
 
9
9
  end
@@ -34,7 +34,10 @@ module Zenithal::ZoticaBuilder
34
34
  node["class"] = classes.join(" ")
35
35
  end
36
36
  if options[:class]
37
- node["class"] = (node["class"].split(" ") + options[:class].split(" ")).join(" ")
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)
@@ -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
- this << ZoticaBuilder.build_diagram(vertical_gaps_string, horizontal_gaps_string, options) do |table_this|
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"
@@ -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.069, 0.023],
4699
- "984491": [-0.069, 0.023],
4700
- "984492": [-0.069, 0.023],
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],
@@ -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"]],
@@ -475,6 +475,10 @@ math-diagram {
475
475
  }
476
476
  }
477
477
 
478
+ &.baseline {
479
+ vertical-align: baseline;
480
+ }
481
+
478
482
  >math-cellwrap {
479
483
  text-align: center;
480
484
  }
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.5.0
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: 2020-08-04 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zenml