metanorma-mpfd 0.3.21 → 0.3.23

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +17 -0
  3. data/Gemfile +1 -8
  4. data/README.adoc +1 -96
  5. data/lib/asciidoctor/mpfd/biblio.rng +166 -567
  6. data/lib/asciidoctor/mpfd/converter.rb +84 -7
  7. data/lib/asciidoctor/mpfd/isodoc.rng +727 -763
  8. data/lib/asciidoctor/mpfd/isostandard.rng +1054 -0
  9. data/lib/asciidoctor/mpfd/mpfd.rng +145 -11
  10. data/lib/asciidoctor/mpfd/pdf.js +31 -0
  11. data/lib/asciidoctor/mpfd/section.rb +51 -23
  12. data/lib/asciidoctor/mpfd.rb +1 -0
  13. data/lib/isodoc/mpfd/html/header.html +6 -64
  14. data/lib/isodoc/mpfd/html/html_rsd_titlepage.html +4 -4
  15. data/lib/isodoc/mpfd/html/htmlstyle.scss +505 -200
  16. data/lib/isodoc/mpfd/html/rsd.scss +30 -149
  17. data/lib/isodoc/mpfd/html/scripts.html +27 -25
  18. data/lib/isodoc/mpfd/html/scripts.pdf.html +70 -0
  19. data/lib/isodoc/mpfd/html/word_rsd_titlepage.html +2 -2
  20. data/lib/isodoc/mpfd/html/wordstyle.scss +9 -61
  21. data/lib/isodoc/mpfd/html_convert.rb +258 -4
  22. data/lib/isodoc/mpfd/i18n-en.yaml +0 -1
  23. data/lib/isodoc/mpfd/metadata.rb +32 -8
  24. data/lib/isodoc/mpfd/{base_convert.rb → pdf_convert.rb} +137 -40
  25. data/lib/isodoc/mpfd/word_convert.rb +292 -4
  26. data/lib/metanorma/mpfd/processor.rb +4 -8
  27. data/lib/metanorma/mpfd/version.rb +1 -1
  28. data/lib/metanorma-mpfd.rb +1 -0
  29. data/metanorma-mpfd.gemspec +8 -7
  30. metadata +66 -33
  31. data/.github/workflows/macos.yml +0 -39
  32. data/.github/workflows/ubuntu.yml +0 -53
  33. data/.github/workflows/windows.yml +0 -41
  34. data/.hound.yml +0 -3
  35. data/.rubocop.yml +0 -10
  36. data/lib/asciidoctor/mpfd/basicdoc.rng +0 -1059
  37. data/lib/asciidoctor/mpfd/reqt.rng +0 -171
  38. data/lib/asciidoctor/mpfd/validate.rb +0 -30
  39. data/lib/isodoc/mpfd/i18n-zh-Hans.yaml +0 -2
@@ -14,22 +14,6 @@ p.Sourcecode, li.Sourcecode, div.Sourcecode, pre.Sourcecode, pre
14
14
  mso-fareast-font-family:Calibri;
15
15
  mso-bidi-font-family:"Courier New";
16
16
  mso-ansi-language:EN-GB;}
17
- p.pseudocode, li.pseudocode, div.pseudocode
18
- {mso-style-unhide:no;
19
- mso-style-qformat:yes;
20
- mso-style-parent:"";
21
- margin-top:6.0pt;
22
- margin-right:0cm;
23
- margin-bottom:6.0pt;
24
- margin-left:0cm;
25
- text-align:left;
26
- mso-pagination:widow-orphan;
27
- tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
28
- font-size:10.5pt;
29
- font-family:$bodyfont;
30
- mso-fareast-font-family:Calibri;
31
- mso-bidi-font-family:"Courier New";
32
- mso-ansi-language:EN-GB;}
33
17
  p.Biblio, li.Biblio, div.Biblio, p.NormRef, li.NormRef, div.NormRef
34
18
  {mso-style-unhide:no;
35
19
  mso-style-qformat:yes;
@@ -67,44 +51,6 @@ p.FigureTitle
67
51
  mso-fareast-font-family:$bodyfont;
68
52
  mso-bidi-font-family:$bodyfont;
69
53
  mso-ansi-language:EN-GB;}
