metanorma-nist 1.1.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +14 -0
  3. data/lib/asciidoctor/nist/basicdoc.rng +23 -0
  4. data/lib/asciidoctor/nist/boilerplate.rb +2 -2
  5. data/lib/asciidoctor/nist/cleanup.rb +34 -4
  6. data/lib/asciidoctor/nist/converter.rb +20 -6
  7. data/lib/asciidoctor/nist/front.rb +37 -46
  8. data/lib/asciidoctor/nist/front_id.rb +1 -1
  9. data/lib/asciidoctor/nist/isodoc.rng +137 -21
  10. data/lib/asciidoctor/nist/nist.rng +26 -1
  11. data/lib/asciidoctor/nist/validate.rb +16 -9
  12. data/lib/isodoc/nist/base_convert.rb +26 -75
  13. data/lib/isodoc/nist/html/nist.css +22 -10
  14. data/lib/isodoc/nist/html/nist.scss +24 -10
  15. data/lib/isodoc/nist/html/nist_cswp.css +21 -9
  16. data/lib/isodoc/nist/html/nist_cswp.scss +23 -9
  17. data/lib/isodoc/nist/html/wordstyle.css +83 -3
  18. data/lib/isodoc/nist/html/wordstyle.scss +74 -3
  19. data/lib/isodoc/nist/html/wordstyle_cswp.css +77 -2
  20. data/lib/isodoc/nist/html/wordstyle_cswp.scss +68 -2
  21. data/lib/isodoc/nist/html_convert.rb +3 -0
  22. data/lib/isodoc/nist/i18n-en.yaml +3 -0
  23. data/lib/isodoc/nist/i18n.rb +10 -0
  24. data/lib/isodoc/nist/init.rb +37 -0
  25. data/lib/isodoc/nist/metadata_id.rb +3 -1
  26. data/lib/isodoc/nist/nist.cswp.xsl +1954 -2232
  27. data/lib/isodoc/nist/nist.sp.xsl +2176 -2217
  28. data/lib/isodoc/nist/pdf_convert.rb +0 -1
  29. data/lib/isodoc/nist/presentation_xml_convert.rb +71 -1
  30. data/lib/isodoc/nist/refs.rb +2 -17
  31. data/lib/isodoc/nist/render.rb +2 -1
  32. data/lib/isodoc/nist/render_contributors.rb +1 -1
  33. data/lib/isodoc/nist/render_dates.rb +0 -25
  34. data/lib/isodoc/nist/section.rb +26 -13
  35. data/lib/isodoc/nist/word_convert.rb +47 -13
  36. data/lib/isodoc/nist/xref.rb +1 -24
  37. data/lib/metanorma/nist/version.rb +1 -1
  38. data/metanorma-nist.gemspec +2 -2
  39. metadata +8 -6
@@ -9,6 +9,24 @@
9
9
  <start>
10
10
  <ref name="nist-standard"/>
11
11
  </start>
12
+ <define name="ol">
13
+ <element name="ol">
14
+ <attribute name="id">
15
+ <data type="ID"/>
16
+ </attribute>
17
+ <optional>
18
+ <attribute name="class">
19
+ <value>steps</value>
20
+ </attribute>
21
+ </optional>
22
+ <oneOrMore>
23
+ <ref name="li"/>
24
+ </oneOrMore>
25
+ <zeroOrMore>
26
+ <ref name="note"/>
27
+ </zeroOrMore>
28
+ </element>
29
+ </define>
12
30
  <define name="DocumentType">
13
31
  <value>standard</value>
14
32
  </define>
@@ -16,7 +34,7 @@
16
34
  <define name="preface">
17
35
  <element name="preface">
18
36
  <optional>
19
- <ref name="preface_abstract"/>
37
+ <ref name="abstract"/>
20
38
  </optional>
21
39
  <optional>
22
40
  <ref name="foreword"/>
@@ -164,6 +182,13 @@
164
182
  </define>
165
183
  <define name="nist-standard">
166
184
  <element name="nist-standard">
185
+ <attribute name="version"/>
186
+ <attribute name="type">
187
+ <choice>
188
+ <value>semantic</value>
189
+ <value>presentation</value>
190
+ </choice>
191
+ </attribute>
167
192
  <ref name="bibdata"/>
