metanorma-taste 1.0.9 → 1.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a3e9f97884e009d35840d3d18f05fdba70e00e188a61103a3ae7389adefde6c
4
- data.tar.gz: 4eb73ea8e02b601860f40be9feb1eb430d6f403fd6074cd074f498fc5ea0c146
3
+ metadata.gz: 66c6fca3398a09bd581387f5a36fccc1a04151b8f616ac8bce1a301c687a2447
4
+ data.tar.gz: 7d1147c97d3e40c7e9b26367216822877c509911b281e70cdf907972e7fe2586
5
5
  SHA512:
6
- metadata.gz: 66bfb74954c81cfff671623f411ebb653622a0dff14b2698ecb84afea01ed7d4fafc2c09def624c5a5f10dda0b239cc1657cb7b5387891d30644cd8f6c6a04d0
7
- data.tar.gz: 65d92ed5ebb3d5766fe7e16e35ac0807280c55b513447dc0f73a822d788999272047a0adb9f497642cf4bf4be50aafddefe3bec947068bb396a387eee17fb499
6
+ metadata.gz: '086f36349333fceefdb181e8095fb0f8f658dc6c54717f04e9ae80c1fd770045177fffd090a72769e69e42984da69cf477a5d2a2c0476d48a412c4024a87ffad'
7
+ data.tar.gz: 7156be9b7217c51494e65fc3e7607a6b043a78b345187879d61cf361ac4b44693bd550759f5c47596bb42a6eaac3f57122b381fb643d9092d3dbb037c4520c35
data/.rubocop.yml CHANGED
@@ -1,14 +1,22 @@
1
1
  # Auto-generated by Cimas: Do not edit it manually!
2
2
  # See https://github.com/metanorma/cimas
3
3
  inherit_from:
4
- - .rubocop_todo.yml
5
- - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
4
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
+
6
+ # Rubocop plugins enabled centrally so every metanorma-org gem picks them up
7
+ # on cimas sync — best practice belongs at the shared-template layer, not
8
+ # per-repo. Per ronaldtse feedback on metanorma/ci#332.
9
+ plugins:
10
+ - rubocop-rspec
11
+ - rubocop-performance
12
+ - rubocop-rake
6
13
 
7
14
  # local repo-specific modifications
8
15
  # ...
9
16
 
10
17
  AllCops:
11
- TargetRubyVersion: 3.1
12
-
13
- Lint/MissingSuper:
14
- AllowedParentClasses: [Liquid::Drop]
18
+ # 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
19
+ # Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
20
+ # this commit — 3.4 was above the org's stated minimum and would have
21
+ # applied Rubocop rules that fail-close on gems still targeting 3.3.
22
+ TargetRubyVersion: 3.3
data/Create-Taste.adoc CHANGED
@@ -172,27 +172,34 @@ doctypes:
172
172
 
173
173
  ===== 5.2 Stage
174
174
 
175
- A limited number of tastes (CSA, PDFA) also provide a dictionary of stage values. Unlike the doctype, this does not map to the base flavor,
176
- but gives the listing of stages applicable to the taste. The dictionary is formatted as for `metanorma-generic`: it gives a hash
177
- of stage names, mapping optionally to standard stage abbreviations. Each stage may optionally have a boolean value given for whether it
178
- is the `default` stage applied to documents (legal for only one stage), and whether it constitutes a `published` stage (may apply to more
179
- than one stage). So CSA has the following stage dictionary:
175
+ A limited number of tastes (for example, PDFA) also provide a list of stage values. Like the doctype, each stage is a struct: a `taste` value,
176
+ for the taste's label of the stage, and a `base` value, for the corresponding stage in the base flavor to be used in processing. A stage may
177
+ optionally give an `abbrev` (its abbreviation), and the boolean values `default` (whether it is the default stage applied to documents, legal
178
+ for only one stage) and `published` (whether it constitutes a published stage, which may apply to more than one stage). So a taste might
179
+ declare the following stages:
180
180
 
181
181
  [source,asciidoc]
182
182
  ----
183
183
  stages:
