metanorma-m3aawg 1.7.10 → 1.8.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: 2c22221721fd7f1d5d2bcfa0916606a836311a8d89d1c698cbffb52def53aa57
4
- data.tar.gz: e94670e33058185bd681c67a1da16aa4c97dc9078fe6a1a7dbd1fa455f4f9085
3
+ metadata.gz: 41c17183f17b9cbfa6b9582d6df922d9aee4d0a1d7a857e59af86202d114559c
4
+ data.tar.gz: bf8edc681c9a4fcec8c202b1e2e9faec5324344ff195796a2680af9dc653e95f
5
5
  SHA512:
6
- metadata.gz: '058eda527fafac4a954b984bd25b4a6c7461289c45a3c89388a6eb557def3f88bd0a53a468b562dd2f5e7700eaa2f9cbf15c5e52c3667df38c9870d7fc545d46'
7
- data.tar.gz: c59535c304c8f0296bea6145d2e78da35945c79de238f6b48eb90888b46d0f8b34803048ee2b23d3a121b05aa9347677a59e0a74c26f8cf3cf854405f1e32bb7
6
+ metadata.gz: 8fac863d42a8e69875a0d6f27b174224a0e2bed16a28f0f34992a58536a4057abd570edf1c416dafa6ae8495c620047e84894b24ded8c3a7e2c51719e0adf228
7
+ data.tar.gz: e011f6c8a2d17a7576812891163ade0261794d831af62dfb15056c6f7b07365c0d43cce9d1592c1c5a99db78627516eeb794a9d4d2d3c5ae1c999dc0f83a51ef
@@ -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