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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/html/htmlstyle.css +4 -1
  3. data/lib/metanorma/standoc/base.rb +8 -8
  4. data/lib/metanorma/standoc/basicdoc.rng +909 -464
  5. data/lib/metanorma/standoc/biblio-standoc.rng +87 -20
  6. data/lib/metanorma/standoc/biblio.rng +884 -325
  7. data/lib/metanorma/standoc/blocks.rb +1 -1
  8. data/lib/metanorma/standoc/cleanup.rb +4 -2
  9. data/lib/metanorma/standoc/cleanup_bibitem.rb +18 -6
  10. data/lib/metanorma/standoc/cleanup_boilerplate.rb +9 -93
  11. data/lib/metanorma/standoc/cleanup_inline.rb +1 -1
  12. data/lib/metanorma/standoc/cleanup_maths.rb +51 -101
  13. data/lib/metanorma/standoc/cleanup_mathvariant.rb +88 -0
  14. data/lib/metanorma/standoc/cleanup_terms.rb +4 -1
  15. data/lib/metanorma/standoc/cleanup_terms_boilerplate.rb +106 -0
  16. data/lib/metanorma/standoc/cleanup_terms_designations.rb +1 -2
  17. data/lib/metanorma/standoc/cleanup_text.rb +11 -4
  18. data/lib/metanorma/standoc/cleanup_xref.rb +1 -1
  19. data/lib/metanorma/standoc/converter.rb +2 -0
  20. data/lib/metanorma/standoc/datamodel/plantuml_renderer.rb +1 -1
  21. data/lib/metanorma/standoc/init.rb +23 -4
  22. data/lib/metanorma/standoc/inline.rb +27 -14
  23. data/lib/metanorma/standoc/isodoc.rng +1031 -912
  24. data/lib/metanorma/standoc/localbib.rb +1 -1
  25. data/lib/metanorma/standoc/macros.rb +1 -1
  26. data/lib/metanorma/standoc/macros_inline.rb +11 -9
  27. data/lib/metanorma/standoc/macros_plantuml.rb +1 -1
  28. data/lib/metanorma/standoc/ref.rb +1 -1
  29. data/lib/metanorma/standoc/ref_queue.rb +1 -1
  30. data/lib/metanorma/standoc/ref_utility.rb +7 -6
  31. data/lib/metanorma/standoc/reqt.rng +94 -72
  32. data/lib/metanorma/standoc/section.rb +2 -2
  33. data/lib/metanorma/standoc/term_lookup_cleanup.rb +2 -2
  34. data/lib/metanorma/standoc/utils.rb +4 -2
  35. data/lib/metanorma/standoc/version.rb +1 -1
  36. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81a040f93adb31ed93c820fafd3fd6e6a52f4495dfc718133c92625c09a7c454
4
- data.tar.gz: fe0dfb411b0f884c433a7788c739d9507269ebfc8374c5892a2a2d34e3a4039c
3
+ metadata.gz: cd70e2c82071482dcc338e1c8db424097e23a0fe5c8875960c47716903a05316
4
+ data.tar.gz: 249db61a4f2a706d67ce495535b169c934e0f85a257983827f43b93f1a186a26
5
5
  SHA512:
6
- metadata.gz: e27143dc3445a8d74a4fa9a7f8b42d98789e434a05c590b9ecf03169b71a8b51892d80b9bf7a7b75a7f5806794a647ea7d50b64c5e87d461de1e501216b91d5f
7
- data.tar.gz: 877f0be683c2f5829f2f6a19156e0cbb5e1b30fe84f1a50a63626f148da0745648a4a08904acfe9ab574842b973a607aa791ab3176a86567667ce6b3161e3400
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: 12px 0;
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
- sourcecode|formula|quote|references|annex|appendix|title|
51
- name|note|thead|tbody|tfoot|th|td|form|requirement|
52
- recommendation|permission|imagemap|svgmap|preferred|
53
- admitted|related|deprecates|letter-symbol|domain|
54
- graphical-symbol|expression|abbreviation-type|subject|
55
- pronunciation|grammar|term|terms|termnote|termexample|
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[^>]*>)\s+(<name[^>]*>[^<]+</name>)\s+}, "\\1\\2")
57
+ .gsub(%r{(<sourcecode[^<>]*>)\s+(<name[^<>]*>[^<]+</name>)\s+},
58
+ "\\1\\2")
59
59
  end
60
60
 
61
61
  def version