70
- p.SourceTitle
71
- {mso-style-unhide:no;
72
- mso-style-qformat:yes;
73
- mso-style-parent:"";
74
- margin-top:0cm;
75
- margin-right:0cm;
76
- margin-bottom:6.0pt;
77
- margin-left:0cm;
78
- text-align:center;
79
- line-height:12.0pt;
80
- page-break-before:avoid;
81
- mso-pagination:widow-orphan;
82
- tab-stops:20.15pt;
83
- font-size:11.0pt;
84
- font-weight:bold;
85
- font-family:$bodyfont;
86
- mso-fareast-font-family:$bodyfont;
87
- mso-bidi-font-family:$bodyfont;
88
- mso-ansi-language:EN-GB;}
89
- p.AdmonitionTitle, p.RecommendationTitle
90
- {mso-style-unhide:no;
91
- mso-style-qformat:yes;
92
- mso-style-parent:"";
93
- margin-top:0cm;
94
- margin-right:0cm;
95
- margin-bottom:6.0pt;
96
- margin-left:0cm;
97
- text-align:center;
98
- line-height:12.0pt;
99
- page-break-after:avoid;
100
- mso-pagination:widow-orphan;
101
- tab-stops:20.15pt;
102
- font-size:11.0pt;
103
- font-weight:bold;
104
- font-family:$bodyfont;
105
- mso-fareast-font-family:$bodyfont;
106
- mso-bidi-font-family:$bodyfont;
107
- mso-ansi-language:EN-GB;}
108
54
  p.TableTitle
109
55
  {mso-style-unhide:no;
110
56
  mso-style-qformat:yes;
@@ -250,36 +196,13 @@ p.IntroTitle, li.IntroTitle, div.IntroTitle
250
196
  tab-stops:20.15pt;
251
197
  font-size:14.0pt;
252
198
  mso-bidi-font-size:11.0pt;
199
+ page-break-before:always;
253
200
  font-family:$headerfont;
254
201
  mso-fareast-font-family:$headerfont;
255
202
  mso-bidi-font-family:$headerfont;
256
203
  mso-ansi-language:EN-GB;
257
204
  font-weight:bold;
258
- page-break-before:always;
259
205
  mso-bidi-font-weight:normal;}
260
- p.TitlePageSubhead, li.TitlePageSubhead, div.TitlePageSubhead {
261
- mso-style-noshow:yes;
262
- mso-style-unhide:no;
263
- mso-style-parent:"Foreword Title";
264
- margin-top:0cm;
265
- margin-right:0cm;
266
- margin-bottom:15.5pt;
267
- margin-left:0cm;
268
- text-align:center;
269
- line-height:15.5pt;
270
- mso-pagination:widow-orphan;
271
- page-break-after:avoid;
272
- mso-hyphenate:none;
273
- tab-stops:20.15pt;
274
- font-size:14.0pt;
275
- mso-bidi-font-size:11.0pt;
276
- font-family:$headerfont;
277
- mso-fareast-font-family:$headerfont;
278
- mso-bidi-font-family:$headerfont;
279
- mso-ansi-language:EN-GB;
280
- font-weight:bold;
281
- mso-bidi-font-weight:normal;
282
- }
283
206
  p.Terms, li.Terms, div.Terms
284
207
  {mso-style-name:"Term\(s\)";
285
208
  mso-style-priority:8;
@@ -553,9 +476,6 @@ p.Formula, li.Formula, div.Formula
553
476
  mso-fareast-font-family:$bodyfont;
554
477
  mso-bidi-font-family:$bodyfont;
555
478
  mso-ansi-language:EN-GB;}
556
- @page {
557
- mso-facing-pages:yes;
558
- }
559
479
  @page WordSection1
560
480
  {size:595.3pt 841.9pt;
561
481
  margin:39.7pt 53.85pt 1.0cm 53.85pt;
@@ -578,26 +498,6 @@ div.WordSection1
578
498
  mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
579
499
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
580
500
  mso-paper-source:0;}
