metanorma-itu 1.4.0.1 → 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: e486ed509e01e8839797855e65a6431033298b7e307253f64b600fbc195f4caa
4
- data.tar.gz: cbb5b77f6e2d99ded15a6e50375689d9f57f700d3f4f00d320e2ce110713d535
3
+ metadata.gz: 2fb429391263ff996d975c4530caafb770cdd27c641e5afd565021d503c82b00
4
+ data.tar.gz: 81c88468270f3a6b9e3febb646c459da0239c232780408f39104981af1bf619c
5
5
  SHA512:
6
- metadata.gz: 550210205331fb08d6e5f9da8614f8f0f9b9883e4b353d79698a8530e4f71dce36cfd5b36d75b0fcce073569cc1f1cf33a83b9baf348179ad3f547a3c9221da6
7
- data.tar.gz: 3900db56104d0d73841f932220178e3ef1e64cb085d60bcbdff5259e36fbdbca539b3dfc26d71a25934f4622a48ba7afb93813ac1bee7d86d66456064fee9692
6
+ metadata.gz: db67afa2f11981ca3c74a52eb2fcbc06de76b6aa8583c280bc2be6e1248ca132ed59e83a6f700d4eb1f6b55459666d9513c21494bb56fed53a6bad07f48a3de2
7
+ data.tar.gz: bd640b4db3d5f369b534b78d12f8c129637006e6e6e57ff201eff54814cc7e03bd3bcb5d483f70c06e8c5c1aff30cb31dbeb957c735bd8b561efedf40d6fadad
@@ -8,9 +8,6 @@ require_relative "./cleanup"
8
8
 
9
9
  module Asciidoctor
10
10
  module ITU
11
- # A {Converter} implementation that generates RSD output, and a document
12
- # schema encapsulation of the document for validation
13
- #
14
11
  class Converter < Standoc::Converter
15
12
  XML_ROOT_TAG = "itu-standard".freeze
16
13
  XML_NAMESPACE = "https://www.metanorma.org/ns/itu".freeze
@@ -72,11 +69,11 @@ module Asciidoctor
72
69
 
73
70
  def sectiontype_streamline(ret)
74
71
  case ret
75
- when "definitions" then "terms and definitions"
72
+ when "definitions", "terms defined elsewhere",
73
+ "terms defined in this recommendation"
74
+ "terms and definitions"
76
75
  when "abbreviations and acronyms" then "symbols and abbreviated terms"
77
76
  when "references" then "normative references"
78
- when "terms defined elsewhere" then "terms and definitions"
79
- when "terms defined in this recommendation" then "terms and definitions"
80
77
  else
81
78
  super
82
79
  end
@@ -144,7 +141,7 @@ module Asciidoctor
144
141
  end
145
142
 
146
143
  def pdf_converter(node)
147
- IsoDoc::ITU::PdfConvert.new(html_extract_attributes(node))
144
+ IsoDoc::ITU::PdfConvert.new(pdf_extract_attributes(node))
148
145
  end
149
146
 
150
147
  def doc_converter(node)
@@ -58,7 +58,7 @@
58
58
  <attribute name="alt"/>
59
59
  </optional>
60
60
  <optional>
61
- <attribute name="updatetype">
61
+ <attribute name="update-type">
62
62
  <data type="boolean"/>
63
63
  </attribute>
64
64
  </optional>
@@ -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>
@@ -1814,9 +1828,6 @@
1814
1828
  <optional>
1815
1829
  <ref name="termsubject"/>
1816
1830
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1831
  <oneOrMore>
1821
1832
  <ref name="termdefinition"/>
1822
1833
  </oneOrMore>
@@ -1880,17 +1891,37 @@
1880
1891
  </attribute>
1881
1892
  </optional>
1882
1893
  <optional>
1883
- <attribute name="geographicArea"/>
1894
+ <attribute name="geographic-area"/>
1884
1895
  </optional>
1885
1896
  <choice>
1886
1897
  <ref name="expression_designation"/>
1887
1898
  <ref name="letter_symbol_designation"/>
1888
1899
  <ref name="graphical_symbol_designation"/>
1889
1900
  </choice>
1901
+ <optional>
1902
+ <ref name="fieldofapplication"/>
1903
+ </optional>
1904
+ <optional>
1905
+ <ref name="usageinfo"/>
1906
+ </optional>
1890
1907
  <zeroOrMore>
1891
1908
  <ref name="termsource"/>
1892
1909
  </zeroOrMore>
1893
1910
  </define>
1911
+ <define name="fieldofapplication">
1912
+ <element name="field-of-application">
1913
+ <oneOrMore>
1914
+ <ref name="PureTextElement"/>
1915
+ </oneOrMore>
1916
+ </element>
1917
+ </define>
1918
+ <define name="usageinfo">
1919
+ <element name="usage-info">
1920
+ <oneOrMore>
1921
+ <ref name="PureTextElement"/>
1922
+ </oneOrMore>
1923
+ </element>
1924
+ </define>
1894
1925
  <define name="letter_symbol_designation">
1895
1926
  <element name="letter-symbol">
1896
1927
  <optional>
@@ -1946,7 +1977,7 @@
1946
1977
  </zeroOrMore>
1947
1978
  </element>
1948
1979
  <optional>
1949
- <element name="abbreviationType">
1980
+ <element name="abbreviation-type">
1950
1981
  <ref name="AbbreviationType"/>
1951
1982
  </element>
1952
1983
  </optional>
@@ -1956,7 +1987,7 @@
1956
1987
  </element>
1957
1988
  </optional>
1958
1989
  <optional>
1959
- <element name="grammarInfo">
1990
+ <element name="grammar-info">
1960
1991
  <ref name="Grammar"/>
1961
1992
  </element>
