metanorma-iho 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/macos.yml +34 -0
- data/.github/workflows/ubuntu.yml +34 -0
- data/.github/workflows/windows.yml +36 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +11 -0
- data/LICENSE +25 -0
- data/README.adoc +26 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/rspec +18 -0
- data/bin/setup +8 -0
- data/lib/asciidoctor/iho/basicdoc.rng +1059 -0
- data/lib/asciidoctor/iho/biblio.rng +1207 -0
- data/lib/asciidoctor/iho/boilerplate.xml +30 -0
- data/lib/asciidoctor/iho/converter.rb +94 -0
- data/lib/asciidoctor/iho/iho.rng +144 -0
- data/lib/asciidoctor/iho/isodoc.rng +1061 -0
- data/lib/asciidoctor/iho/reqt.rng +171 -0
- data/lib/asciidoctor/iho.rb +4 -0
- data/lib/isodoc/iho/base_convert.rb +74 -0
- data/lib/isodoc/iho/html/header.html +241 -0
- data/lib/isodoc/iho/html/html_iho_intro.html +8 -0
- data/lib/isodoc/iho/html/html_iho_titlepage.html +89 -0
- data/lib/isodoc/iho/html/htmlstyle.scss +757 -0
- data/lib/isodoc/iho/html/iho.scss +760 -0
- data/lib/isodoc/iho/html/image001.png +0 -0
- data/lib/isodoc/iho/html/image002.png +0 -0
- data/lib/isodoc/iho/html/image003.png +0 -0
- data/lib/isodoc/iho/html/logo.png +0 -0
- data/lib/isodoc/iho/html/logo.svg +555 -0
- data/lib/isodoc/iho/html/scripts.html +68 -0
- data/lib/isodoc/iho/html/scripts.pdf.html +72 -0
- data/lib/isodoc/iho/html/word_iho_intro.html +24 -0
- data/lib/isodoc/iho/html/word_iho_titlepage.html +888 -0
- data/lib/isodoc/iho/html/wordstyle.scss +1156 -0
- data/lib/isodoc/iho/html_convert.rb +33 -0
- data/lib/isodoc/iho/metadata.rb +26 -0
- data/lib/isodoc/iho/pdf_convert.rb +31 -0
- data/lib/isodoc/iho/word_convert.rb +46 -0
- data/lib/metanorma/iho/processor.rb +37 -0
- data/lib/metanorma/iho/version.rb +5 -0
- data/lib/metanorma/iho.rb +32 -0
- data/lib/metanorma-iho.rb +12 -0
- data/metanorma-iho.gemspec +43 -0
- data/metanorma.yml +56 -0
- metadata +274 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 738f704b018d5de4e6a9026b2c744fcbbe49d6d628e380d9de6db7ff441a4f27
|
4
|
+
data.tar.gz: cc81f551e199b540e73cb73992766522f08586720607d104811dd2faec409859
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b0502441b025ae6a77b071d0050093979bb358faad45bf366915af804801952bd495debb389d61daa7510bf4dc706cf1e99a0b007a0583d8f698052632d8bc9b
|
7
|
+
data.tar.gz: 849d2c4052d65768f095a9e2c34be9d8e3f047027cfa10e97ff80ab6deeec5a79369f36f026f888a8795dfee25ee2ea7975089eb1e720f3290f608a81b5db41f
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: macos
|
4
|
+
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master ]
|
8
|
+
pull_request:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test-macos:
|
12
|
+
name: Test on Ruby ${{ matrix.ruby }} macOS
|
13
|
+
runs-on: macos-latest
|
14
|
+
strategy:
|
15
|
+
fail-fast: false
|
16
|
+
matrix:
|
17
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@master
|
20
|
+
- name: Use Ruby
|
21
|
+
uses: actions/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
architecture: 'x64'
|
25
|
+
- name: Update gems
|
26
|
+
run: |
|
27
|
+
sudo gem install bundler --force
|
28
|
+
bundle install --jobs 4 --retry 3
|
29
|
+
- name: Install PlantUML
|
30
|
+
run: |
|
31
|
+
brew install plantuml
|
32
|
+
- name: Run specs
|
33
|
+
run: |
|
34
|
+
bundle exec rake
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: ubuntu
|
4
|
+
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master ]
|
8
|
+
pull_request:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test-linux:
|
12
|
+
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
strategy:
|
15
|
+
fail-fast: false
|
16
|
+
matrix:
|
17
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@master
|
20
|
+
- name: Use Ruby
|
21
|
+
uses: actions/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
architecture: 'x64'
|
25
|
+
- name: Update gems
|
26
|
+
run: |
|
27
|
+
gem install bundler
|
28
|
+
bundle install --jobs 4 --retry 3
|
29
|
+
- name: Install PlantUML
|
30
|
+
run: |
|
31
|
+
sudo bash -c "curl -L https://github.com/riboseinc/plantuml-install/raw/master/ubuntu.sh | bash"
|
32
|
+
- name: Run specs
|
33
|
+
run: |
|
34
|
+
bundle exec rake
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: windows
|
4
|
+
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master ]
|
8
|
+
pull_request:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test-windows:
|
12
|
+
name: Test on Ruby ${{ matrix.ruby }} Windows
|
13
|
+
runs-on: windows-latest
|
14
|
+
strategy:
|
15
|
+
fail-fast: false
|
16
|
+
matrix:
|
17
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@master
|
20
|
+
- name: Use Ruby
|
21
|
+
uses: actions/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
architecture: 'x64'
|
25
|
+
- name: Update gems
|
26
|
+
shell: pwsh
|
27
|
+
run: |
|
28
|
+
gem install bundler
|
29
|
+
bundle config --local path vendor/bundle
|
30
|
+
bundle install --jobs 4 --retry 3
|
31
|
+
- name: Install PlantUML
|
32
|
+
run: |
|
33
|
+
cinst -y plantuml
|
34
|
+
- name: Run specs
|
35
|
+
run: |
|
36
|
+
bundle exec rake
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ronald.tse@ribose.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Encoding.default_external = Encoding::UTF_8
|
2
|
+
Encoding.default_internal = Encoding::UTF_8
|
3
|
+
|
4
|
+
source "https://rubygems.org"
|
5
|
+
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
6
|
+
|
7
|
+
gemspec
|
8
|
+
|
9
|
+
if File.exist? 'Gemfile.devel'
|
10
|
+
eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
|
11
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
BSD 2-Clause License
|
2
|
+
|
3
|
+
Copyright (c) 2018, Ribose
|
4
|
+
All rights reserved.
|
5
|
+
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
8
|
+
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
10
|
+
list of conditions and the following disclaimer.
|
11
|
+
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.adoc
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
= metanorma-iho: Metanorma for IHO
|
2
|
+
|
3
|
+
image:https://img.shields.io/gem/v/metanorma-iho.svg["Gem Version", link="https://rubygems.org/gems/metanorma-iho"]
|
4
|
+
image:https://codeclimate.com/github/metanorma/metanorma-iho/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-iho"]
|
5
|
+
image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-iho.svg["Pull Requests", link="https://github.com/metanorma/metanorma-iho/pulls"]
|
6
|
+
image:https://img.shields.io/github/commits-since/metanorma/metanorma-iho/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-iho/releases"]
|
7
|
+
|
8
|
+
== Functionality
|
9
|
+
|
10
|
+
This gem processes Metanorma input for generating IHO documents.
|
11
|
+
|
12
|
+
The implementation inherits from https://github.com/metanorma/metanorma-standoc.
|
13
|
+
|
14
|
+
== Usage and installation
|
15
|
+
|
16
|
+
See https://www.metanorma.com.
|
17
|
+
|
18
|
+
== Documentation
|
19
|
+
|
20
|
+
See https://www.metanorma.com/author/iho/[Write IHO documents with Metanorma].
|
21
|
+
|
22
|
+
== Examples
|
23
|
+
|
24
|
+
* Example documents are available at the https://github.com/metanorma/mn-samples-iho[mn-samples-iho] repository.
|
25
|
+
//* Document templates are available at the https://github.com/metanorma/mn-templates-iho[mn-templates-iho] repository.
|
26
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "asciidoctor/rsd"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/rspec
ADDED
@@ -0,0 +1,18 @@
|
|
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")
|
18
|
+
|