metanorma-iho 0.0.1
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.
- 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
@@ -0,0 +1,68 @@
|
|
1
|
+
<script>
|
2
|
+
$("#toc").on('click', 'li', function(e) {
|
3
|
+
$(this).parent().find('li.toc-active').removeClass('toc-active');
|
4
|
+
$(this).addClass('toc-active');
|
5
|
+
});
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
//TOC toggle animation
|
10
|
+
$('#toggle').on('click', function(){
|
11
|
+
if( $('nav').is(':visible') ) {
|
12
|
+
$('nav').animate({ 'left': '-353px' }, 'slow', function(){
|
13
|
+
$('nav').hide();
|
14
|
+
});
|
15
|
+
$('.container').animate({ 'padding-left': '31px' }, 'slow');
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
$('nav').show();
|
19
|
+
$('nav').animate({ 'left': '0px' }, 'slow');
|
20
|
+
$('.container').animate({ 'padding-left': '360px' }, 'slow');
|
21
|
+
}
|
22
|
+
});
|
23
|
+
</script>
|
24
|
+
|
25
|
+
<script>
|
26
|
+
// Scroll to top button
|
27
|
+
window.onscroll = function() {scrollFunction()};
|
28
|
+
|
29
|
+
function scrollFunction() {
|
30
|
+
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
31
|
+
document.getElementById("myBtn").style.display = "block";
|
32
|
+
} else {
|
33
|
+
document.getElementById("myBtn").style.display = "none";
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// When the user clicks on the button, scroll to the top of the document
|
38
|
+
function topFunction() {
|
39
|
+
document.body.scrollTop = 0;
|
40
|
+
document.documentElement.scrollTop = 0;
|
41
|
+
}
|
42
|
+
</script>
|
43
|
+
|
44
|
+
<script>
|
45
|
+
/**
|
46
|
+
* AnchorJS - v4.1.0 - 2017-09-20
|
47
|
+
* https://github.com/bryanbraun/anchorjs
|
48
|
+
* Copyright (c) 2017 Bryan Braun; Licensed MIT
|
49
|
+
*/
|
50
|
+
!function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";return function(A){function e(A){A.icon=A.hasOwnProperty("icon")?A.icon:"",A.visible=A.hasOwnProperty("visible")?A.visible:"hover",A.placement=A.hasOwnProperty("placement")?A.placement:"right",A.ariaLabel=A.hasOwnProperty("ariaLabel")?A.ariaLabel:"Anchor",A.class=A.hasOwnProperty("class")?A.class:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64}function t(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}function i(){if(null===document.head.querySelector("style.anchorjs")){var A,e=document.createElement("style");e.className="anchorjs",e.appendChild(document.createTextNode("")),void 0===(A=document.head.querySelector('[rel="stylesheet"], style'))?document.head.appendChild(e):document.head.insertBefore(e,A),e.sheet.insertRule(" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",e.sheet.cssRules.length),e.sheet.insertRule(" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",e.sheet.cssRules.length),e.sheet.insertRule(" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }",e.sheet.cssRules.length),e.sheet.insertRule(' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFw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YW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',e.sheet.cssRules.length)}}this.options=A||{},this.elements=[],e(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var n,o,s,a,r,c,h,l,u,d,f,p=[];if(e(this.options),"touch"===(f=this.options.visible)&&(f=this.isTouchDevice()?"always":"hover"),A||(A="h2, h3, h4, h5, h6"),0===(n=t(A)).length)return this;for(i(),o=document.querySelectorAll("[id]"),s=[].map.call(o,function(A){return A.id}),r=0;r<n.length;r++)if(this.hasAnchorJSLink(n[r]))p.push(r);else{if(n[r].hasAttribute("id"))a=n[r].getAttribute("id");else if(n[r].hasAttribute("data-anchor-id"))a=n[r].getAttribute("data-anchor-id");else{u=l=this.urlify(n[r].textContent),h=0;do{void 0!==c&&(u=l+"-"+h),c=s.indexOf(u),h+=1}while(-1!==c);c=void 0,s.push(u),n[r].setAttribute("id",u),a=u}a.replace(/-/g," "),(d=document.createElement("a")).className="anchorjs-link "+this.options.class,d.href="#"+a,d.setAttribute("aria-label",this.options.ariaLabel),d.setAttribute("data-anchorjs-icon",this.options.icon),"always"===f&&(d.style.opacity="1"),""===this.options.icon&&(d.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(d.style.lineHeight="inherit")),"left"===this.options.placement?(d.style.position="absolute",d.style.marginLeft="-1em",d.style.paddingRight="0.5em",n[r].insertBefore(d,n[r].firstChild)):(d.style.paddingLeft="0.375em",n[r].appendChild(d))}for(r=0;r<p.length;r++)n.splice(p[r]-r,1);return this.elements=this.elements.concat(n),this},this.remove=function(A){for(var e,i,n=t(A),o=0;o<n.length;o++)(i=n[o].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(n[o]))&&this.elements.splice(e,1),n[o].removeChild(i));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){var t=/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\]/g;return this.options.truncate||e(this.options),A.trim().replace(/\'/gi,"").replace(t,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&(" "+A.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,t=A.lastChild&&(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return e||t||!1}}}); </script>
|
51
|
+
|
52
|
+
<script>
|
53
|
+
/*
|
54
|
+
$(document).ready(function() {
|
55
|
+
$('[id^=toc]').each(function ()
|
56
|
+
{
|
57
|
+
var currentToc = $(this);
|
58
|
+
var url = window.location.href;
|
59
|
+
currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
|
60
|
+
});
|
61
|
+
});
|
62
|
+
*/
|
63
|
+
anchors.options = {
|
64
|
+
placement: 'left'
|
65
|
+
};
|
66
|
+
anchors.add('h1, h2, h3, h4');
|
67
|
+
</script>
|
68
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<script>
|
2
|
+
//TOC generation
|
3
|
+
$('#toc').toc({
|
4
|
+
'selectors': toclevel(), //elements to use as headings
|
5
|
+
'container': 'main', //element to find all selectors in
|
6
|
+
'smoothScrolling': true, //enable or disable smooth scrolling on click
|
7
|
+
'prefix': 'toc', //prefix for anchor tags and class names
|
8
|
+
'onHighlight': function(el) {}, //called when a new section is highlighted
|
9
|
+
'highlightOnScroll': false, //add class to heading that is currently in focus
|
10
|
+
'highlightOffset': 100, //offset to trigger the next headline
|
11
|
+
'anchorName': function(i, heading, prefix) { //custom function for anchor name
|
12
|
+
return prefix+i;
|
13
|
+
},
|
14
|
+
'headerText': function(i, heading, $heading) { //custom function building the header-item text
|
15
|
+
return $heading.text();
|
16
|
+
},
|
17
|
+
'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
|
18
|
+
return $heading[0].tagName.toLowerCase();
|
19
|
+
}
|
20
|
+
});
|
21
|
+
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<script>
|
25
|
+
//TOC toggle animation
|
26
|
+
$('#toggle').on('click', function(){
|
27
|
+
if( $('nav').is(':visible') ) {
|
28
|
+
$('nav').animate({ 'left': '-353px' }, 'slow', function(){
|
29
|
+
$('nav').hide();
|
30
|
+
});
|
31
|
+
$('.container').animate({ 'padding-left': '31px' }, 'slow');
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
$('nav').show();
|
35
|
+
$('nav').animate({ 'left': '0px' }, 'slow');
|
36
|
+
$('.container').animate({ 'padding-left': '360px' }, 'slow');
|
37
|
+
}
|
38
|
+
});
|
39
|
+
</script>
|
40
|
+
|
41
|
+
<script>
|
42
|
+
// Scroll to top button
|
43
|
+
window.onscroll = function() {scrollFunction()};
|
44
|
+
|
45
|
+
function scrollFunction() {
|
46
|
+
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
47
|
+
document.getElementById("myBtn").style.display = "block";
|
48
|
+
} else {
|
49
|
+
document.getElementById("myBtn").style.display = "none";
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// When the user clicks on the button, scroll to the top of the document
|
54
|
+
function topFunction() {
|
55
|
+
document.body.scrollTop = 0;
|
56
|
+
document.documentElement.scrollTop = 0;
|
57
|
+
}
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<script>
|
61
|
+
/*
|
62
|
+
$(document).ready(function() {
|
63
|
+
$('[id^=toc]').each(function ()
|
64
|
+
{
|
65
|
+
var currentToc = $(this);
|
66
|
+
var url = window.location.href;
|
67
|
+
currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
|
68
|
+
});
|
69
|
+
});
|
70
|
+
*/
|
71
|
+
</script>
|
72
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
<p class="MsoNormal"/>
|
3
|
+
|
4
|
+
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0"
|
5
|
+
style='margin-left:26.7pt;border-collapse:collapse;border:none;mso-border-alt:
|
6
|
+
solid black .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
|
7
|
+
mso-border-insideh:.5pt solid black;mso-border-insidev:.5pt solid black'>
|
8
|
+
|
9
|
+
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
|
10
|
+
<td width="581" valign="top" style='width:435.4pt;border:solid black 1.0pt;
|
11
|
+
border-bottom:solid white 1.0pt;mso-border-alt:solid black .5pt;mso-border-bottom-alt:
|
12
|
+
solid white .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
13
|
+
<div class="zzCopyright">
|
14
|
+
<div id="boilerplate-copyright-destination" style='color:windowtext'/>
|
15
|
+
<div id="boilerplate-license-destination" style='color:windowtext'/>
|
16
|
+
</div>
|
17
|
+
</td>
|
18
|
+
</tr>
|
19
|
+
</table>
|
20
|
+
|
21
|
+
<p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">Contents</span></p>
|
22
|
+
|
23
|
+
WORDTOC
|
24
|
+
|