184
- proposal:
185
- working-draft:
186
- abbreviation: wd
187
- committee-draft:
188
- abbreviation: cd
189
- draft-standard:
190
- abbreviation: d
191
- final-draft:
192
- published:
184
+ - taste: proposal
185
+ base: proposal
186
+ - taste: working-draft
187
+ base: working-draft
188
+ abbrev: wd
189
+ - taste: committee-draft
190
+ base: committee-draft
191
+ abbrev: cd
192
+ - taste: draft-standard
193
+ base: draft
194
+ abbrev: d
195
+ - taste: final-draft
196
+ base: final-draft
197
+ - taste: published
198
+ base: published
193
199
  default: true
194
200
  published: true
195
- withdrawn:
201
+ - taste: withdrawn
202
+ base: withdrawn
196
203
  published: true
197
204
  ----
198
205
 
data/README.adoc CHANGED
@@ -189,6 +189,11 @@ currently available:
189
189
  |`iso`
190
190
  |International Organization of Legal Metrology specifications and standards with OIML branding and copyright
191
191
 
192
+ |`wmo`
193
+ |World Meteorological Organization
194
+ |`iho`
195
+ |World Meteorological Organization specifications (e.g. S-411) with WMO branding and copyright, built on the IHO document structure
196
+
192
197
 
193
198
  |===
194
199
 
@@ -286,7 +291,7 @@ doctypes: # Array of doctypes built over base flavour doctypes
286
291
  stages: # Array of stages built over base flavour stages
287
292
  - taste: string # Taste-specific machine-readable stage name
288
293
  base: string # Base Metanorma flavor machine-readable stage name
289
- abbreviation: string # Abbreviation of stage
294
+ abbrev: string # Abbreviation of stage
290
295
  default: boolean # Whether the stage is the default stage to be applied to a document
291
296
  published: boolean # Whether the stage is to be considered published
292
297
  committees: # Hash of predefined editorial groups for the SDO
@@ -6285,6 +6285,12 @@
6285
6285
  <style name="{$key}-left"><xsl:value-of select="$value"/></style>
6286
6286
  <style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
6287
6287
  </xsl:if>
6288
+ <xsl:if test="$key = 'page-break-inside' and $value = 'avoid'">
6289
+ <style name="keep-together.within-page">always</style>
6290
+ </xsl:if>
6291
+ <xsl:if test="$key = 'page-break-after' and $value = 'always'">
6292
+ <style name="break-after">page</style>
6293
+ </xsl:if>
6288
6294
  </xsl:for-each>
6289
6295
  </xsl:variable>
6290
6296
  <xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
@@ -6328,6 +6334,11 @@
6328
6334
 
6329
6335
  <fo:block role="SKIP">
6330
6336
 
6337
+ <xsl:variable name="styles">
6338
+ <styles><xsl:call-template name="setTableStyles"/></styles>
6339
+ </xsl:variable>
6340
+ <xsl:copy-of select="xalan:nodeset($styles)/styles/@break-after"/>
6341
+
6331
6342
  <xsl:if test="$isGenerateTableIF = 'true'">
6332
6343
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
6333
6344
  </xsl:if>
@@ -8477,11 +8488,27 @@
8477
8488
  <!-- ====== -->
8478
8489
  <!-- ====== -->
8479
8490
 
8480
- <xsl:attribute-set name="quote-style">
8491
+ <xsl:attribute-set name="quote-container-style">
8481
8492
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
8482
8493
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
8483
- <xsl:attribute name="margin-top">12pt</xsl:attribute>
8494
+ <xsl:attribute name="role">SKIP</xsl:attribute>
8495
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
8484
8496
  <xsl:attribute name="margin-left">13mm</xsl:attribute>
8497
+ </xsl:attribute-set>
8498
+
8499
+ <xsl:template name="refine_quote-container-style">
8500
+ <xsl:if test="parent::mn:note">
8501
+ <xsl:if test="not(ancestor::mn:table)">
8502
+ <xsl:attribute name="margin-left">5mm</xsl:attribute>
8503
+ </xsl:if>
8504
+ </xsl:if>
8505
+ </xsl:template>
8506
+
8507
+ <xsl:attribute-set name="quote-style">
8508
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
8509
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
8510
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
8511
+
8485
8512
  </xsl:attribute-set> <!-- quote-style -->