168
193
  <zeroOrMore>
169
194
  <ref name="termdocsource"/>
@@ -21,26 +21,30 @@ module Asciidoctor
21
21
  def doctype_validate(xmldoc)
22
22
  doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
23
23
  %w(standard).include? doctype or
24
- @log.add("Document Attributes", nil, "#{doctype} is not a recognised document type")
24
+ @log.add("Document Attributes", nil,
25
+ "#{doctype} is not a recognised document type")
25
26
  end
26
27
 
27
28
  def stage_validate(xmldoc)
28
29
  stage = xmldoc&.at("//bibdata/status/stage")&.text
29
30
  %w(draft-internal draft-wip draft-prelim draft-public draft-approval
30
31
  final final-review).include? stage or
31
- @log.add("Document Attributes", nil, "#{stage} is not a recognised stage")
32
+ @log.add("Document Attributes", nil,
33
+ "#{stage} is not a recognised stage")
32
34
  end
33
35
 
34
36
  def substage_validate(xmldoc)
35
37
  substage = xmldoc&.at("//bibdata/status/substage")&.text or return
36
38
  %w(active retired withdrawn).include? substage or
37
- @log.add("Document Attributes", nil, "#{substage} is not a recognised substage")
39
+ @log.add("Document Attributes", nil,
40
+ "#{substage} is not a recognised substage")
38
41
  end
39
42
 
40
43
  def iteration_validate(xmldoc)
41
44
  iteration = xmldoc&.at("//bibdata/status/iteration")&.text or return
42
45
  %w(final).include? iteration.downcase or /^\d+$/.match(iteration) or
43
- @log.add("Document Attributes", nil, "#{iteration} is not a recognised iteration")
46
+ @log.add("Document Attributes", nil,
47
+ "#{iteration} is not a recognised iteration")
44
48
  end
45
49
 
46
50
  def series_validate(xmldoc)
@@ -48,7 +52,8 @@ module Asciidoctor
48
52
  found = false
49
53
  SERIES.each { |_, v| found = true if v == series }
50
54
  found or
51
- @log.add("Document Attributes", nil, "#{series} is not a recognised series")
55
+ @log.add("Document Attributes", nil,
56
+ "#{series} is not a recognised series")
52
57
  end
53
58
 
54
59
  def validate(doc)
@@ -60,8 +65,9 @@ module Asciidoctor
60
65
  def introduction_validate(doc)
61
66
  intro = doc.at("//sections/clause/title")
62
67
  intro&.text == "Introduction" or
63
- @log.add("Style", intro, "First section of document body should be Introduction, "\
64
- "not #{intro&.text}")
68
+ @log.add("Style", intro,
69
+ "First section of document body should be Introduction, "\
70
+ "not #{intro&.text}")
65
71
  end
66
72
 
67
73
  REF_SECTIONS_TO_VALIDATE = "//references[not(parent::clause)]/title | "\
@@ -80,8 +86,9 @@ module Asciidoctor
80
86
  return if names == ["References"]
81
87
  return if names == ["Bibliography"]
82
88
  return if names == ["References", "Bibliography"]
83
- @log.add("Style", nil, "Reference clauses #{names.join(', ')} do not follow expected "\
84
- "pattern in NIST")
89
+ @log.add("Style", nil,
90
+ "Reference clauses #{names.join(', ')} do not follow "\
91
+ "expected pattern in NIST")
85
92
  end
86
93
  end
87
94
  end
@@ -1,6 +1,4 @@
1
1
  require "isodoc"
2
- require_relative "metadata"
3
- require_relative "xref"
4
2
  require_relative "refs"
5
3
  require_relative "section"
6
4
  require "fileutils"
@@ -8,37 +6,6 @@ require "fileutils"
8
6
  module IsoDoc
9
7
  module NIST
10
8
  module BaseConvert
