metanorma-m3aawg 1.7.11 → 1.8.1

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: 624cebc1c8a570ffe34e2800ff8b2cd5cc93d07d0e87fe9af825ab55b872e6a9
4
- data.tar.gz: a82f3fa990022f5f66a92b213039ce4acd63b808594d3537f00891e56b9e702b
3
+ metadata.gz: 6773ce3d0cd71c057cf31bb0a343e5dc9ec84b45fb3e7f61b902912f8e073609
4
+ data.tar.gz: 60aeef5a018e51de3dc9d43e715854251b8440a02bf00c41f5864465151ec622
5
5
  SHA512:
6
- metadata.gz: 26e11a68c18b31428e01323362b36e584a5c1724ee8fe4378e873a7dc766f5cab7d7295e6967158de32d2b9ccedc323f2181cfd7c6ed0367c5e1406808c09084
7
- data.tar.gz: 990de7c55fbc095b91acb1df22438ae5f4e8b391b003848e75ff35232e64a17ebd7233d3ee6859dfcb8185d1e0f263b48832e8b42fea665cbdd9dd3dd449b07f
6
+ metadata.gz: 68520386d589ef7e34e796d5be63d4b8e78c3ca584e341b6e8454e1841c892d9d11dc818f14a313c6ec166e28b952791b46f9a57dc40b4b97f542b132a0d8058
7
+ data.tar.gz: ee807b364ad4bd90749f79b4b56dfcec44dd3f458a6db2adae8fe91310c34d4cf8f8b7e260199baeead9a7704c57abdc6492a0b1708c9d6a8cb8185bf65e85ec
@@ -624,6 +624,9 @@
624
624
  <choice>
625
625
  <ref name="PureTextElement"/>
626
626
  <ref name="stem"/>
627
+ <ref name="eref"/>
628
+ <ref name="xref"/>
629
+ <ref name="hyperlink"/>
627
630
  </choice>
628
631
  </zeroOrMore>
629
632
  </element>
@@ -634,6 +637,9 @@
634
637
  <choice>
635
638
  <ref name="PureTextElement"/>
636
639
  <ref name="stem"/>
640
+ <ref name="eref"/>
641
+ <ref name="xref"/>
642
+ <ref name="hyperlink"/>
637
643
  </choice>
638
644
  </zeroOrMore>
639
645
  </element>
@@ -641,7 +647,12 @@
641
647
  <define name="tt">
642
648
  <element name="tt">
643
649
  <zeroOrMore>
644
- <ref name="PureTextElement"/>
650
+ <choice>
651
+ <ref name="PureTextElement"/>
652
+ <ref name="eref"/>
653
+ <ref name="xref"/>
654
+ <ref name="hyperlink"/>
655
+ </choice>
645
656
  </zeroOrMore>
646
657
  </element>
647
658
  </define>
@@ -822,7 +833,9 @@
822
833
  <attribute name="alt"/>
823
834
  </optional>
824
835
  <ref name="CitationType"/>
825
- <text/>
836
+ <oneOrMore>
837
+ <ref name="PureTextElement"/>
838
+ </oneOrMore>
826
839
  </define>
827
840
  <define name="hyperlink">
828
841
  <element name="link">
@@ -835,7 +848,9 @@
835
848
  <optional>
836
849
  <attribute name="alt"/>
837
850
  </optional>
838
- <text/>
851
+ <oneOrMore>
852
+ <ref name="PureTextElement"/>
853
+ </oneOrMore>
839
854
  </element>
840
855
  </define>
841
856
  <define name="xref">
@@ -849,7 +864,9 @@
849
864
  <optional>
850
865
  <attribute name="alt"/>
851
866
  </optional>
852
- <text/>
867
+ <oneOrMore>
868
+ <ref name="PureTextElement"/>
869
+ </oneOrMore>
853
870
  </element>
854
871
  </define>
855
872
  <define name="fn">
@@ -40,9 +40,9 @@ module Asciidoctor
40
40
  pdf_converter(node)&.convert(@filename + ".presentation.xml", nil, false, "#{@filename}.pdf")
41
41
  end
42
42
 
43
- def sections_cleanup(x)
43
+ def sections_cleanup(xml)
44
44
  super
45
- x.xpath("//*[@inline-header]").each do |h|
45
+ xml.xpath("//*[@inline-header]").each do |h|
46
46
  h.delete("inline-header")
47
47
  end
48
48
  end
@@ -61,6 +61,7 @@ module Asciidoctor
61
61
 
62
62
  def pdf_converter(node)
63
63
  return nil if node.attr("no-pdf")
64
+
64
65
  IsoDoc::M3AAWG::PdfConvert.new(doc_extract_attributes(node))
65
66
  end
66
67
  end