8486
8513
 
8487
8514
  <xsl:template name="refine_quote-style">
@@ -8489,7 +8516,8 @@
8489
8516
 
8490
8517
  <xsl:attribute-set name="quote-source-style">
8491
8518
  <xsl:attribute name="text-align">right</xsl:attribute>
8492
- <xsl:attribute name="margin-right">25mm</xsl:attribute>
8519
+ <xsl:attribute name="margin-right">-12mm</xsl:attribute>
8520
+ <xsl:attribute name="margin-right">13mm</xsl:attribute>
8493
8521
  </xsl:attribute-set> <!-- quote-source-style -->
8494
8522
 
8495
8523
  <xsl:template name="refine_quote-source-style">
@@ -8512,12 +8540,9 @@
8512
8540
 
8513
8541
  <xsl:call-template name="setBlockSpanAll"/>
8514
8542
 
8515
- <xsl:if test="parent::mn:note">
8516
- <xsl:if test="not(ancestor::mn:table)">
8517
- <xsl:attribute name="margin-left">5mm</xsl:attribute>
8518
- </xsl:if>
8519
- </xsl:if>
8520
- <fo:block-container margin-left="0mm" role="SKIP">
8543
+ <fo:block-container xsl:use-attribute-sets="quote-container-style">
8544
+ <xsl:call-template name="refine_quote-container-style"/>
8545
+
8521
8546
  <fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
8522
8547
 
8523
8548
  <xsl:call-template name="refine_quote-style"/>
@@ -8529,14 +8554,16 @@
8529
8554
  </fo:block-container>
8530
8555
  </fo:block-container>
8531
8556
  <xsl:if test="mn:author or mn:fmt-source or mn:attribution">
8532
- <fo:block xsl:use-attribute-sets="quote-source-style">
8533
- <xsl:call-template name="refine_quote-source-style"/>
8534
- <!-- — ISO, ISO 7301:2011, Clause 1 -->
8535
- <xsl:apply-templates select="mn:author"/>
8536
- <xsl:apply-templates select="mn:fmt-source"/>
8537
- <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
8538
- <xsl:apply-templates select="mn:attribution/mn:p/node()"/>
8539
- </fo:block>
8557
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
8558
+ <fo:block xsl:use-attribute-sets="quote-source-style">
8559
+ <xsl:call-template name="refine_quote-source-style"/>
8560
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
8561
+ <xsl:apply-templates select="mn:author"/>
8562
+ <xsl:apply-templates select="mn:fmt-source"/>
8563
+ <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
8564
+ <xsl:apply-templates select="mn:attribution/mn:p/node()"/>
8565
+ </fo:block>
8566
+ </fo:block-container>
8540
8567
  </xsl:if>
8541
8568
 
8542
8569
  </fo:block-container>
@@ -13626,6 +13653,10 @@
13626
13653
  <fo:block break-after="page"/>
13627
13654
  </xsl:template>
13628
13655
 
13656
+ <xsl:template match="mn:pagebreak[ancestor::mn:table]" priority="2">
13657
+ <fo:block break-after="page"/>
13658
+ </xsl:template>
13659
+
13629
13660
  <xsl:variable name="font_main_root_style">
13630
13661
  <root-style xsl:use-attribute-sets="root-style">
13631
13662
  </root-style>
@@ -15,18 +15,20 @@ base-override:
15
15
  publisher: PDF Association
16
16
  publisher_abbr: PDF Association
17
17
  presentation-metadata-color-secondary: '#d03f4e' # PDFa logo red - good contrast for WCAG Level AA
18
- presentation-metadata-backcover-text: pdfa.org
19
- body-font: "'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif"
20
- header-font: "'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif"
18
+ presentation-metadata-backcover-text: https://pdfa.org
19
+ body-font: "'Source Sans 3', 'Helvetica Neue', Helvetica, sans-serif"
20
+ header-font: "'Source Sans 3', 'Helvetica Neue', Helvetica, sans-serif"
21
+ monospace-font: "'Noto Sans Mono', Courier, monospace"
21
22
  fonts: Source Sans 3;Source Sans 3 SemiBold;Source Sans Pro
22
23
  output-extensions: xml,html,pdf