11
- def metadata_init(lang, script, labels)
12
- @meta = Metadata.new(lang, script, labels)
13
- end
14
-
15
- def xref_init(lang, script, klass, labels, options)
16
- @xrefs = Xref.new(lang, script, klass, labels, options)
17
- end
18
-
19
- def keywords(_docxml, out)
20
- kw = @meta.get[:keywords]
21
- kw.empty? and return
22
- out.div **{ class: "Section3" } do |div|
23
- clause_name(nil, "Keywords", div, class: "IntroTitle")
24
- div.p kw.sort.join("; ")
25
- end
26
- end
27
-
28
- FRONT_CLAUSE = "//*[parent::preface][not(local-name() = 'abstract' or "\
29
- "local-name() = 'foreword')]".freeze
30
-
31
- def skip_render(c, isoxml)
32
- return false unless c.name == "reviewernote"
33
- status = isoxml&.at(ns("//bibdata/status/stage"))&.text
34
- return true if status.nil?
35
- /^final/.match status
36
- end
37
-
38
- def fileloc(loc)
39
- File.join(File.dirname(__FILE__), loc)
40
- end
41
-
42
9
  def requirement_cleanup(docxml)
43
10
  docxml.xpath("//div[@class = 'recommend' or @class = 'require' "\
44
11
  "or @class = 'permission']").each do |d|
@@ -54,6 +21,7 @@ module IsoDoc
54
21
 
55
22
  def dl_parse(node, out)
56
23
  return glossary_parse(node, out) if node["type"] == "glossary"
24
+ return glossary_parse(node, out) if node.parent.name == "definitions"
57
25
  super
58
26
  end
59
27
 
@@ -84,9 +52,20 @@ module IsoDoc
84
52
  end
85
53
 
86
54
  def boilerplate(node, out)
87
- super
88
- page_break(out)
55
+ boilerplate = node.at(ns("//boilerplate")) or return
56
+ out.div **{class: "authority"} do |s|
57
+ boilerplate.children.each do |n|
58
+ if n.name == "title"
59
+ s.h1 do |h|
60
+ n.children.each { |nn| parse(nn, h) }
61
+ end
62
+ else
63
+ parse(n, s)
64
+ end
65
+ end
66
+ page_break(s)
89
67
  end
68
+ end
90
69
 
91
70
  def children_parse(node, out)
92
71
  node.children.each do |n|
@@ -152,33 +131,6 @@ module IsoDoc
152
131
  super
153
132
  end
154
133
 
155
- def wrap_brackets(txt)
156
- return txt if /^\[.*\]$/.match txt
157
- "[#{txt}]"
158
- end
159
-
160
- def get_linkend(node)
161
- link = anchor_linkend(node, docid_l10n(node["target"] ||
162
- wrap_brackets(node['citeas'])))
163
- link += eref_localities(node.xpath(ns("./locality | ./localityStack")),
164
- link)
165
- contents = node.children.select do |c|
166
- !%w{locality localityStack}.include? c.name
167
- end
168
- return link if contents.nil? || contents.empty?
169
- Nokogiri::XML::NodeSet.new(node.document, contents).to_xml
170
- end
171
-
172
- def load_yaml(lang, script)
173
- y = if @i18nyaml then YAML.load_file(@i18nyaml)
174
- elsif lang == "en"
175
- YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
176
- else
177
- YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
178
- end
179
- super.merge(y)
180
- end
181
-
182
134
  def terms_parse(node, out)
183
135
  out.div **attr_code(id: node["id"]) do |div|
184
136
  node.at(ns("./title")) and
@@ -218,28 +170,27 @@ module IsoDoc
218
170
  def term_rest_parse(node, dd)
219
171
  set_termdomain("")
220
172
  node.children.each do |n|
221
- parse(n, dd) unless %w(preferred termsource).include?(n.name)
173
+ parse(n, dd) unless %w(preferred termsource name).include?(n.name)
222
174
  end
223
175
  end
224
176
 
225
177
  def modification_parse(node, out)
226
- out << @modified_lbl
178
+ out << @i18n.modified
227
179
  node.at(ns("./p[text()[normalize-space() != '']]")) and
228
180
  out << " &mdash; "
229
181
  node.at(ns("./p")).children.each { |n| parse(n, out) }
230
182
  end
231
183
 
