metanorma-standoc 2.9.5 → 2.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/html/htmlstyle.css +4 -1
- data/lib/metanorma/standoc/base.rb +8 -8
- data/lib/metanorma/standoc/basicdoc.rng +909 -464
- data/lib/metanorma/standoc/biblio-standoc.rng +87 -20
- data/lib/metanorma/standoc/biblio.rng +884 -325
- data/lib/metanorma/standoc/blocks.rb +1 -1
- data/lib/metanorma/standoc/cleanup.rb +4 -2
- data/lib/metanorma/standoc/cleanup_bibitem.rb +18 -6
- data/lib/metanorma/standoc/cleanup_boilerplate.rb +9 -93
- data/lib/metanorma/standoc/cleanup_inline.rb +1 -1
- data/lib/metanorma/standoc/cleanup_maths.rb +51 -101
- data/lib/metanorma/standoc/cleanup_mathvariant.rb +88 -0
- data/lib/metanorma/standoc/cleanup_terms.rb +4 -1
- data/lib/metanorma/standoc/cleanup_terms_boilerplate.rb +106 -0
- data/lib/metanorma/standoc/cleanup_terms_designations.rb +1 -2
- data/lib/metanorma/standoc/cleanup_text.rb +11 -4
- data/lib/metanorma/standoc/cleanup_xref.rb +1 -1
- data/lib/metanorma/standoc/converter.rb +2 -0
- data/lib/metanorma/standoc/datamodel/plantuml_renderer.rb +1 -1
- data/lib/metanorma/standoc/init.rb +23 -4
- data/lib/metanorma/standoc/inline.rb +27 -14
- data/lib/metanorma/standoc/isodoc.rng +1031 -912
- data/lib/metanorma/standoc/localbib.rb +1 -1
- data/lib/metanorma/standoc/macros.rb +1 -1
- data/lib/metanorma/standoc/macros_inline.rb +11 -9
- data/lib/metanorma/standoc/macros_plantuml.rb +1 -1
- data/lib/metanorma/standoc/ref.rb +1 -1
- data/lib/metanorma/standoc/ref_queue.rb +1 -1
- data/lib/metanorma/standoc/ref_utility.rb +7 -6
- data/lib/metanorma/standoc/reqt.rng +94 -72
- data/lib/metanorma/standoc/section.rb +2 -2
- data/lib/metanorma/standoc/term_lookup_cleanup.rb +2 -2
- data/lib/metanorma/standoc/utils.rb +4 -2
- data/lib/metanorma/standoc/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd70e2c82071482dcc338e1c8db424097e23a0fe5c8875960c47716903a05316
|
4
|
+
data.tar.gz: 249db61a4f2a706d67ce495535b169c934e0f85a257983827f43b93f1a186a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce2dc1394947485b5accdf9abf22de21729d3513f62965b633c2d4eb2ec5fa7a2a2858923596e064e598ce15c0ad51f4887660ac6ce6a4d6928d21f6a5a622c5
|
7
|
+
data.tar.gz: d5d49c9c2ebd8d2790c964d08457d080ff8b94009bd009c902f9c235195322e504314c79242932ce66bb995d3dab13263f00e7bb142437c7adde3049d94b867f
|
@@ -82,6 +82,9 @@ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
|
82
82
|
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
83
83
|
font-size: {{monospacefontsize}}; }
|
84
84
|
|
85
|
+
sub, sup {
|
86
|
+
font-size: 0.75em; }
|
87
|
+
|
85
88
|
article, aside, details, figcaption, figure,
|
86
89
|
footer, header, hgroup, menu, nav, section {
|
87
90
|
display: block; }
|
@@ -239,7 +242,7 @@ h6:hover > a.anchor,
|
|
239
242
|
background-color: #777;
|
240
243
|
color: white;
|
241
244
|
cursor: pointer;
|
242
|
-
padding:
|
245
|
+
padding: 3px 0;
|
243
246
|
margin: 0;
|
244
247
|
width: 100%;
|
245
248
|
border: none;
|
@@ -47,15 +47,15 @@ module Metanorma
|
|
47
47
|
|
48
48
|
def insert_xml_cr(doc)
|
49
49
|
doc.gsub(%r{(</(clause|table|figure|p|bibitem|ul|ol|dl|dt|dd|li|example|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
termsource|origin|termref|modification)>)}x, "\\1\n")
|
50
|
+
sourcecode|formula|quote|references|annex|appendix|title|name|note|
|
51
|
+
thead|tbody|tfoot|th|td|form|requirement|recommendation|permission|
|
52
|
+
imagemap|svgmap|preferred|admitted|related|domain|deprecates|
|
53
|
+
letter-symbol|graphical-symbol|expression|subject|abbreviation-type|
|
54
|
+
pronunciation|grammar|term|terms|termnote|termexample|termsource|
|
55
|
+
origin|termref|modification)>)}x, "\\1\n")
|
57
56
|
.gsub(%r{(<(title|name))}, "\n\\1")
|
58
|
-
.gsub(%r{(<sourcecode[
|
57
|
+
.gsub(%r{(<sourcecode[^<>]*>)\s+(<name[^<>]*>[^<]+</name>)\s+},
|
58
|
+
"\\1\\2")
|
59
59
|
end
|
60
60
|
|
61
61
|
def version
|