23
24
  toclevels-html: 6
24
- docidentifier: '{% assign version = edition | split: "." %}{{ doctype_abbr }} {{ docnumeric }}{% if docyear %}:{{ docyear }}{% endif %} {% if edition %}({{ edition }}{% if version.size == 2 %}.0{% endif %}{% if version.size == 1 %}.0.0{% endif %}){% endif %} {% if stageabbr %}({{ stageabbr }}){% endif %}'
25
+ docidentifier: '{{ doctype_abbr }}-{{ docnumeric | prepend: "000" | slice: -3,3 }} {% if draft %}v{{ draft }}{% endif %} {% if edition %}ed. {{ edition }}{% endif %}'
25
26
  doctypes:
26
27
  - taste: specification # Specification # The name goes into i18n.yaml
27
28
  base: standard
29
+ abbrev: SPEC
28
30
  override-attributes:
29
- - presentation-metadata-color-secondary: '#d03f4e' # PDFa logo red - good contrast for WCAG Level AA
31
+ - presentation-metadata-color-secondary: '#4891af' # PDFa logo blue - insufficient contrast for WCAG Level AA
30
32
  - taste: application-note # Application Note
31
33
  base: report
32
34
  abbrev: AN
@@ -45,12 +47,11 @@ doctypes:
45
47
  stages:
46
48
  - taste: draft
47
49
  base: draft
48
- abbreviation: D
50
+ abbrev: DRAFT
49
51
  - taste: release-candidate
50
52
  base: draft
51
- abbreviation: RC
53
+ abbrev: RC
52
54
  - taste: published
53
55
  base: published
54
56
  default: true
55
57
  published: true
56
-
@@ -2,24 +2,18 @@
2
2
 
3
3
  // This is authorized by the PDF Association.
4
4
 
5
- === Copyright notice
5
+ // Avoid heading tag
6
+ === {blank}
6
7
 
7
8
  Copyright (c) {{ docyear }} PDF Association
8
9
 
9
10
  This work is licensed under the Creative Commons Attribution 4.0 International
10
- License.
11
-
12
- To view a copy of this license, visit
11
+ License. To view a copy of this license, visit
13
12
  http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative
14
13
  Commons, PO Box 1866, Mountain View, CA 94042, USA.
15
14
 
16
- PDF Association Inc. +
17
- {blank} +
18
15
  E-mail: copyright@pdfa.org +
19
- {blank} +
20
- Web: https://www.pdfa.org +
21
- {blank} +
22
- {blank}
16
+ Web: https://pdfa.org
23
17
 
24
18
  Vendors own their respective copyrights and trademarks wherever they are
25
19
  mentioned. Attention is drawn to the possibility that some of the elements of
@@ -43,7 +37,3 @@ any of the mentioned information, services, products, or providers.
43
37
  === {blank}
44
38
 
45
39
 
46
- // [align=center]
47
- // **PDF Association**:
48
-
49
- // (c) PDF Association {{ docyear }} - All rights reserved
@@ -1,19 +1,46 @@
1
1
  <div id='toggle'> <span>•</span> </div>
2
2
 
3
- <div class="coverpage-container">
3
+ <div class="coverpage-container" style="padding-left: 22px"> <!-- padding-left required to avoid submarining left edge text below "toggle" div -->
4
4
 
5
- <div class="logo">
6
- <img src="{{ copublisher_logos[0] }}" alt="PDF Association logo"/>
7
- </div>
5
+ <div class="logo">
6
+ <img src="{{ copublisher_logos[0] }}" alt="PDF Association logo"/>
7
+ </div>
8
8
 
9
- <div>
10
- <p class="doctitle-en">{{ doctitle }}</p>
11
- </div>
9
+ <div>
10
+ <p class="doctitle-en">{{ doctitle }}</p>
11
+ </div>
12
12
 