232
- def annex_name(annex, name, div)
233
- div.h1 **{ class: "Annex" } do |t|
234
- t << "#{@xrefs.anchor(annex['id'], :label)} &mdash; "
235
- t.b do |b|
236
- if @bibliographycount == 1 && annex.at(ns("./references"))
237
- b << "References"
238
- else
239
- name&.children&.each { |c2| parse(c2, b) }
240
- end
241
- end
242
- end
184
+ def ol_depth(node)
185
+ return super unless node["class"] == "steps" or
186
+ node.at(".//ancestor::xmlns:ol[@class = 'steps']")
187
+ depth = node.ancestors("ul, ol").size + 1
188
+ type = :arabic
189
+ type = :alphabet if [2, 7].include? depth
190
+ type = :roman if [3, 8].include? depth
191
+ type = :alphabet_upper if [4, 9].include? depth
192
+ type = :roman_upper if [5, 10].include? depth
193
+ ol_style(type)
243
194
  end
244
195
  end
245
196
  end
@@ -828,7 +828,7 @@ div.WordSection1 {
828
828
  {% endif %}
829
829
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2;
830
830
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2;
831
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef2;
831
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2;
832
832
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2;
833
833
  mso-paper-source: 0; }
834
834
 
@@ -843,7 +843,7 @@ div.WordSection1 {
843
843
  {% endif %}
844
844
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
845
845
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2l;
846
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef2l;
846
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2l;
847
847
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2l;
848
848
  mso-paper-source: 0; }
849
849
 
@@ -858,7 +858,7 @@ div.WordSection1 {
858
858
  {% endif %}
859
859
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2;
860
860
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2;
861
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef2;
861
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2;
862
862
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f2;
863
863
  mso-paper-source: 0; }
864
864
 
@@ -877,7 +877,7 @@ div.WordSection2 {
877
877
  {% endif %}
878
878
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2;
879
879
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2;
880
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef3;
880
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
881
881
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
882
882
  mso-paper-source: 0; }
883
883
 
@@ -892,7 +892,7 @@ div.WordSection2 {
892
892
  {% endif %}
893
893
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
894
894
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2l;
895
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef3l;
895
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3l;
896
896
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3l;
897
897
  mso-paper-source: 0; }
898
898
 
@@ -907,14 +907,14 @@ div.WordSection2 {
907
907
  {% endif %}
908
908
  mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh2;
909
909
  mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2;
910
- mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef3;
910
+ mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
911
911
  mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
912
912
  mso-paper-source: 0; }
913
913
 
914
914
  div.WordSection3 {
915
915
  page: WordSection3; }
916
916
 