1962
1993
  </optional>
@@ -1983,6 +2014,11 @@
1983
2014
  <ref name="GrammarGender"/>
1984
2015
  </element>
1985
2016
  </zeroOrMore>
2017
+ <zeroOrMore>
2018
+ <element name="number">
2019
+ <ref name="GrammarNumber"/>
2020
+ </element>
2021
+ </zeroOrMore>
1986
2022
  <optional>
1987
2023
  <element name="isPreposition">
1988
2024
  <data type="boolean"/>
@@ -2014,7 +2050,7 @@
2014
2050
  </element>
2015
2051
  </optional>
2016
2052
  <zeroOrMore>
2017
- <element name="grammarvalue">
2053
+ <element name="grammar-value">
2018
2054
  <text/>
2019
2055
  </element>
2020
2056
  </zeroOrMore>
@@ -2027,6 +2063,13 @@
2027
2063
  <value>common</value>
2028
2064
  </choice>
2029
2065
  </define>
2066
+ <define name="GrammarNumber">
2067
+ <choice>
2068
+ <value>singular</value>
2069
+ <value>dual</value>
2070
+ <value>plural</value>
2071
+ </choice>
2072
+ </define>
2030
2073
  <define name="termdomain">
2031
2074
  <element name="domain">
2032
2075
  <oneOrMore>
@@ -2041,13 +2084,6 @@
2041
2084
  </oneOrMore>
2042
2085
  </element>
2043
2086
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2087
  <define name="termdefinition">
2052
2088
  <element name="definition">
2053
2089
  <choice>
@@ -2061,9 +2097,17 @@
2061
2097
  </element>
2062
2098
  </define>
2063
2099
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2100
+ <element name="verbal-definition">
2065
2101
  <oneOrMore>
2066
- <ref name="paragraph"/>
2102
+ <choice>
2103
+ <ref name="paragraph"/>
2104
+ <ref name="dl"/>
2105
+ <ref name="ol"/>
2106
+ <ref name="ul"/>
2107
+ <ref name="table"/>
2108
+ <ref name="figure"/>
2109
+ <ref name="formula"/>
2110
+ </choice>
2067
2111
  </oneOrMore>
2068
2112
  <zeroOrMore>
2069
2113
  <ref name="termsource"/>
@@ -2071,7 +2115,7 @@
2071
2115
  </element>
2072
2116
  </define>
2073
2117
  <define name="nonverbalrep">
2074
- <element name="nonverbalrepresentation">
2118
+ <element name="non-verbal-representation">
2075
2119
  <oneOrMore>
2076
2120
  <choice>
2077
2121
  <ref name="table"/>
@@ -2163,6 +2207,12 @@
2163
2207
  <value>modified</value>
2164
2208
  </choice>
2165
2209
  </attribute>
2210
+ <attribute name="type">
2211
+ <choice>
2212
+ <value>authoritative</value>
2213
+ <value>lineage</value>
2214
+ </choice>
2215
+ </attribute>
2166
2216
  <ref name="origin"/>
2167
2217
  <optional>
2168
2218
  <ref name="modification"/>
@@ -130,7 +130,7 @@ module Asciidoctor
130
130
 
131
131
  def termdef_style(xmldoc)
132
132
  xmldoc.xpath("//term").each do |t|
133
- para = t.at("./definition/verbaldefinition") || return
133
+ para = t.at("./definition/verbal-definition") || return
134
134
  term = t.at("./preferred//name").text
135
135
  termdef_warn(term, /^[A-Z][a-z]+/, t, term, "term is not lowercase")
136
136
  termdef_warn(para.text, /^[a-z]/, t, term,
@@ -33,7 +33,7 @@ module IsoDoc
33
33
 
34
34
  def term_cleanup2(docxml)
35
35
  docxml.xpath("//p[@class = 'TermNum']").each do |d|
36
- d1 = d.next_element and d1.name == "p" or next
36
+ (d1 = d.next_element and d1.name == "p") or next
37
37
  d1.children.each { |e| e.parent = d }
38
38
  d1.remove
39
39
  end
@@ -959,7 +959,7 @@ h4 {
959
959
  font-size: 1.2em; }
960
960
 
961
961
  /* Terms */
962
- .TermNum, .Terms, .AltTerms {
962
+ .TermNum {
963
963
  font-weight: 400; }
964
964
 
965
965
  h2.TermNum {
@@ -294,7 +294,7 @@ h4 {
294
294
 
295
295
  /* Terms */
296
296
 
297
- .TermNum, .Terms, .AltTerms {
297
+ .TermNum {
298
298
  font-weight: 400;
299
299
  }
300
300
 
@@ -445,7 +445,6 @@ p.Terms, li.Terms, div.Terms {
445
445
  mso-fareast-font-family: {{headerfont}};
446
446
  mso-bidi-font-family: {{headerfont}};
447
447
  mso-ansi-language: EN-GB;
448
- font-weight: bold;
449
448
  mso-bidi-font-weight: normal; }
450
449
 
451
450
  p.AltTerms, li.AltTerms, div.AltTerms {
@@ -427,7 +427,6 @@ p.Terms, li.Terms, div.Terms
427
427
  mso-fareast-font-family:$headerfont;
428
428
  mso-bidi-font-family:$headerfont;
429
429
  mso-ansi-language:EN-GB;
430
- font-weight:bold;
431
430
  mso-bidi-font-weight:normal;}
432
431
  p.AltTerms, li.AltTerms, div.AltTerms
433
432
  {mso-style-name:"AltTerm\(s\)";
@@ -17,7 +17,6 @@ $('#toggle').on('click', function(){
17
17
  else {
18
18
  $('nav').show();
19
19
  $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
21
20
  }
22
21
  });
23
22
  </script>