13
- <div class="docidentifier">
14
- <p><b>
15
- {{doctype_display}}: {{docnumber}}
16
- </b></p>
13
+ <div style="display: none;">
14
+ <!-- p>document.docid.id = {{ document.docid.id }}</p -->
15
+ <!-- p>document.docstatus.stage = {{ document.docstatus.stage }}</p -->
16
+ <!-- https://www.metanorma.org/develop/topics/metadata-and-boilerplate/#default-metadata -->
17
+ <p>doctype = {{ doctype }}</p>
18
+ <p>doctype_display = {{ doctype_display }}</p>
19
+ <p>doctype_abbr = {{ doctype_abbr }}</p>
20
+ <p>docidentifier = {{ docidentifier }}</p>
21
+ <p>docnumber = {{ docnumber }}</p>
22
+ <p>docnumeric = {{ docnumeric }}</p>
23
+ <p>docyear = {{ docyear }}</p>
24
+ <p>edition = {{ edition }}</p>
25
+ <p>edition_display = {{ edition_display }}</p>
26
+ <p>version = {{ version }}</p>
27
+ <p>version_display = {{ version_display }}</p>
28
+ <p>iteration = {{ iteration }}</p>
29
+ <p>draft = {{ draft }}</p>
30
+ <p>status = {{ status }}</p>
31
+ <p>stage = {{ stage }}</p>
32
+ <p>stage_display = {{ stage_display }}</p>
33
+ <p>stage_abbr = {{ stage_abbr }}</p>
34
+ <p>stageabbr = {{ stageabbr }}</p>
35
+ <p>statusabbr = {{ statusabbr }}</p>
36
+ <!-- p>doctype_abbreviated = {{ doctype_abbreviated }}</p -->
37
+ <!-- p>document.docstatus.stage.abbreviation = {{ document.docstatus.stage.abbreviation }}</p -->
17
38
  </div>
18
39
 
40
+ <div class="docidentifier">
41
+ <p><b>
42
+ {{doctype_display}} : {{ docnumber }} {%if stage_display %} - <span style="color:red">{{stage_display}}</span>{% endif %}
43
+ </b></p>
44
+ </div>
45
+ <hr/>
19
46
  </div>
@@ -2,26 +2,83 @@
2
2
  --ribose-primary-color: #d03f4e; /* PDFa logo red. Required for WCAG Level AA colour contrast */
3
3
  }
4
4
 
