isodoc 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/isodoc.gemspec +4 -1
  3. data/lib/isodoc/base_style/blocks.scss +7 -0
  4. data/lib/isodoc/function/inline.rb +2 -0
  5. data/lib/isodoc/function/lists.rb +24 -9
  6. data/lib/isodoc/function/to_word_html.rb +1 -0
  7. data/lib/isodoc/function/utils.rb +17 -7
  8. data/lib/isodoc/gem_tasks.rb +19 -10
  9. data/lib/isodoc/i18n.rb +19 -0
  10. data/lib/isodoc/metadata.rb +2 -2
  11. data/lib/isodoc/presentation_function/inline.rb +11 -4
  12. data/lib/isodoc/presentation_function/xrefs.rb +22 -6
  13. data/lib/isodoc/presentation_xml_convert.rb +1 -0
  14. data/lib/isodoc/version.rb +1 -1
  15. data/lib/isodoc/word_function/body.rb +6 -3
  16. data/lib/isodoc/xref/xref_gen.rb +4 -4
  17. metadata +3 -50
  18. data/.github/workflows/rake.yml +0 -15
  19. data/.github/workflows/release.yml +0 -24
  20. data/.hound.yml +0 -5
  21. data/.oss-guides.rubocop.yml +0 -1077
  22. data/.rubocop.yml +0 -10
  23. data/Rakefile +0 -8
  24. data/bin/rspec +0 -17
  25. data/spec/assets/header.html +0 -7
  26. data/spec/assets/html.scss +0 -20
  27. data/spec/assets/html_override.css +0 -1
  28. data/spec/assets/htmlcover.html +0 -4
  29. data/spec/assets/htmlintro.html +0 -5
  30. data/spec/assets/i18n.yaml +0 -41
  31. data/spec/assets/iso.xml +0 -8
  32. data/spec/assets/odf.emf +0 -0
  33. data/spec/assets/odf.svg +0 -1
  34. data/spec/assets/odf1.svg +0 -4
  35. data/spec/assets/outputtest/a.xml +0 -66
  36. data/spec/assets/outputtest/iso.international-standard.xsl +0 -3011
  37. data/spec/assets/rice_image1 +0 -0
  38. data/spec/assets/rice_image1.png +0 -0
  39. data/spec/assets/scripts.html +0 -3
  40. data/spec/assets/scripts_override.html +0 -3
  41. data/spec/assets/std.css +0 -2
  42. data/spec/assets/word.css +0 -2
  43. data/spec/assets/word_override.css +0 -1
  44. data/spec/assets/wordcover.html +0 -3
  45. data/spec/assets/wordintro.html +0 -4
  46. data/spec/isodoc/blocks_spec.rb +0 -2934
  47. data/spec/isodoc/cleanup_spec.rb +0 -1056
  48. data/spec/isodoc/footnotes_spec.rb +0 -264
  49. data/spec/isodoc/form_spec.rb +0 -160
  50. data/spec/isodoc/i18n_spec.rb +0 -1201
  51. data/spec/isodoc/inline_spec.rb +0 -2301
  52. data/spec/isodoc/lists_spec.rb +0 -469
  53. data/spec/isodoc/metadata_spec.rb +0 -401
  54. data/spec/isodoc/postproc_spec.rb +0 -2938
  55. data/spec/isodoc/presentation_xml_spec.rb +0 -1476
  56. data/spec/isodoc/ref_spec.rb +0 -955
  57. data/spec/isodoc/section_spec.rb +0 -2123
  58. data/spec/isodoc/table_spec.rb +0 -588
  59. data/spec/isodoc/terms_spec.rb +0 -712
  60. data/spec/isodoc/utils_spec.rb +0 -57
  61. data/spec/isodoc/xref_numbering_spec.rb +0 -378
  62. data/spec/isodoc/xref_spec.rb +0 -1837
  63. data/spec/isodoc/xslfo_convert_spec.rb +0 -103
  64. data/spec/spec_helper.rb +0 -88