581
- @page WordSection2L
582
- {size:841.9pt 595.3pt;
583
- margin:39.7pt 53.85pt 1.0cm 53.85pt;
584
- mso-header-margin:35.45pt;
585
- mso-footer-margin:14.2pt;
586
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
587
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
588
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2l;
589
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2l;
590
- mso-paper-source:0;}
591
- @page WordSection2P
592
- {size:595.3pt 841.9pt;
593
- margin:39.7pt 53.85pt 1.0cm 53.85pt;
594
- mso-header-margin:35.45pt;
595
- mso-footer-margin:14.2pt;
596
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
597
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
598
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
599
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
600
- mso-paper-source:0;}
601
501
  div.WordSection2
602
502
  {page:WordSection2;}
603
503
  @page WordSection3
@@ -611,28 +511,12 @@ div.WordSection2
611
511
  mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
612
512
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
613
513
  mso-paper-source:0;}
614
- @page WordSection3L
615
- {size:841.9pt 595.3pt;
616
- margin:39.7pt 53.85pt 1.0cm 53.85pt;
617
- mso-header-margin:35.45pt;
618
- mso-footer-margin:14.2pt;
619
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
620
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
621
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3l;
622
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3l;
623
- mso-paper-source:0;}
624
- @page WordSection3P
625
- {size:595.3pt 841.9pt;
626
- margin:39.7pt 53.85pt 1.0cm 53.85pt;
627
- mso-header-margin:35.45pt;
628
- mso-footer-margin:14.2pt;
629
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
630
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
631
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
632
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
633
- mso-paper-source:0;}
634
514
  div.WordSection3
635
515
  {page:WordSection3;}
516
+ ol
517
+ {margin-bottom:0cm;}
518
+ ul
519
+ {margin-bottom:0cm;}
636
520
  table.MsoISOTable
637
521
  {mso-style-name:"Table ISO";
638
522
  mso-tstyle-rowband-size:0;
@@ -651,8 +535,12 @@ table.MsoISOTable
651
535
  mso-yfti-tbllook:480;
652
536
  mso-border-insideh:.75pt solid windowtext;
653
537
  mso-border-insidev:.75pt solid windowtext;
538
+ mso-table-anchor-vertical:paragraph;
539
+ mso-table-bspace:12.0pt;
654
540
  font-size:10.0pt;
655
541
  font-family:$bodyfont;}
542
+ table.MsoISOTable tr
543
+ {page-break-inside:avoid;}
656
544
  table.MsoISOTable th
