metanorma-iec 1.4.3 → 1.4.4

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: 4e9809afe49796fd5ec400dd387616e73df0a09771bd0a69b55a9bf13e4e8480
4
- data.tar.gz: 674ef4144aaa385a8d24a571468809e8e49a196fd6aeb3b9e19cd5072b24f0c9
3
+ metadata.gz: a02490c7cf51e0e7d6d7bc61f6afcfd457c56b18f8cf1e98037bf48b2f8ad993
4
+ data.tar.gz: 54da10f826af0d1ba39362e74a46747cd52194dfae54115464b49b9c45882beb
5
5
  SHA512:
6
- metadata.gz: ad5a896dc162a2640a028136d6820dbf7cebae8c2b1bbfb18180edf3b7fb667797fd1e0936fade92fcf8a839d962804c2d935e928e8c1e0dd8c40693a449828c
7
- data.tar.gz: 968027433e37c6b82322621798d0b0c99007ed00cf01e6da4c531f0e2eec6859911c09598713db705a44b2ee54835f943215aeb26761178cf60d7472afc5ee84
6
+ metadata.gz: 6dd8918d63ec440964bfa7902a03a3b668fd9940115dc908fd1f92353d14342c76586ad87d288454374ee18d4509696e774cec4a36634f5d53f1305cee41dc1b
7
+ data.tar.gz: 19cc0bbfe41cacb566e2e84c10194d5c48bc164f08c17d060f0002454df4c0edf41baee4ef8bc367dbb959dedc57df36c25abe3080dfad2916cb6675c6238857
data/Gemfile CHANGED
@@ -5,3 +5,5 @@ source "https://rubygems.org"
5
5
 
6
6
  # Specify your gem's dependencies in gemspec
7
7
  gemspec
8
+
9
+ gem "reline", "~> 0.2.8.pre.11"
@@ -69,7 +69,7 @@ module Asciidoctor
69
69
  if node.nil?
70
70
  IsoDoc::Iec::PdfConvert.new({})
71
71
  else
72
- IsoDoc::Iec::PdfConvert.new(doc_extract_attributes(node))
72
+ IsoDoc::Iec::PdfConvert.new(pdf_extract_attributes(node))
73
73
  end
74
74
  end
75
75
 
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -159,6 +159,20 @@
159
159
  <data type="ID"/>
160
160
  </attribute>
161
161
  </optional>
162
+ <optional>
163
+ <attribute name="language"/>
164
+ </optional>
165
+ <optional>
166
+ <attribute name="script"/>
167
+ </optional>
168
+ <optional>
169
+ <attribute name="tag"/>
170
+ </optional>
171
+ <optional>
172
+ <attribute name="multilingual-rendering">
173
+ <ref name="MultilingualRenderingType"/>
174
+ </attribute>
175
+ </optional>
162
176
  <ref name="preferred"/>
163
177
  <zeroOrMore>
164
178
  <ref name="admitted"/>
@@ -80,18 +80,6 @@ module IsoDoc
80
80
  end
81
81
  end
82
82
 
83
- def termref_cleanup(docxml)
84
- return super unless @is_iev
85
-
86
- docxml
87
- .gsub(%r{\s*\[/TERMREF\]\s*</p>\s*<p>\s*\[TERMREF\]}, "; ")
88
- .gsub(/\[TERMREF\]\s*/, l10n("#{@i18n.source}: "))
89
- .gsub(/\s*\[MODIFICATION\]\s*\[\/TERMREF\]/,
90
- l10n(", #{@i18n.modified} [/TERMREF]"))
91
- .gsub(/\s*\[\/TERMREF\]\s*/, l10n(""))
92
- .gsub(/\s*\[MODIFICATION\]/, l10n(", #{@i18n.modified} &mdash; "))
93
- end
94
-
95
83
  def set_termdomain(termdomain)
96
84
  return super unless @is_iev
97
85
  end
@@ -973,3 +973,24 @@ span.keyword {
973
973
 
974
974
  .Admonition p, .admonition p {
975
975
  margin: 0; }
976
+
977
+ /* Collapse TOC */
978
+ .collapse-group {
979
+ display: flex;
980
+ align-items: center;
981
+ position: relative; }
982
+
983
+ .collapse-button {
984
+ position: absolute;
985
+ right: 0;
986
+ display: inline-block;
987
+ height: 20px;
988
+ width: 20px;
989
+ cursor: pointer;
990
+ background-image: url('data:image/svg+xml,<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(0,0,0,.54)" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>'); }
991
+
992
+ .collapse {
993
+ display: none; }
994
+
995
+ .expand {
996
+ transform: rotateZ(-180deg); }
@@ -704,3 +704,29 @@ span.keyword {
704
704
  .Admonition p, .admonition p {
705
705
  margin: 0;
706
706
  }
707
+
708
+ /* Collapse TOC */
709
+
710
+ .collapse-group {
711
+ display: flex;
712
+ align-items: center;
713
+ position: relative;
714
+ }
715
+
716
+ .collapse-button {
717
+ position: absolute;
718
+ right: 0;
719
+ display: inline-block;
720
+ height: 20px;
721
+ width: 20px;
722
+ cursor: pointer;
723
+ background-image: url('data:image/svg+xml,<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(0,0,0,.54)" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>');
724
+ }
725
+
726
+ .collapse {
727
+ display: none;
728
+ }
729
+
730
+ .expand {
731
+ transform: rotateZ(-180deg);
732
+ }
@@ -17,7 +17,6 @@ $('#toggle').on('click', function(){
17
17
  else {
18
18
  $('nav').show();
19
19
  $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('body').animate({ 'margin-left': '298px' }, 'slow');
21
20
  }
22
21
  });
23
22
  </script>