data/.rubocop.yml DELETED
@@ -1,10 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- inherit_from:
4
- - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
5
-
6
- # local repo-specific modifications
7
- # ...
8
-
9
- AllCops:
10
- TargetRubyVersion: 2.5
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
- require "isodoc/gem_tasks"
4
-
5
- IsoDoc::GemTasks.install
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/bin/rspec DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require "pathname"
10
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
11
- "../../Gemfile", Pathname.new(__FILE__).realpath
12
- )
13
-
14
- require "rubygems"
15
- require "bundler/setup"
16
-
17
- load Gem.bin_path("rspec-core", "rspec")
@@ -1,7 +0,0 @@
1
-
2
- /* an empty header */
3
-
4
- START DOC ID: {{ docnumber }}: END DOC ID
5
-
6
- FILENAME: {{ filename }}
7
-
@@ -1,20 +0,0 @@
1
-
2
- /* another empty stylesheet */
3
-
4
- p {
5
- font-family: $bodyfont;
6
- font-size: $normalfontsize;
7
- }
8
- code {
9
- font-family: $monospacefont;
10
- font-size: $monospacefontsize;
11
- }
12
- aside {
13
- font-size: $footnotefontsize;
14
- }
15
- h1 {
16
- font-family: $headerfont;
17
- }
18
- p.note {
19
- font-size: $smallerfontsize;
20
- }
@@ -1 +0,0 @@
1
- /* html-override */
@@ -1,4 +0,0 @@
1
-
2
- /* an empty html cover page */
3
-
4
-
@@ -1,5 +0,0 @@
1
-
2
- /* an empty html intro page */
3
-
4
- <ul id="toc-list"></ul>
5
-
@@ -1,41 +0,0 @@
1
- foreword: Antaŭparolo
2
- introduction: Enkonduko
3
- clause: klaŭzo
4
- table: tabelo
5
- source: SOURCE
6
- modified: modified
7
- scope: Amplekso
8
- symbols: Simboloj kai mallongigitaj terminoj
9
- annex: <strong>aldono</strong>
10
- normref: Normaj citaĵoj
11
- bibliography: Bibliografio
12
- inform_annex: informa
13
- all_parts: ĉiuj partoj
14
- norm_annex: normative
15
- figure: figur-etikedo duvorta
16
- example: Ekzempl-etikedo Duvorta
17
- note: NOTO
18
- locality: {
19
- table: Tabelo
20
- }
21
- doctype_dict: {
22
- brochure: broŝuro,
23
- conference proceedings: konferencaktoj
24
- }
25
- stage_dict: {
26
- published: publikigita
27
- }
28
- substage_dict: {
29
- withdrawn: fortirita
30
- }
31
- array:
32
- - elem1
33
- - elem2
34
- - {elem3: elem4, elem5: elem6}
35
- void:
36
- ordinal_keys: [number]
37
- SpelloutRules:
38
- sg: spellout-ordinal
39
- pl: spellout-ordinal
40
- edition_ordinal: "eldono %Spellout"
41
- edition: eldono
data/spec/assets/iso.xml DELETED
@@ -1,8 +0,0 @@
1
- <iso-standard xmlns="http://riboseinc.com/isoxml">
2
- <foreword>
3
- <note>
4
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
5
- </note>
6
- </foreword>
7
- </iso-standard>
8
-
data/spec/assets/odf.emf DELETED
Binary file
data/spec/assets/odf.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="#009" r="45" cx="50" cy="50"/><path d="M33,26H78A37,37,0,0,1,33,83V57H59V43H33Z" fill="#FFF"/></svg>
data/spec/assets/odf1.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
2
- <circle fill="#009" r="45" cx="50" cy="50"/>
3
- <path d="M33,26H78A37,37,0,0,1,33,83V57H59V43H33Z" fill="#FFF"/>
4
- </svg>
@@ -1,66 +0,0 @@
1
- <iso-standard xmlns="http://riboseinc.com/isoxml">
2
- <bibdata type="standard">
3
- <title language="en" format="text/plain" type="main">Introduction — Main Title — Title — Title Part</title>
4
- <title language="en" format="text/plain" type="title-intro">Introduction</title>
5
- <title language="en" format="text/plain" type="title-main">Main Title — Title</title>
6
- <title language="en" format="text/plain" type="title-part">Title Part</title>
7
- <title language="fr" format="text/plain" type="main">Introduction Française — Titre Principal — Part du Titre</title>
8
- <title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
9
- <title language="fr" format="text/plain" type="title-main">Titre Principal</title>
10
- <title language="fr" format="text/plain" type="title-part">Part du Titre</title>
11
- <contributor>
12
- <role type="author"/>
13
- <organization>
14
- <name>International Organization for Standardization</name>
15
- <abbreviation>ISO</abbreviation>
16
- </organization>
17
- </contributor>
18
- <contributor>
19
- <role type="publisher"/>
20
- <organization>
21
- <name>International Organization for Standardization</name>
22
- <abbreviation>ISO</abbreviation>
23
- </organization>
24
- </contributor>
25
-
26
- <language>en</language>
27
- <script>Latn</script>
28
- <status>
29
- <stage>60</stage>
30
- <substage>60</substage>
31
- </status>
32
- <copyright>
33
- <from>2019</from>
34
- <owner>
35
- <organization>
36
- <name>International Organization for Standardization</name>
37
- <abbreviation>ISO</abbreviation>
38
- </organization>
39
- </owner>
40
- </copyright>
41
- <ext>
42
- <doctype>article</doctype>
43
- <editorialgroup>
44
- <technical-committee/>
45
- <subcommittee/>
46
- <workgroup/>
47
- </editorialgroup>
48
- </ext>
49
- </bibdata>
50
- <sections>
51
- <clause id="_clause" inline-header="false" obligation="normative">
52
- <title>Clause</title>
53
- <example id="_714cb7d2-39a4-4f63-95c9-b3ea2c568af5"><name>Example 1 2 3</name><p id="_9ef890aa-95f3-4954-8dcc-8aa17e9c2e89">A B C</p>
54
- <p id="_2ba896de-f77c-4867-9d86-64629f1b0977">D E F</p>
55
- <ul id="_ab789804-7cff-475f-aa64-6a3303424e15">
56
- <li>
57
- <p id="_44bafb59-78cb-4887-a67a-b9c9fa82972b">A B</p>
58
- </li>
59
- <li>
60
- <p id="_e0194367-2541-42cd-b20c-6a59c462c6d5">C D</p>
61
- </li>
62
- </ul></example>
63
- </clause>
64
- </sections>
65
- </iso-standard>
66
-