657
545
  {border:solid windowtext 1pt;
658
546
  mso-border-alt:solid windowtext 1pt;
@@ -661,8 +549,6 @@ table.MsoISOTable td
661
549
  {border:solid windowtext 1pt;
662
550
  mso-border-alt:solid windowtext 1pt;
663
551
  padding:0cm 2.85pt 0cm 2.85pt;}
664
- table.MsoISOTable p
665
- {font-size:10.0pt; }
666
552
  table.MsoTableGrid
667
553
  {mso-style-name:"Table Grid";
668
554
  mso-tstyle-rowband-size:0;
@@ -677,12 +563,24 @@ table.MsoTableGrid
677
563
  mso-para-margin:0cm;
678
564
  mso-para-margin-bottom:.0001pt;
679
565
  mso-pagination:widow-orphan;
566
+ mso-table-anchor-vertical:paragraph;
567
+ mso-table-bspace:12.0pt;
680
568
  font-size:10.0pt;
681
569
  font-family:$bodyfont;}
570
+ td { page-break-inside:avoid; }
571
+ tr { page-break-after:avoid; }
572
+ span.stem
573
+ {font-family:"Cambria Math",serif;
574
+ mso-ascii-font-family:"Cambria Math";
575
+ font-style:
576
+ italic;}
682
577
  div.formula
683
578
  {tab-stops:right 487.45pt;}
684
579
  body
685
580
  {tab-interval:36.0pt;}
581
+ dt
582
+ {page-break-inside:avoid;
583
+ page-break-after:avoid}
686
584
  .coverpage_docnumber
687
585
  {text-align:center;
688
586
  font-size:14.0pt;
@@ -706,46 +604,29 @@ div.coverpage_warning
706
604
  {color:#485094;
707
605
  font-size:10.0pt;}
708
606
 
709
- a.TableFootnoteRef, span.TableFootnoteRef
607
+ a.TableFootnoteRef
710
608
  {mso-style-priority:99;
711
- mso-style-parent:"Footnote Reference";
712
609
  vertical-align:super;}
713
610
 
714
611
  aside {
715
612
  font-size:10.0pt;
716
613
  }
717
-
718
- .example-title {
719
- font-weight: bold;
720
- margin-left: -36.0pt;
721
- }
722
-
723
- p.example, li.example, div.example, td.example {
724
- margin-right: 0pt;
725
- margin-left: 0pt;
726
- }
727
-
728
614
  div.example {
729
- margin-right: 36.0pt;
730
- margin-left: 36.0pt;
731
- margin-top: 0cm;
732
- margin-bottom: 0cm;
615
+ margin-left:70.9pt;
616
+ text-indent:-70.9pt;
733
617
  }
734
-
735
- p.example, li.example, div.example, td.example {
618
+ p.example, li.example, div.example, td.example
619
+ { margin:0in;
620
+ margin-bottom:.0001pt;
736
621
  mso-pagination:none;
737
622
  font-size:10.0pt;
738
623
  font-family:$bodyfont;}
739
624
 
740
- td.example p.MsoListParagraph {
741
- font-size: 10.0pt;
625
+ table.example {
626
+ margin-bottom:12pt;
742
627
  }
743
628
 
744
- div.example p.MsoListParagraph {
745
- font-size: 10.0pt;
746
- }
747
-
748
- div.Note p.MsoListParagraph {
629
+ td.example p.MsoListParagraph {
749
630
  font-size: 10.0pt;
750
631
  }
751
632
 
@@ -1,8 +1,24 @@
1
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
- });
2
+ //TOC generation
3
+ $('#toc').toc({
4
+ 'selectors': 'h1,h2:not(.TermNum)', //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': true, //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
+
6
22
  </script>
7
23
 
8
24
  <script>
@@ -42,18 +58,14 @@ $('#toggle').on('click', function(){
42
58
  </script>
43
59
 
44
60
  <script>
45
- // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
46
- //
47
- // AnchorJS - v4.2.2 - 2020-04-20
48
- // https://www.bryanbraun.com/anchorjs/
49
- // Copyright (c) 2020 Bryan Braun; Licensed MIT
50
- //
51
- // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
52
- !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 f(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.base=A.hasOwnProperty("base")?A.base:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64,A.titleText=A.hasOwnProperty("titleText")?A.titleText:""}function p(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}this.options=A||{},this.elements=[],f(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var e,t,i,n,o,s,a,r,c,h,l,u,d=[];if(f(this.options),"touch"===(l=this.options.visible)&&(l=this.isTouchDevice()?"always":"hover"),0===(e=p(A=A||"h2, h3, h4, h5, h6")).length)return this;for(!function(){if(null!==document.head.querySelector("style.anchorjs"))return;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,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',e.sheet.cssRules.length)}(),t=document.querySelectorAll("[id]"),i=[].map.call(t,function(A){return A.id}),o=0;o<e.length;o++)if(this.hasAnchorJSLink(e[o]))d.push(o);else{if(e[o].hasAttribute("id"))n=e[o].getAttribute("id");else if(e[o].hasAttribute("data-anchor-id"))n=e[o].getAttribute("data-anchor-id");else{for(c=r=this.urlify(e[o].textContent),a=0;void 0!==s&&(c=r+"-"+a),a+=1,-1!==(s=i.indexOf(c)););s=void 0,i.push(c),e[o].setAttribute("id",c),n=c}(h=document.createElement("a")).className="anchorjs-link "+this.options.class,h.setAttribute("aria-label",this.options.ariaLabel),h.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(h.title=this.options.titleText),u=document.querySelector("base")?window.location.pathname+window.location.search:"",u=this.options.base||u,h.href=u+"#"+n,"always"===l&&(h.style.opacity="1"),""===this.options.icon&&(h.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(h.style.lineHeight="inherit")),"left"===this.options.placement?(h.style.position="absolute",h.style.marginLeft="-1em",h.style.paddingRight="0.5em",e[o].insertBefore(h,e[o].firstChild)):(h.style.paddingLeft="0.375em",e[o].appendChild(h))}for(o=0;o<d.length;o++)e.splice(d[o]-o,1);return this.elements=this.elements.concat(e),this},this.remove=function(A){for(var e,t,i=p(A),n=0;n<i.length;n++)(t=i[n].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(i[n]))&&this.elements.splice(e,1),i[n].removeChild(t));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){return this.options.truncate||f(this.options),A.trim().replace(/\'/gi,"").replace(/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\\n\t\b\v]/g,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&-1<(" "+A.firstChild.className+" ").indexOf(" anchorjs-link "),t=A.lastChild&&-1<(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ");return e||t||!1}}});
53
- // @license-end
54
- </script>
61
+ /**
62
+ * AnchorJS - v4.1.0 - 2017-09-20
63
+ * https://github.com/bryanbraun/anchorjs
64
+ * Copyright (c) 2017 Bryan Braun; Licensed MIT
65
+ */
66
+ !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,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//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>
67
+
55
68
  <script>
56
- /*
57
69
  $(document).ready(function() {
58
70
  $('[id^=toc]').each(function ()
59
71
  {
@@ -62,19 +74,9 @@ $('#toggle').on('click', function(){
62
74
  currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
63
75
  });
64
76
  });
65
- */
66
77
  anchors.options = {
67
78
  placement: 'left'
68
79
  };
69
80
  anchors.add('h1, h2, h3, h4');
70
81
  </script>
71
82
 
72
- <!--IE fix patch: start -->
73
- <script>
74
- if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > -1) {
75
- $(document).ready(function() {
76
- $('table', '.main-section').wrap('<div class="ms-table-wrap"></div>');
77
- });
78
- };
79
- </script>
80
- <!--IE fix patch: end -->
@@ -0,0 +1,70 @@
1
+ <script>
2
+ //TOC generation
3
+ $('#toc').toc({
4
+ 'selectors': 'h1,h2:not(.TermNum)', //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
+ $(document).ready(function() {
62
+ $('[id^=toc]').each(function ()
63
+ {
64
+ var currentToc = $(this);
65
+ var url = window.location.href;
66
+ currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
67
+ });
68
+ });
69
+ </script>
70
+
@@ -1,10 +1,10 @@
1
1
  {% if docnumber %}
2
2
  <p class="MsoNormal" align="right" style='text-align:right'><b style='mso-bidi-font-weight:
3
- normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumber }} {{ draftinfo }}</span></b><b
3
+ normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumber }}:{{ docyear }} {{ draftinfo }}</span></b><b
4
4
  style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'><o:p></o:p></span></b></p>
5
5
  {% endif %}
6
6
 
7
- <img src="{{ logo }}" width="50px">
7
+ <img src="mpfa-logo-no-text@4x.png" width="50px">
8
8
 
9
9
  <p class="MsoNormal" align="center" style='text-align:center;line-height:18.0pt;margin-bottom:0.0pt'><b
10
10
  style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:24.0pt'>{{ doctype }}</span>
@@ -158,17 +158,6 @@ p.MsoHeader, li.MsoHeader, div.MsoHeader
158
158
  mso-fareast-font-family:"Times New Roman";
159
159
  mso-ansi-language:EN-US;
160
160
  mso-fareast-language:EN-US;}
161
- p.MsoHeaderLandscape, li.MsoHeaderLandscape, div.MsoHeaderLandscape
162
- {mso-style-unhide:no;
163
- margin:0cm;
164
- margin-bottom:.0001pt;
165
- mso-pagination:widow-orphan;
166
- tab-stops:center 367.0pt right 734.0pt;
167
- font-size:10.5pt;
168
- font-family:$bodyfont;
169
- mso-fareast-font-family:"Times New Roman";
170
- mso-ansi-language:EN-US;
171
- mso-fareast-language:EN-US;}
172
161
  p.MsoFooter, li.MsoFooter, div.MsoFooter
173
162
  {mso-style-unhide:no;
174
163
  margin:0cm;
@@ -180,17 +169,6 @@ p.MsoFooter, li.MsoFooter, div.MsoFooter
180
169
  mso-fareast-font-family:"Times New Roman";
181
170
  mso-ansi-language:EN-US;
182
171
  mso-fareast-language:EN-US;}
183
- p.MsoFooterLandscape, li.MsoFooterLandscape, div.MsoFooterLandscape
184
- {mso-style-unhide:no;
185
- margin:0cm;
186
- margin-bottom:.0001pt;
187
- mso-pagination:widow-orphan;
188
- tab-stops:right 734.0pt;
189
- font-size:10.5pt;
190
- font-family:$bodyfont;
191
- mso-fareast-font-family:"Times New Roman";
192
- mso-ansi-language:EN-US;
193
- mso-fareast-language:EN-US;}
194
172
  span.MsoCommentReference
195
173
  {mso-style-noshow:yes;
196
174
  mso-style-unhide:no;
@@ -334,7 +312,7 @@ span.blackgraphtx
334
312
  .MsoChpDefault
335
313
  {mso-style-type:export-only;
336
314
  mso-default-props:yes;}
337
- div.figure, p.figure
315
+ div.figure
338
316
  {text-align: center;}
339
317
 
340
318
 
@@ -1097,44 +1075,6 @@ p.Tablebody, li.Tablebody, div.Tablebody
1097
1075
  margin-left:162.0pt;
1098
1076
  text-indent:-18.0pt;}
1099
1077
 
1100
- div.ListContLevel1
1101
- {mso-style-priority:34;
1102
- margin-left:18.0pt;
1103
- margin-right:0cm;}
1104
- div.ListContLevel2
1105
- {mso-style-priority:34;
1106
- margin-top:0cm;
1107
- margin-left:36.0pt;
1108
- margin-right:0cm;}
1109
- div.ListContLevel3
1110
- {mso-style-priority:34;
1111
- margin-left:54.0pt;
1112
- margin-right:0cm;}
1113
- div.ListContLevel4
1114
- {mso-style-priority:34;
1115
- margin-left:72.0pt;
1116
- margin-right:0cm;}
1117
- div.ListContLevel5
1118
- {mso-style-priority:34;
1119
- margin-left:90.0pt;
1120
- margin-right:0cm;}
1121
- div.ListContLevel6
1122
- {mso-style-priority:34;
1123
- margin-left:108.0pt;
1124
- margin-right:0cm;}
1125
- div.ListContLevel7
1126
- {mso-style-priority:34;
1127
- margin-left:126.0pt;
1128
- margin-right:0cm;}
1129
- div.ListContLevel8
1130
- {mso-style-priority:34;
1131
- margin-left:144.0pt;
1132
- margin-right:0cm;}
1133
- div.ListContLevel9
1134
- {mso-style-priority:34;
1135
- margin-left:162.0pt;
1136
- margin-right:0cm;}
1137
-
1138
1078
  table.MsoNormalTable
1139
1079
  {mso-style-name:"Table Normal";
1140
1080
  mso-tstyle-rowband-size:0;
@@ -1146,8 +1086,16 @@ table.MsoNormalTable
1146
1086
  mso-para-margin:0cm;
1147
1087
  mso-para-margin-bottom:.0001pt;
1148
1088
  mso-pagination:widow-orphan;
1089
+ mso-table-anchor-vertical:paragraph;
1090
+ mso-table-bspace:12.0pt;
1149
1091
  font-size:10.0pt;
1150
1092
  font-family:$bodyfont;}
1093
+ br.section
1094
+ {page-break-before:always;
1095
+ mso-break-type:section-break;}
1096
+ br.pagebreak
1097
+ {page-break-before:always;
1098
+ mso-special-character:line-break;}
1151
1099
  ol
1152
1100
  {margin-bottom:0cm;
1153
1101
  margin-left:18pt;}