5
- .logo {
6
- text-align: center;
5
+ a {
6
+ text-decoration: underline; /* WCAG - all links must be clearly visible */
7
+ color: #d03f4e; /* PDFa logo red */
8
+ }
9
+
10
+ img { /* Make images more responsive */
11
+ max-width: 100%;
12
+ height: auto;
13
+ }
14
+
15
+ body {
16
+ line-height: 1.5; /* WCAG level AA requires minimum line height of 1.5 */
17
+ }
18
+
19
+ tt, td tt, p tt { /* override 0.8em formatting elsewhere */
20
+ font-size: 100%;
21
+ }
22
+
23
+ figure, pre, .pseudocode { /* incl. source code */
24
+ line-height: 1.5; /* WCAG level AA requires minimum line height of 1.5 */
25
+ margin-top: 0cm;
26
+ padding-top: 0.1em;
27
+ margin-bottom: 0cm;
28
+ padding-bottom: 0.1em;
29
+ }
30
+
31
+ table > caption {
32
+ font-weight: bold;
33
+ }
34
+
35
+ th {
36
+ color: white;
37
+ background-color: blue;
38
+ }
39
+
40
+ tbody tr:nth-child(even) {
41
+ background-color: LightGray; /* Light grey for even rows - not header */
42
+ }
43
+
44
+ /* Level 1: Square bullet, red */
45
+ ul > li::before {
46
+ content: "\25A0"; /* Black square */
47
+ color: #d03f4e; /* PDFa logo red */
48
+ font-size: 90%;
7
49
  }
8
50
 
9
- .docidentifier {
51
+ /* Level 2: Diamond bullet, blue */
52
+ ul ul > li::before {
53
+ content: "\25C6"; /* Diamond */
54
+ color: #489aaf; /* PDFa logo blue */
55
+ font-size: 100%;
56
+ }
57
+
58
+ /* Level 3: Circle bullet, green */
59
+ ul ul ul > li::before {
60
+ content: "\25CF"; /* Filled circle */
61
+ color: #8b9856; /* PDFa logo green */
62
+ font-size: 110%;
63
+ }
64
+
65
+ .logo { /* cover page logo */
10
66
  text-align: center;
11
- font-size: 18pt;
12
67
  }
13
68
 
14
- .doctitle-en {
15
- font-size: 36pt;
69
+ .docidentifier { /* cover page doc type, version and status */
70
+ line-height: 1.5; /* WCAG level AA requires minimum line height of 1.5 */
16
71
  text-align: center;
72
+ font-size: 20pt;
17
73
  }
18
74
 
19
- .coverpage-container {
20
- line-height: 1.5; /* WCAG Level AA recommends 1.5 line height as a minimum */
75
+ .doctitle-en { /* cover page primary title */
76
+ text-align: center;
77
+ font-size: 32pt;
21
78
  }
22
79
 
23
80
  #toc li a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
24
- text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
81
+ text-transform: none; /* PDF is case-sensitive! Never force nav bookmark text uppercase! */
25
82
  }
26
83
 
27
84
  h1, .h1 {
@@ -32,10 +89,154 @@ h1, .h1 {
32
89
  text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
33
90
  }
34
91
 
35
- a {
36
- text-decoration: underline; /* WCAG - all links must be clearly visible */
92
+ .example {
93
+ text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
94
+ font-size: 90%;
95
+ background-color: #D6FFFE; /* Very pale blue */
96
+ }
97
+
98
+ .sourcecode {
99
+ font-size: 90%;
100
+ }
101
+
102
+ figcaption .SourceTitle { /* Revert the title back from monospaced font */
103
+ font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, sans-serif;
37
104
  }
38
105
 
39
106
  span.TermNum {
40
- font-weight: 100;
107
+ font-weight: normal;
108
+ }
109
+
110
+ .requirement {
111
+ color: Red;
112
+ font-weight: bold;
113
+ text-transform: uppercase; /* Uppercase "SHALL" a-la RFCs */
114
+ }
115
+
116
+ .recommendation {
117
+ color: DarkOrange;
118
+ font-weight: bold;
119
+ text-transform: uppercase; /* Uppercase "SHOULD" a-la RFCs */
120
+ }
121
+
122
+ .pdf-keyword {
123
+ font-family: 'Courier New', Courier, monospace;
124
+ background-color: #e2e29f;
125
+ color: Blue;
126
+ font-weight: bold;
127
+ }
128
+
129
+ .pdf-operator {
130
+ font-family: 'Courier New', Courier, monospace;
131
+ background-color: #e2e29f;
132
+ color: Red;
133
+ font-weight: bold;
134
+ }
135
+
136
+ .pdf-version {
137
+ font-style: italic;
138
+ font-weight: lighter;
139
+ color: blue;
140
+ }
141
+ .pdf-version::before { content: "(PDF "; }
142
+ .pdf-version::after { content: ")"; }
143
+
144
+ /* Base admonition styling */
145
+ .Note, .note, .Admonition {
146
+ font-size: 86%;
147
+ margin-left: 8.5mm;
148
+ margin-right: 0.5mm;
149
+ margin-top: 6pt;
150
+ margin-bottom: 6pt;
151
+ padding: 1mm;
152
+ padding-left: 1.5mm;
153
+ padding-right: 1.5mm;
154
+ border-left: 4pt solid;
155
+ }
156
+
157
+ .note_label {
158
+ font-weight: bold; /* the "NOTE 1" text before the body of a note */
159
+ }
160
+
161
+ .AdmonitionTitle { /* titles of all admonitions */
162
+ text-align: left;
163
+ text-transform: none; /* PDF is case sensitive! */
164
+ font-weight: bold;
165
+ }
166
+
167
+ /* Tip admonition */
168
+ .AdmonitionTip {
169
+ background-color: #f5ebce; /* rgb(245,235,206) */
170
+ border-left-width: 4pt;
171
+ border-left-color: #d03f4e; /* rgb(208,63,78) - PDFa red */
172
+ }
173
+
174
+ .AdmonitionTip .AdmonitionTitle {
175
+ color: #d03f4e;
176
+ }
177
+
178
+ /* Warning admonition */
179
+ .AdmonitionWarning {
180
+ background-color: #fff5e6; /* rgb(255,245,230) */
181
+ border-left-width: 4pt;
182
+ border-left-color: #ff8c00; /* rgb(255,140,0) - dark orange */
183
+ }
184
+
185
+ .AdmonitionWarning .AdmonitionTitle {
186
+ color: #ff8c00;
187
+ }
188
+
189
+ /* Caution admonition */
190
+ .AdmonitionCaution {
191
+ background-color: #fffacd; /* rgb(255,250,205) */
192
+ border-left-width: 4pt;
193
+ border-left-color: #b8860b; /* rgb(184,134,11) - dark goldenrod */
194
+ }
195
+
196
+ .AdmonitionCaution .AdmonitionTitle {
197
+ color: #b8860b;
198
+ }
199
+
200
+ /* Important admonition */
201
+ .AdmonitionImportant {
202
+ background-color: #ffe6e6; /* rgb(255,230,230) */
203
+ border-left-width: 4pt;
204
+ border-left-color: #ff0000; /* rgb(255,0,0) - red */
205
+ }
206
+
207
+ .AdmonitionImportant .AdmonitionTitle {
208
+ color: #ff0000;
209
+ }
210
+
211
+ /* Safety-precaution admonition */
212
+ .AdmonitionSafetyPrecaution {
213
+ background-color: #e6f5e6; /* rgb(230,245,230) */
214
+ border-left-width: 4pt;
215
+ border-left-color: #008000; /* rgb(0,128,0) - green */
216
+ }
217
+
218
+ .AdmonitionSafetyPrecaution .AdmonitionTitle {
219
+ color: #008000;
220
+ }
221
+
222
+ /* Editorial admonition */
223
+ .AdmonitionEditorial {
224
+ background-color: #f0f0f0; /* rgb(240,240,240) */
225
+ border-left-width: 4pt;
226
+ border-left-color: #808080; /* rgb(128,128,128) - gray */
227
+ }
228
+
229
+ .AdmonitionEditorial .AdmonitionTitle {
230
+ color: #808080;
231
+ }
232
+
233
+ /* Box admonition */
234
+ .AdmonitionBox {
235
+ background-color: #9addda; /* rgb(154, 221, 218) */
236
+ border: 2pt solid black;
237
+ border-left: none;
238
+ }
239
+
240
+ .AdmonitionBox.AdmonitionTitle {
241
+ border: none;
41
242
  }
data/data/pdfa/i18n.yaml CHANGED
@@ -1,17 +1,44 @@
1
1
  no_place:
2
- no_date: Undated
2
+
3
+ no_date: (undated)
4
+
3
5
  doctype_dict:
4
6
  specification: Specification
5
7
  application-note: Application Note
6
8
  best-practice-guide: Best Practice Guide
7
9
  technical-note: Technical Note
10
+
8
11
  term_def_boilerplate: |
9
- PDF Association maintains terminology databases for use in describing the
12
+ The PDF Association maintains terminology databases for use in describing the
10
13
  Portable Document Format at the following addresses:
11
14
 
12
15
  * Glossary of general PDF terms: available at https://pdfa.org/glossary-of-pdf-terms/[]
13
16
  * Glossary of PDF accessibility terminology: available at https://pdfa.org/resource/glossary-of-accessibility-terminology-in-pdf/[]
17
+
14
18
  stage_dict:
15
19
  draft: Draft
16
20
  release-candidate: Release Candidate
17
21
  published: Published
22
+
23
+ admonition: # see https://github.com/metanorma/isodoc/issues/760
24
+ tip: Tip
25
+ danger: DANGER
26
+ warning: Warning
27
+ caution: Caution
28
+ important: IMPORTANT!
29
+ safety precautions: SECURITY!
30
+ editorial: Editor Note
31
+
32
+ abstract: Summary
33
+ foreword: Preface
34
+ clause: Section
35
+ formula: Equation
36
+ subclause: sub-section
37
+ section: Section
38
+ annex: Appendix
39
+ table_of_contents: Table of Contents
40
+ annex_subclause: sub-section
41
+ termsdef: Definitions
42
+ termsdefsymbolsabbrev: Definitions, acronyms and abbreviations
43
+ termsdefsymbols: Definitions, acronyms and abbreviations
44
+ termsdefabbrev: Definitions, acronyms and abbreviations