917
- table.MsoISOTable {
917
+ table.MsoISOTable, table.MsoISOTableBig {
918
918
  mso-style-name: "Table NIST";
919
919
  mso-tstyle-rowband-size: 0;
920
920
  mso-tstyle-colband-size: 0;
@@ -935,7 +935,7 @@ table.MsoISOTable {
935
935
  font-size: 10.0pt;
936
936
  font-family: {{bodyfont}}; }
937
937
 
938
- table.MsoISOTable th {
938
+ table.MsoISOTable th, table.MsoISOTableBig th {
939
939
  border: solid windowtext 1pt;
940
940
  background: black;
941
941
  color: white;
@@ -944,12 +944,12 @@ table.MsoISOTable th {
944
944
  mso-border-alt: solid windowtext 1pt;
945
945
  padding: 0cm 2.85pt 0cm 2.85pt; }
946
946
 
947
- table.MsoISOTable td {
947
+ table.MsoISOTable td, table.MsoISOTableBig td {
948
948
  border: solid windowtext 1pt;
949
949
  mso-border-alt: solid windowtext 1pt;
950
950
  padding: 0cm 2.85pt 0cm 2.85pt; }
951
951
 
952
- table.MsoISOTable p {
952
+ table.MsoISOTable p, table.MsoISOTableBig p {
953
953
  font-size: 10.0pt; }
954
954
 
955
955
  table.MsoTableGrid {
@@ -1039,8 +1039,20 @@ div.example p.MsoListParagraph {
1039
1039
  font-size: 10.0pt; }
1040
1040
 
1041
1041
  div.Note p.MsoListParagraph {
1042
+ font-size: 10.0pt;
1043
+ margin-left: 1.0cm; }
1044
+
1045
+ div.Note span.stem {
1042
1046
  font-size: 10.0pt; }
1043
1047
 
1048
+ div.Note p.Sourcecode, div.Note pre.Sourcecode {
1049
+ font-size: 8.0pt;
1050
+ margin-left: 1.0cm; }
1051
+
1052
+ div.Note table.dl {
1053
+ font-size: 10.0pt;
1054
+ margin-left: 1.0cm; }
1055
+
1044
1056
  span.note_label, span.example_label, td.example_label, td.note_label {
1045
1057
  font-size: 10.0pt;
1046
1058
  font-family: {{bodyfont}}; }
@@ -790,7 +790,7 @@ div.WordSection1
790
790
  {% endif %}
791
791
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
792
792
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
793
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
793
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
794
794
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
795
795
  mso-paper-source:0;}
796
796
  @page WordSection2L {
@@ -804,7 +804,7 @@ div.WordSection1
804
804
  {% endif %}
805
805
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
806
806
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
807
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2l;
807
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2l;
808
808
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2l;
809
809
  mso-paper-source:0;}
810
810
  @page WordSection2P {
@@ -818,7 +818,7 @@ div.WordSection1
818
818
  {% endif %}
819
819
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
820
820
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
821
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
821
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
822
822
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
823
823
  mso-paper-source:0;}
824
824
  div.WordSection2
@@ -835,7 +835,7 @@ div.WordSection2
835
835
  {% endif %}
836
836
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
837
837
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
838
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
838
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
839
839
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
840
840
  mso-paper-source:0;}
841
841
  @page WordSection3L {
@@ -849,7 +849,7 @@ div.WordSection2
849
849
  {% endif %}
850
850
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
851
851
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
852
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3l;
852
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3l;
853
853
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3l;
854
854
  mso-paper-source:0;}
855
855
  @page WordSection3P {
@@ -863,12 +863,12 @@ div.WordSection2
863
863
  {% endif %}
864
864
  mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
865
865
  mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
866
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
866
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
867
867
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
868
868
  mso-paper-source:0;}
869
869
  div.WordSection3
870
870
  {page:WordSection3;}
871
- table.MsoISOTable
871
+ table.MsoISOTable, table.MsoISOTableBig
872
872
  {mso-style-name:"Table NIST";
873
873
  mso-tstyle-rowband-size:0;
874
874
  mso-tstyle-colband-size:0;
@@ -888,7 +888,7 @@ table.MsoISOTable
888
888
  mso-border-insidev:.75pt solid windowtext;
889
889
  font-size:10.0pt;
890
890
  font-family:$bodyfont;}
891
- table.MsoISOTable th
891
+ table.MsoISOTable th, table.MsoISOTableBig th
892
892
  {border:solid windowtext 1pt;
893
893
  background: black;
894
894
  color: white;
@@ -896,11 +896,11 @@ table.MsoISOTable th
896
896
  font-family:$headerfont;
897
897
  mso-border-alt:solid windowtext 1pt;
898
898
  padding:0cm 2.85pt 0cm 2.85pt;}
899
- table.MsoISOTable td
899
+ table.MsoISOTable td, table.MsoISOTableBig td
900
900
  {border:solid windowtext 1pt;
901
901
  mso-border-alt:solid windowtext 1pt;
902
902
  padding:0cm 2.85pt 0cm 2.85pt;}
903
- table.MsoISOTable p
903
+ table.MsoISOTable p, table.MsoISOTableBig p
904
904
  {font-size:10.0pt; }
905
905
  table.MsoTableGrid
906
906
  {mso-style-name:"Table Grid";
@@ -990,6 +990,20 @@ div.example p.MsoListParagraph {
990
990
 
991
991
  div.Note p.MsoListParagraph {
992
992
  font-size: 10.0pt;
993
+ margin-left: 1.0cm;
994
+ }
995
+
996
+ div.Note span.stem {
997
+ font-size: 10.0pt; }
998
+
999
+ div.Note p.Sourcecode, div.Note pre.Sourcecode {
1000
+ font-size: 8.0pt;
1001
+ margin-left: 1.0cm;
1002
+ }
1003
+
1004
+ div.Note table.dl {
1005
+ font-size: 10.0pt;
1006
+ margin-left: 1.0cm;
993
1007
  }
994
1008
 
995
1009
  span.note_label, span.example_label, td.example_label, td.note_label