metanorma-taste 0.0.2 → 0.0.4
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 +4 -4
- data/README.adoc +24 -1
- data/data/elf/config.yaml +6 -0
- data/data/elf/i18n.yaml +2 -1
- data/data/elf/logo.svg +1 -0
- data/data/enosema/config.yaml +17 -0
- data/data/enosema/copyright.adoc +26 -0
- data/data/enosema/i18n.yaml +3 -0
- data/data/enosema/logo.svg +1 -0
- data/data/icc/config.yaml +18 -0
- data/data/icc/i18n.yaml +6 -1
- data/data/icc/icc.png +0 -0
- data/lib/metanorma/taste/base.rb +60 -13
- data/lib/metanorma/taste/version.rb +1 -1
- data/lib/metanorma/taste_register.rb +2 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb20ec7e6a17ff430590c88535fdb0e51689bfa6e5e42a5afbf41f64c7afafa7
|
4
|
+
data.tar.gz: deb669ae16cd287d3f82efc86fd3a55499ed121824ed144d7b8e54f0a367a1a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dfd2cf42b04c22083bf4dd472c6ab708c5d8db7b7192d43d07f2757d6404c47b05ae622a64dfe028689666976558a883f3c91ee28c7e4f57a4b4f6451aa3675
|
7
|
+
data.tar.gz: 1e13c58cae481e3ebf94341c76948437441e5d41a35aa32876922d9429c925b32287c243fb8b489b3c287e00e365ca53eabc50764b42e3816dc3e21cafad4d9a
|
data/README.adoc
CHANGED
@@ -146,6 +146,16 @@ currently available:
|
|
146
146
|
|`iso`
|
147
147
|
|ICC specifications and standards with ICC branding and copyright
|
148
148
|
|
149
|
+
|`elf`
|
150
|
+
|Express Language Foundation
|
151
|
+
|`iso`
|
152
|
+
|ELF specifications and standards with ELF branding and copyright
|
153
|
+
|
154
|
+
|`enosema`
|
155
|
+
|Enosema Foundation
|
156
|
+
|`iso`
|
157
|
+
|Enosema specifications and standards with Enosema branding and copyright
|
158
|
+
|
149
159
|
|===
|
150
160
|
|
151
161
|
|
@@ -201,10 +211,15 @@ base-flavor: string # Base Metanorma flavor to extend (e.g., "iso")
|
|
201
211
|
copyright-notice: string # Path to boilerplate file (e.g., "copyright.adoc"), which includes
|
202
212
|
# copyright, license, legal, and feedback notices
|
203
213
|
i18n-dictionary: string # Path to internationalization dictionary (e.g., "i18n.yaml")
|
214
|
+
publisher-logo: string # Path to publisher logo (e.g., "icc.png")
|
204
215
|
base-override: # Hash of document attributes to override from base flavor
|
205
216
|
publisher: string # Publisher name override
|
206
217
|
publisher_abbr: string # Publisher abbreviation
|
207
218
|
presentation-metadata-*: # Template style attributes for presentation
|
219
|
+
doctypes: # Array of doctypes built over base flavour doctypes
|
220
|
+
- taste: # taste-specific machine-readable doctype name
|
221
|
+
base: # Base Metanorma flavor corresponding machine-readable doctype name
|
222
|
+
override-attributes: # Hash of document attributes to override from base flavor for this doctype
|
208
223
|
----
|
209
224
|
|
210
225
|
.Taste configuration example from ICC
|
@@ -222,6 +237,11 @@ base-override:
|
|
222
237
|
publisher_abbr: ICC
|
223
238
|
presentation-metadata-color-secondary: '#376795'
|
224
239
|
presentation-metadata-backcover-text: color.org
|
240
|
+
doctypes:
|
241
|
+
- taste: specification # Specification # The name goes into i18n.yaml
|
242
|
+
base: international-standard
|
243
|
+
override-attributes:
|
244
|
+
- presentation-metadata-color-secondary: '#376795'
|
225
245
|
----
|
226
246
|
====
|
227
247
|
|
@@ -236,13 +256,16 @@ doctype_dict: # Document type translations
|
|
236
256
|
# Add more document type mappings as needed
|
237
257
|
----
|
238
258
|
|
259
|
+
Note that any taste-specific doctypes need to have a renderable corresponding entry under
|
260
|
+
`doctype_dict`. The same is the case for the native doctypes in the base flavor's i18n.yaml files.
|
261
|
+
|
239
262
|
.i18n.yaml example from ICC
|
240
263
|
[example]
|
241
264
|
====
|
242
265
|
[source,yaml]
|
243
266
|
----
|
244
267
|
doctype_dict:
|
245
|
-
|
268
|
+
specification: Specification
|
246
269
|
----
|
247
270
|
====
|
248
271
|
|
data/data/elf/config.yaml
CHANGED
@@ -4,8 +4,14 @@ owner: EXPRESS Language Foundation
|
|
4
4
|
base-flavor: iso
|
5
5
|
copyright-notice: copyright.adoc
|
6
6
|
i18n-dictionary: i18n.yaml
|
7
|
+
publisher-logo: logo.svg
|
7
8
|
base-override:
|
8
9
|
publisher: EXPRESS Language Foundation
|
9
10
|
publisher_abbr: ELF
|
10
11
|
presentation-metadata-color-secondary: '#3f65a2'
|
11
12
|
presentation-metadata-backcover-text: expresslang.org
|
13
|
+
doctypes:
|
14
|
+
- taste: standard
|
15
|
+
base: international-standard
|
16
|
+
- taste: guide
|
17
|
+
base: guide
|
data/data/elf/i18n.yaml
CHANGED
data/data/elf/logo.svg
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1023 338"><defs><style>.f{fill:none;}.g{fill:#3d7cc9;}.h{fill:url(#b);}.h,.i,.j,.k{mix-blend-mode:multiply;}.i{fill:url(#e);}.i,.j,.k{opacity:.2;}.j{fill:url(#d);}.k{fill:url(#c);}.l{opacity:.5;}.m{isolation:isolate;}</style><linearGradient id="b" x1="80.41" y1="124.72" x2="300.75" y2="124.72" gradientTransform="matrix(1, 0, 0, 1, 0, 0)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity="0"/><stop offset=".19" stop-color="#fdfefe" stop-opacity="0"/><stop offset=".22" stop-color="#fdfefe" stop-opacity="0"/><stop offset=".4" stop-color="#c9cbce" stop-opacity=".22"/><stop offset=".69" stop-color="#3c444c" stop-opacity=".83"/><stop offset=".76" stop-color="#151e28"/></linearGradient><linearGradient id="c" x1="483.27" y1="106.17" x2="336.41" y2="106.17" xlink:href="#b"/><linearGradient id="d" x1="461.32" y1="241.65" x2="355.69" y2="241.65" xlink:href="#b"/><linearGradient id="e" x1="230" y1="227.24" x2="121.35" y2="227.24" xlink:href="#b"/></defs><g style="isolation:isolate;"><g id="a"><g><g><path d="M406.58,137.45h-41.9c-4.78,.14-10.9,1.82-17.51,8.78l-15.27,17.89h51.68l23-26.67Z" style="fill:#3d7cc9;"/><path d="M204.85,225.43h-60.72c-17.43,0-31.61-14.18-31.61-31.61v-11.86h64.53v-31.79H112.52v-.3c0-17.43,14.18-31.61,31.61-31.61h82.73l31.48,36.03,23.23-21.73-26.3-30.11c-11.32-13.02-24.3-15.58-30.78-15.99h-80.36c-34.96,0-63.4,28.44-63.4,63.4v43.95c0,34.96,28.44,63.4,63.4,63.4h32.94l27.77-31.79Z" style="fill:#3d7cc9;"/><g style="opacity:.5;"><path d="M255.26,102.45c-11.31-13.01-24.3-15.57-30.77-15.98h-80.36c-34.96,0-63.4,28.44-63.4,63.4v13.1l31.79-12.8v-.3c0-17.43,14.18-31.61,31.61-31.61h82.73l31.48,36.03,23.23-21.73-26.31-30.11Z" style="fill:url(#b); mix-blend-mode:multiply;"/></g><path d="M454.93,86.44s-73.74,.02-73.72,0h-25.49c-.77,0-1.58,.13-2.34,.23-6.7,.85-17.54,3.98-27.35,14.61l-29.66,33.88,21.1,24.15,29.26-33.39c5.47-4.64,10.52-7.36,15.3-7.66l65.48-.02,27.42-31.79Z" style="fill:#3d7cc9;"/><path d="M454.96,86.44h-57.34c-.12,.01-2.15,.22-2.15,.22-6.7,.85-17.54,3.98-27.35,14.61l-21.36,24.63c5.47-4.64,10.52-7.31,15.3-7.66l65.48-.02,27.41-31.78Z" style="fill:url(#c); mix-blend-mode:multiply; opacity:.2;"/><path d="M413.54,257.56l27.41-31.78-77.98-.03-39.85-45.61-.04,.04-68.9-78.87c-11.05-11.98-23.42-14.44-29.69-14.84h-25.49l67.64,77.42,.04-.04,68.9,78.87c11.06,11.98,23.42,14.44,29.69,14.84h25.49l-.02-.02,22.8,.02Z" style="fill:#3d7cc9;"/><path d="M440.96,225.78l-77.82-.03,13.73,15.83c9.59,10.39,20.05,14.44,27.6,15.97h9.08l27.41-31.77Z" style="fill:url(#d); mix-blend-mode:multiply; opacity:.2;"/><path d="M257.12,180.18l-.04-.04-67.64,77.42h25.49c5.39,0,18.64-2.86,29.69-14.84l39.94-45-21.08-24.13-6.35,6.59Z" style="fill:#3d7cc9;"/><path d="M177.07,257.22l27.77-31.79h-60.72c-16.27,0-29.7-12.36-31.41-28.18,1.8,33.36,29.43,59.97,63.23,59.97h1.13Z" style="fill:url(#e); mix-blend-mode:multiply; opacity:.2;"/></g><g><g><path d="M548.46,163.15v10.23h-42.63v-55.06h41.61v10.23h-28.94v11.96h25.56v9.91h-25.56v12.74h29.97Z" style="fill:#3d7cc9;"/><path d="M604.54,173.38l-13.29-19.11-13.06,19.11h-14.63l20.37-28-19.35-27.06h14.47l12.66,17.85,12.43-17.85h13.76l-19.19,26.58,20.53,28.47h-14.71Z" style="fill:#3d7cc9;"/><path d="M672.62,120.76c3.59,1.63,6.36,3.93,8.3,6.92,1.94,2.99,2.91,6.53,2.91,10.62s-.97,7.56-2.91,10.58c-1.94,3.02-4.71,5.32-8.3,6.92-3.59,1.6-7.83,2.4-12.7,2.4h-11.09v15.18h-12.74v-55.06h23.83c4.88,0,9.11,.81,12.7,2.44Zm-4.68,24.58c1.99-1.65,2.99-4,2.99-7.04s-1-5.47-2.99-7.12c-1.99-1.65-4.9-2.48-8.73-2.48h-10.38v19.11h10.38c3.83,0,6.74-.83,8.73-2.48Z" style="fill:#3d7cc9;"/><path d="M739.75,173.38l-10.62-15.34h-11.72v15.34h-12.74v-55.06h23.83c4.88,0,9.11,.81,12.7,2.44,3.59,1.63,6.36,3.93,8.3,6.92,1.94,2.99,2.91,6.53,2.91,10.62s-.98,7.62-2.95,10.58c-1.97,2.96-4.76,5.23-8.38,6.8l12.35,17.7h-13.69Zm-3.22-42.2c-1.99-1.65-4.9-2.48-8.73-2.48h-10.38v19.19h10.38c3.83,0,6.74-.84,8.73-2.52,1.99-1.68,2.99-4.04,2.99-7.08s-1-5.47-2.99-7.12Z" style="fill:#3d7cc9;"/><path d="M816.9,163.15v10.23h-42.63v-55.06h41.61v10.23h-28.94v11.96h25.56v9.91h-25.56v12.74h29.97Z" style="fill:#3d7cc9;"/><path d="M844.31,172.55c-4.06-1.18-7.33-2.71-9.79-4.6l4.33-9.6c2.36,1.73,5.16,3.12,8.42,4.17,3.25,1.05,6.5,1.57,9.75,1.57,3.62,0,6.29-.54,8.02-1.61,1.73-1.07,2.6-2.5,2.6-4.29,0-1.31-.51-2.4-1.53-3.26-1.02-.87-2.33-1.56-3.93-2.08-1.6-.52-3.76-1.1-6.49-1.73-4.2-1-7.63-1.99-10.3-2.99-2.67-1-4.97-2.6-6.88-4.8s-2.87-5.14-2.87-8.81c0-3.2,.87-6.1,2.6-8.69,1.73-2.6,4.34-4.65,7.83-6.17,3.49-1.52,7.75-2.28,12.78-2.28,3.51,0,6.95,.42,10.3,1.26,3.36,.84,6.29,2.04,8.81,3.62l-3.93,9.67c-5.09-2.88-10.17-4.33-15.26-4.33-3.57,0-6.2,.58-7.91,1.73-1.7,1.15-2.56,2.67-2.56,4.56s.98,3.29,2.95,4.21c1.97,.92,4.97,1.82,9.01,2.71,4.19,1,7.63,1.99,10.3,2.99,2.67,1,4.97,2.57,6.88,4.72,1.91,2.15,2.87,5.06,2.87,8.73,0,3.15-.88,6.02-2.63,8.61-1.76,2.6-4.39,4.65-7.91,6.17-3.51,1.52-7.79,2.28-12.82,2.28-4.35,0-8.56-.59-12.62-1.77Z" style="fill:#3d7cc9;"/><path d="M906.29,172.55c-4.06-1.18-7.33-2.71-9.79-4.6l4.33-9.6c2.36,1.73,5.16,3.12,8.42,4.17,3.25,1.05,6.5,1.57,9.75,1.57,3.62,0,6.29-.54,8.02-1.61,1.73-1.07,2.6-2.5,2.6-4.29,0-1.31-.51-2.4-1.53-3.26-1.02-.87-2.33-1.56-3.93-2.08-1.6-.52-3.76-1.1-6.49-1.73-4.2-1-7.63-1.99-10.3-2.99-2.67-1-4.97-2.6-6.88-4.8s-2.87-5.14-2.87-8.81c0-3.2,.87-6.1,2.6-8.69,1.73-2.6,4.34-4.65,7.83-6.17,3.49-1.52,7.75-2.28,12.78-2.28,3.51,0,6.95,.42,10.3,1.26,3.36,.84,6.29,2.04,8.81,3.62l-3.93,9.67c-5.09-2.88-10.17-4.33-15.26-4.33-3.57,0-6.2,.58-7.91,1.73-1.7,1.15-2.56,2.67-2.56,4.56s.98,3.29,2.95,4.21c1.97,.92,4.97,1.82,9.01,2.71,4.19,1,7.63,1.99,10.3,2.99,2.67,1,4.97,2.57,6.88,4.72,1.91,2.15,2.87,5.06,2.87,8.73,0,3.15-.88,6.02-2.63,8.61-1.76,2.6-4.39,4.65-7.91,6.17-3.51,1.52-7.79,2.28-12.82,2.28-4.35,0-8.56-.59-12.62-1.77Z" style="fill:#3d7cc9;"/></g><g><path d="M507.8,196.81h2.88v17.68h10.93v2.51h-13.82v-20.19Z" style="fill:#3d7cc9;"/><path d="M541.05,203.13c1.12,1.04,1.69,2.59,1.69,4.64v9.23h-2.62v-2.02c-.46,.71-1.12,1.25-1.98,1.63s-1.87,.56-3.04,.56c-1.71,0-3.08-.41-4.11-1.24-1.03-.83-1.54-1.91-1.54-3.26s.49-2.43,1.47-3.25,2.54-1.23,4.67-1.23h4.38v-.55c0-1.19-.35-2.11-1.04-2.74-.69-.63-1.71-.95-3.06-.95-.9,0-1.79,.15-2.65,.45-.87,.3-1.6,.7-2.19,1.2l-1.15-2.08c.79-.63,1.73-1.12,2.83-1.46,1.1-.34,2.26-.5,3.49-.5,2.12,0,3.74,.52,4.86,1.56Zm-2.75,11.21c.77-.47,1.33-1.14,1.67-2v-2.13h-4.27c-2.35,0-3.52,.79-3.52,2.37,0,.77,.3,1.38,.89,1.82,.6,.44,1.42,.66,2.48,.66s1.97-.24,2.74-.71Z" style="fill:#3d7cc9;"/><path d="M566.66,203.26c1.14,1.12,1.72,2.77,1.72,4.95v8.8h-2.77v-8.48c0-1.48-.36-2.6-1.07-3.35-.71-.75-1.73-1.12-3.06-1.12-1.5,0-2.68,.44-3.55,1.31-.87,.88-1.3,2.13-1.3,3.76v7.87h-2.77v-15.29h2.65v2.31c.56-.79,1.31-1.39,2.26-1.82s2.03-.63,3.25-.63c1.94,0,3.49,.56,4.63,1.69Z" style="fill:#3d7cc9;"/><path d="M594.22,201.72v13.21c0,2.67-.66,4.65-1.99,5.93-1.33,1.28-3.31,1.92-5.94,1.92-1.44,0-2.82-.2-4.12-.59-1.31-.39-2.37-.96-3.17-1.69l1.33-2.13c.71,.62,1.59,1.1,2.64,1.46,1.05,.36,2.13,.53,3.25,.53,1.79,0,3.11-.42,3.97-1.27,.86-.85,1.28-2.13,1.28-3.87v-1.21c-.65,.79-1.46,1.38-2.41,1.77s-1.99,.59-3.1,.59c-1.46,0-2.78-.31-3.97-.94-1.18-.62-2.11-1.5-2.78-2.62s-1.01-2.41-1.01-3.85,.34-2.73,1.01-3.85,1.6-1.99,2.78-2.61c1.18-.62,2.5-.92,3.97-.92,1.15,0,2.23,.21,3.22,.63s1.8,1.05,2.44,1.88v-2.37h2.62Zm-5.26,11.59c.8-.42,1.42-1.01,1.88-1.77s.68-1.62,.68-2.58c0-1.48-.49-2.68-1.47-3.59s-2.24-1.37-3.78-1.37-2.83,.46-3.81,1.37-1.47,2.11-1.47,3.59c0,.96,.23,1.82,.68,2.58,.45,.76,1.08,1.35,1.88,1.77,.8,.42,1.71,.63,2.73,.63s1.9-.21,2.7-.63Z" style="fill:#3d7cc9;"/><path d="M619.75,201.72v15.29h-2.62v-2.31c-.56,.79-1.29,1.4-2.21,1.83-.91,.43-1.91,.65-2.99,.65-2.04,0-3.64-.56-4.82-1.69s-1.76-2.78-1.76-4.98v-8.8h2.77v8.48c0,1.48,.36,2.6,1.07,3.36,.71,.76,1.73,1.14,3.06,1.14,1.46,0,2.62-.44,3.46-1.33,.85-.88,1.27-2.13,1.27-3.75v-7.9h2.77Z" style="fill:#3d7cc9;"/><path d="M641.45,203.13c1.12,1.04,1.69,2.59,1.69,4.64v9.23h-2.62v-2.02c-.46,.71-1.12,1.25-1.98,1.63s-1.87,.56-3.04,.56c-1.71,0-3.08-.41-4.11-1.24-1.03-.83-1.54-1.91-1.54-3.26s.49-2.43,1.47-3.25,2.54-1.23,4.67-1.23h4.38v-.55c0-1.19-.35-2.11-1.04-2.74-.69-.63-1.71-.95-3.06-.95-.9,0-1.79,.15-2.65,.45-.87,.3-1.6,.7-2.19,1.2l-1.15-2.08c.79-.63,1.73-1.12,2.83-1.46,1.1-.34,2.26-.5,3.49-.5,2.12,0,3.74,.52,4.86,1.56Zm-2.75,11.21c.77-.47,1.33-1.14,1.67-2v-2.13h-4.27c-2.35,0-3.52,.79-3.52,2.37,0,.77,.3,1.38,.89,1.82,.6,.44,1.42,.66,2.48,.66s1.97-.24,2.74-.71Z" style="fill:#3d7cc9;"/><path d="M668.99,201.72v13.21c0,2.67-.66,4.65-1.99,5.93-1.33,1.28-3.31,1.92-5.94,1.92-1.44,0-2.82-.2-4.12-.59-1.31-.39-2.37-.96-3.17-1.69l1.33-2.13c.71,.62,1.59,1.1,2.64,1.46,1.05,.36,2.13,.53,3.25,.53,1.79,0,3.11-.42,3.97-1.27,.86-.85,1.28-2.13,1.28-3.87v-1.21c-.65,.79-1.46,1.38-2.41,1.77s-1.99,.59-3.1,.59c-1.46,0-2.78-.31-3.97-.94-1.18-.62-2.11-1.5-2.78-2.62s-1.01-2.41-1.01-3.85,.34-2.73,1.01-3.85,1.6-1.99,2.78-2.61c1.18-.62,2.5-.92,3.97-.92,1.15,0,2.23,.21,3.22,.63s1.8,1.05,2.44,1.88v-2.37h2.62Zm-5.26,11.59c.8-.42,1.42-1.01,1.88-1.77s.68-1.62,.68-2.58c0-1.48-.49-2.68-1.47-3.59s-2.24-1.37-3.78-1.37-2.83,.46-3.81,1.37-1.47,2.11-1.47,3.59c0,.96,.23,1.82,.68,2.58,.45,.76,1.08,1.35,1.88,1.77,.8,.42,1.71,.63,2.73,.63s1.9-.21,2.7-.63Z" style="fill:#3d7cc9;"/><path d="M694.02,210.28h-12.4c.17,1.35,.76,2.43,1.77,3.25,1.01,.82,2.26,1.23,3.76,1.23,1.83,0,3.3-.62,4.41-1.85l1.53,1.79c-.69,.81-1.55,1.42-2.58,1.85-1.03,.42-2.18,.63-3.45,.63-1.62,0-3.05-.33-4.3-1-1.25-.66-2.22-1.59-2.9-2.78s-1.02-2.54-1.02-4.04,.33-2.82,1-4.01c.66-1.19,1.58-2.12,2.74-2.78,1.16-.66,2.48-1,3.94-1s2.76,.33,3.91,1c1.14,.66,2.04,1.59,2.68,2.78,.64,1.19,.97,2.56,.97,4.1,0,.21-.02,.49-.06,.84Zm-10.83-5.16c-.89,.81-1.42,1.87-1.57,3.17h9.81c-.15-1.29-.68-2.34-1.57-3.16-.89-.82-2-1.23-3.33-1.23s-2.44,.4-3.33,1.21Z" style="fill:#3d7cc9;"/><path d="M720.96,199.32v7.04h10.12v2.48h-10.12v8.16h-2.88v-20.19h14.25v2.51h-11.36Z" style="fill:#3d7cc9;"/><path d="M743.95,216.17c-1.21-.67-2.16-1.6-2.84-2.78s-1.02-2.52-1.02-4.02,.34-2.84,1.02-4.02,1.63-2.11,2.84-2.77c1.21-.66,2.58-1,4.1-1s2.88,.33,4.08,1c1.2,.66,2.14,1.59,2.83,2.77,.68,1.18,1.02,2.52,1.02,4.02s-.34,2.84-1.02,4.02c-.68,1.18-1.63,2.11-2.83,2.78-1.2,.67-2.56,1.01-4.08,1.01s-2.88-.34-4.1-1.01Zm6.74-2.09c.78-.45,1.39-1.09,1.83-1.9s.66-1.75,.66-2.81-.22-2-.66-2.81-1.05-1.45-1.83-1.89c-.78-.44-1.66-.66-2.64-.66s-1.86,.22-2.64,.66c-.78,.44-1.39,1.07-1.85,1.89-.45,.82-.68,1.75-.68,2.81s.23,2,.68,2.81c.45,.82,1.07,1.45,1.85,1.9,.78,.45,1.66,.68,2.64,.68s1.86-.23,2.64-.68Z" style="fill:#3d7cc9;"/><path d="M780.06,201.72v15.29h-2.62v-2.31c-.56,.79-1.29,1.4-2.21,1.83-.91,.43-1.91,.65-2.99,.65-2.04,0-3.64-.56-4.82-1.69s-1.76-2.78-1.76-4.98v-8.8h2.77v8.48c0,1.48,.36,2.6,1.07,3.36,.71,.76,1.73,1.14,3.06,1.14,1.46,0,2.62-.44,3.46-1.33,.85-.88,1.27-2.13,1.27-3.75v-7.9h2.77Z" style="fill:#3d7cc9;"/><path d="M804.13,203.26c1.14,1.12,1.72,2.77,1.72,4.95v8.8h-2.77v-8.48c0-1.48-.36-2.6-1.07-3.35-.71-.75-1.73-1.12-3.06-1.12-1.5,0-2.68,.44-3.55,1.31-.87,.88-1.3,2.13-1.3,3.76v7.87h-2.77v-15.29h2.65v2.31c.56-.79,1.31-1.39,2.26-1.82s2.03-.63,3.25-.63c1.94,0,3.49,.56,4.63,1.69Z" style="fill:#3d7cc9;"/><path d="M831.49,195.6v21.4h-2.65v-2.42c-.62,.85-1.39,1.49-2.34,1.93s-1.98,.66-3.12,.66c-1.48,0-2.81-.33-3.98-.98-1.17-.65-2.09-1.57-2.75-2.75-.66-1.18-1-2.54-1-4.08s.33-2.89,1-4.07c.66-1.17,1.58-2.09,2.75-2.74,1.17-.65,2.5-.98,3.98-.98,1.1,0,2.11,.21,3.03,.62,.92,.41,1.69,1.02,2.31,1.83v-8.42h2.77Zm-5.25,18.47c.79-.45,1.4-1.09,1.85-1.9s.66-1.75,.66-2.81-.22-2-.66-2.81-1.06-1.45-1.85-1.89c-.79-.44-1.66-.66-2.62-.66s-1.86,.22-2.64,.66c-.78,.44-1.39,1.07-1.85,1.89-.45,.82-.68,1.75-.68,2.81s.23,2,.68,2.81c.45,.82,1.07,1.45,1.85,1.9,.78,.45,1.66,.68,2.64,.68s1.84-.23,2.62-.68Z" style="fill:#3d7cc9;"/><path d="M853.17,203.13c1.12,1.04,1.69,2.59,1.69,4.64v9.23h-2.62v-2.02c-.46,.71-1.12,1.25-1.98,1.63s-1.87,.56-3.04,.56c-1.71,0-3.08-.41-4.11-1.24-1.03-.83-1.54-1.91-1.54-3.26s.49-2.43,1.47-3.25,2.54-1.23,4.67-1.23h4.38v-.55c0-1.19-.35-2.11-1.04-2.74-.69-.63-1.71-.95-3.06-.95-.9,0-1.79,.15-2.65,.45-.87,.3-1.6,.7-2.19,1.2l-1.15-2.08c.79-.63,1.73-1.12,2.83-1.46,1.1-.34,2.26-.5,3.49-.5,2.12,0,3.74,.52,4.86,1.56Zm-2.75,11.21c.77-.47,1.33-1.14,1.67-2v-2.13h-4.27c-2.35,0-3.52,.79-3.52,2.37,0,.77,.3,1.38,.89,1.82,.6,.44,1.42,.66,2.48,.66s1.97-.24,2.74-.71Z" style="fill:#3d7cc9;"/><path d="M874.59,216.11c-.4,.35-.9,.61-1.5,.79-.6,.18-1.21,.27-1.85,.27-1.54,0-2.73-.41-3.58-1.24-.85-.83-1.27-2.01-1.27-3.55v-8.39h-2.6v-2.28h2.6v-3.35h2.77v3.35h4.38v2.28h-4.38v8.28c0,.83,.21,1.46,.62,1.9,.41,.44,1,.66,1.77,.66,.85,0,1.57-.24,2.16-.72l.87,1.99Z" style="fill:#3d7cc9;"/><path d="M883.97,198.26c-.36-.35-.53-.77-.53-1.27s.18-.93,.53-1.28c.36-.36,.8-.53,1.34-.53s.98,.17,1.34,.5c.36,.34,.53,.75,.53,1.25s-.18,.96-.53,1.31-.8,.53-1.34,.53-.99-.17-1.34-.52Zm-.04,3.46h2.77v15.29h-2.77v-15.29Z" style="fill:#3d7cc9;"/><path d="M900.43,216.17c-1.21-.67-2.16-1.6-2.84-2.78s-1.02-2.52-1.02-4.02,.34-2.84,1.02-4.02,1.63-2.11,2.84-2.77c1.21-.66,2.58-1,4.1-1s2.88,.33,4.08,1c1.2,.66,2.14,1.59,2.83,2.77,.68,1.18,1.02,2.52,1.02,4.02s-.34,2.84-1.02,4.02c-.68,1.18-1.63,2.11-2.83,2.78-1.2,.67-2.56,1.01-4.08,1.01s-2.88-.34-4.1-1.01Zm6.74-2.09c.78-.45,1.39-1.09,1.83-1.9s.66-1.75,.66-2.81-.22-2-.66-2.81-1.05-1.45-1.83-1.89c-.78-.44-1.66-.66-2.64-.66s-1.86,.22-2.64,.66c-.78,.44-1.39,1.07-1.85,1.89-.45,.82-.68,1.75-.68,2.81s.23,2,.68,2.81c.45,.82,1.07,1.45,1.85,1.9,.78,.45,1.66,.68,2.64,.68s1.86-.23,2.64-.68Z" style="fill:#3d7cc9;"/><path d="M935.09,203.26c1.14,1.12,1.72,2.77,1.72,4.95v8.8h-2.77v-8.48c0-1.48-.36-2.6-1.07-3.35-.71-.75-1.73-1.12-3.06-1.12-1.5,0-2.68,.44-3.55,1.31-.87,.88-1.3,2.13-1.3,3.76v7.87h-2.77v-15.29h2.65v2.31c.56-.79,1.31-1.39,2.26-1.82s2.03-.63,3.25-.63c1.94,0,3.49,.56,4.63,1.69Z" style="fill:#3d7cc9;"/></g></g></g><rect width="1023" height="338" style="fill:none;"/></g></g></svg>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
flavor: enosema
|
3
|
+
owner: Enosema Foundation
|
4
|
+
base-flavor: iso
|
5
|
+
copyright-notice: copyright.adoc
|
6
|
+
i18n-dictionary: i18n.yaml
|
7
|
+
publisher-logo: logo.svg
|
8
|
+
base-override:
|
9
|
+
publisher: Enosema Foundation
|
10
|
+
publisher_abbr: EFS
|
11
|
+
presentation-metadata-color-secondary: '#007724'
|
12
|
+
presentation-metadata-backcover-text: enosema.org
|
13
|
+
doctypes:
|
14
|
+
- taste: standard
|
15
|
+
base: international-standard
|
16
|
+
- taste: guide
|
17
|
+
base: guide
|
@@ -0,0 +1,26 @@
|
|
1
|
+
== copyright-statement
|
2
|
+
=== {blank}
|
3
|
+
(c) {{ docyear }} Enosema Foundation.
|
4
|
+
|
5
|
+
All rights reserved. Unless otherwise specified, or required in the context of
|
6
|
+
its implementation, no part of this publication may be reproduced or utilized
|
7
|
+
otherwise in any form or by any means, electronic or mechanical, including
|
8
|
+
photocopying, or posting on the internet or an intranet, without prior written
|
9
|
+
permission. Permission can be requested from the Enosema Foundation.
|
10
|
+
|
11
|
+
Enosema Foundation +
|
12
|
+
2885 Sanford Ave Sw Suite 32361 +
|
13
|
+
Grandville MI 49418-1342 +
|
14
|
+
USA
|
15
|
+
|
16
|
+
E-mail: link:mailto:info@enosema.org[info@enosema.org]
|
17
|
+
|
18
|
+
Published in the USA
|
19
|
+
|
20
|
+
|
21
|
+
== feedback-statement
|
22
|
+
|
23
|
+
=== {blank}
|
24
|
+
|
25
|
+
[align=center]
|
26
|
+
[css color:#007724]#**Making meaning meaningful**#
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="uuid-9904fc61-5966-45a2-a96d-82a541efe75d" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 250"><g><path d="M284.54,152.15c10.06,0,17.34-4.66,20.99-10.64l10.79,6.12c-6.41,9.91-17.49,16.47-32.07,16.47-23.47,0-39.07-16.47-39.07-38.34s15.45-38.34,38.19-38.34,36.3,18.08,36.3,38.48c0,1.9-.15,3.79-.44,5.69h-61.08c2.47,13.12,12.83,20.55,26.39,20.55Zm-26.39-31.63h48.68c-2.19-14.43-12.53-21.14-23.47-21.14-13.7,0-23.18,8.46-25.21,21.14Z" style="fill:#348f41;"/><path d="M398.81,117.46v44.75h-12.68v-44.02c0-11.95-6.85-18.66-18.07-18.66s-21.14,6.85-21.14,24.05v38.63h-12.68V89.32h12.68v10.5c5.39-8.6,13.41-12.39,23.61-12.39,17.06,0,28.28,11.37,28.28,30.03Z" style="fill:#348f41;"/><path d="M412.36,125.77c0-21.58,17.06-38.34,38.34-38.34s38.48,16.76,38.48,38.34-17.2,38.34-38.48,38.34-38.34-16.76-38.34-38.34Zm64.14,0c0-14.72-11.22-25.95-25.8-25.95s-25.66,11.22-25.66,25.95,11.22,25.95,25.66,25.95,25.8-11.22,25.8-25.95Z" style="fill:#348f41;"/><path d="M554.33,142.24c0,13.56-11.67,21.87-27.26,21.87-14.58,0-24.79-7-29.01-17.05l10.93-6.27c2.33,7,9.04,11.37,18.08,11.37,7.72,0,14.43-2.77,14.43-9.91,0-15.6-40.81-6.71-40.81-33.09,0-12.83,11.08-21.72,25.8-21.72,11.95,0,21.58,5.69,26.24,15.16l-10.64,5.98c-2.77-6.56-9.19-9.33-15.6-9.33s-12.98,3.21-12.98,9.77c0,15.6,40.82,6.41,40.82,33.24Z" style="fill:#348f41;"/><path d="M602.57,152.15c10.06,0,17.35-4.66,20.99-10.64l10.79,6.12c-6.41,9.91-17.49,16.47-32.07,16.47-23.47,0-39.06-16.47-39.06-38.34s15.45-38.34,38.19-38.34,36.3,18.08,36.3,38.48c0,1.9-.14,3.79-.44,5.69h-61.08c2.48,13.12,12.83,20.55,26.39,20.55Zm-26.39-31.63h48.69c-2.19-14.43-12.54-21.14-23.47-21.14-13.7,0-23.18,8.46-25.22,21.14Z" style="fill:#348f41;"/><path d="M758.39,116.88v45.34h-12.68v-44.9c0-11.51-6.41-17.78-16.04-17.78-10.2,0-17.93,6.41-17.93,22.16v40.52h-12.68v-44.9c0-11.51-5.98-17.78-15.45-17.78s-18.66,6.41-18.66,22.16v40.52h-12.68V89.32h12.68v9.77c5.25-8.16,12.83-11.66,21.72-11.66,9.91,0,17.2,4.52,21.43,12.39,5.1-8.31,13.41-12.39,22.88-12.39,16.18,0,27.41,11.22,27.41,29.45Z" style="fill:#348f41;"/><path d="M849.05,89.32v72.89h-12.68v-12.54c-5.83,8.89-15.16,14.43-27.55,14.43-20.26,0-36.88-16.76-36.88-38.34s16.62-38.34,36.88-38.34c12.39,0,21.72,5.54,27.55,14.43v-12.54h12.68Zm-12.68,36.45c0-14.87-11.22-26.09-25.95-26.09s-25.8,11.22-25.8,26.09,11.22,26.09,25.8,26.09,25.95-11.23,25.95-26.09Z" style="fill:#348f41;"/></g><path d="M123.16,52.79c-39.81,0-72.21,32.39-72.21,72.2s32.39,72.21,72.21,72.21,72.21-32.39,72.21-72.21S162.97,52.79,123.16,52.79Zm0,11.67c29.59,0,54.28,21.35,59.51,49.45-5.95-7.43-19.87-22.25-32.04-16.01-15.65,8.02-32.87,68.46-87.68,33.35-.21-2.06-.32-4.15-.32-6.26,0-33.38,27.16-60.54,60.54-60.54Zm0,121.08c-27.15,0-50.19-17.97-57.84-42.64,11.52,6.91,37.66,18.87,60.5,2.36,28.52-20.62,40.19-43.23,57.29-11.95-4.06,29.46-29.39,52.23-59.96,52.23Z" style="fill:#348f41;"/></svg>
|
data/data/icc/config.yaml
CHANGED
@@ -4,8 +4,26 @@ owner: International Color Consortium
|
|
4
4
|
base-flavor: iso
|
5
5
|
copyright-notice: copyright.adoc
|
6
6
|
i18n-dictionary: i18n.yaml
|
7
|
+
publisher-logo: icc.png
|
7
8
|
base-override:
|
8
9
|
publisher: International Color Consortium
|
9
10
|
publisher_abbr: ICC
|
10
11
|
presentation-metadata-color-secondary: '#376795'
|
11
12
|
presentation-metadata-backcover-text: color.org
|
13
|
+
doctypes:
|
14
|
+
- taste: specification # Specification # The name goes into i18n.yaml
|
15
|
+
base: international-standard
|
16
|
+
override-attributes:
|
17
|
+
- presentation-metadata-color-secondary: '#376795'
|
18
|
+
- taste: ics # Interoperability Conformance Specification
|
19
|
+
base: international-standard
|
20
|
+
override-attributes:
|
21
|
+
- presentation-metadata-color-secondary: '#376795'
|
22
|
+
- taste: white-paper # White Paper
|
23
|
+
base: international-standard
|
24
|
+
- taste: proposal # Proposal
|
25
|
+
base: international-standard
|
26
|
+
- taste: votable-proposal # Votable Proposal
|
27
|
+
base: international-standard
|
28
|
+
- taste: technical-note # Technical Note
|
29
|
+
base: international-standard
|
data/data/icc/i18n.yaml
CHANGED
data/data/icc/icc.png
ADDED
Binary file
|
data/lib/metanorma/taste/base.rb
CHANGED
@@ -18,7 +18,7 @@ module Metanorma
|
|
18
18
|
# If attrs has fewer than 2 elements, this will handle it appropriately
|
19
19
|
insertion_index = [attrs.length, 2].min
|
20
20
|
|
21
|
-
new_attrs = build_attribute_overrides
|
21
|
+
attrs, new_attrs = build_attribute_overrides(attrs)
|
22
22
|
attrs.insert(insertion_index, *new_attrs) unless new_attrs.empty?
|
23
23
|
|
24
24
|
# Set boilerplate authority if copyright notice exists
|
@@ -32,45 +32,92 @@ module Metanorma
|
|
32
32
|
|
33
33
|
private
|
34
34
|
|
35
|
-
def build_attribute_overrides
|
35
|
+
def build_attribute_overrides(attrs)
|
36
36
|
overrides = []
|
37
|
+
#build_attribute_copyright_overrides(overrides)
|
38
|
+
#build_attribute_i18n_overrides(overrides)
|
39
|
+
#build_attribute_publisher_logo_overrides(overrides)
|
40
|
+
file_attr_override(:copyright_notice, "boilerplate-authority", overrides)
|
41
|
+
file_attr_override(:publisher_logo, "publisher_logo", overrides)
|
42
|
+
file_attr_override(:i18n_dictionary, "i18nyaml", overrides)
|
43
|
+
# Add base-override attributes
|
44
|
+
@taste_info[:base_override].each do |key, value|
|
45
|
+
overrides << ":#{key}: #{value}"
|
46
|
+
end
|
47
|
+
build_attribute_doctype_overrides(attrs, overrides)
|
48
|
+
[attrs, overrides]
|
49
|
+
end
|
37
50
|
|
38
|
-
|
51
|
+
# Add copyright notice if available
|
52
|
+
def build_attribute_copyright_overrides(overrides)
|
39
53
|
copyright_file = copyright_notice_path
|
40
54
|
if copyright_file && File.exist?(copyright_file)
|
41
55
|
overrides << ":boilerplate-authority: #{copyright_file}"
|
42
56
|
end
|
57
|
+
end
|
43
58
|
|
44
|
-
|
59
|
+
# Add copyright notice if available
|
60
|
+
def build_attribute_publisher_logo_overrides(overrides)
|
61
|
+
copyright_file = publisher_logo_path
|
62
|
+
if copyright_file && File.exist?(copyright_file)
|
63
|
+
overrides << ":publisher_logo: #{copyright_file}"
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Add i18n dictionary if available
|
68
|
+
def build_attribute_i18n_overrides(overrides)
|
45
69
|
i18n_file = i18n_dictionary_path
|
46
70
|
if i18n_file && File.exist?(i18n_file)
|
47
71
|
overrides << ":i18nyaml: #{i18n_file}"
|
48
72
|
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def file_attr_override(source_attr_name, target_attr_name, overrides)
|
76
|
+
s = @taste_info[source_attr_name] or return nil
|
77
|
+
f = File.join(@taste_info[:directory], s)
|
78
|
+
if f && File.exist?(f)
|
79
|
+
overrides << ":#{target_attr_name}: #{f}"
|
80
|
+
end
|
81
|
+
end
|
49
82
|
|
50
|
-
|
51
|
-
|
83
|
+
def build_attribute_doctype_overrides(attrs, overrides)
|
84
|
+
doctype_idx, dt = build_attribute_doctype_overrides_prep(attrs)
|
85
|
+
dt.nil? and return
|
86
|
+
overrides << ":presentation-metadata-doctype-alias: #{dt['taste']}"
|
87
|
+
attrs[doctype_idx] = ":doctype: #{dt['base']}"
|
88
|
+
dt["override_attributes"]&.each do |key, value|
|
52
89
|
overrides << ":#{key}: #{value}"
|
53
90
|
end
|
91
|
+
end
|
54
92
|
|
55
|
-
|
93
|
+
def build_attribute_doctype_overrides_prep(attrs)
|
94
|
+
doctype_idx = attrs.index { |e| /^:doctype:/.match?(e) } or
|
95
|
+
return [nil, nil, nil]
|
96
|
+
old_doctype = attrs[doctype_idx].sub(/^:doctype:/, "").strip
|
97
|
+
dt = @taste_info[:doctypes].detect do |e|
|
98
|
+
e["taste"] == old_doctype
|
99
|
+
end or return [nil, nil, nil]
|
100
|
+
[doctype_idx, dt]
|
56
101
|
end
|
57
102
|
|
58
103
|
def copyright_notice_path
|
59
|
-
|
60
|
-
|
104
|
+
@taste_info[:copyright_notice] or return nil
|
61
105
|
File.join(@taste_info[:directory], @taste_info[:copyright_notice])
|
62
106
|
end
|
63
107
|
|
64
|
-
def
|
65
|
-
|
108
|
+
def publisher_logo_path
|
109
|
+
@taste_info[:publisher_logo] or return nil
|
110
|
+
File.join(@taste_info[:directory], @taste_info[:publisher_logo])
|
111
|
+
end
|
66
112
|
|
113
|
+
def i18n_dictionary_path
|
114
|
+
@taste_info[:i18n_dictionary] or return nil
|
67
115
|
File.join(@taste_info[:directory], @taste_info[:i18n_dictionary])
|
68
116
|
end
|
69
117
|
|
70
118
|
def load_i18n_dictionary
|
71
119
|
i18n_file = i18n_dictionary_path
|
72
|
-
|
73
|
-
|
120
|
+
i18n_file && File.exist?(i18n_file) or return {}
|
74
121
|
YAML.load_file(i18n_file)
|
75
122
|
rescue StandardError
|
76
123
|
{}
|
@@ -76,7 +76,9 @@ module Metanorma
|
|
76
76
|
config: config,
|
77
77
|
copyright_notice: config["copyright-notice"],
|
78
78
|
i18n_dictionary: config["i18n-dictionary"],
|
79
|
+
publisher_logo: config["publisher-logo"],
|
79
80
|
base_override: config["base-override"] || {},
|
81
|
+
doctypes: config["doctypes"] || {}
|
80
82
|
}
|
81
83
|
end
|
82
84
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-taste
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -225,9 +225,15 @@ files:
|
|
225
225
|
- data/elf/config.yaml
|
226
226
|
- data/elf/copyright.adoc
|
227
227
|
- data/elf/i18n.yaml
|
228
|
+
- data/elf/logo.svg
|
229
|
+
- data/enosema/config.yaml
|
230
|
+
- data/enosema/copyright.adoc
|
231
|
+
- data/enosema/i18n.yaml
|
232
|
+
- data/enosema/logo.svg
|
228
233
|
- data/icc/config.yaml
|
229
234
|
- data/icc/copyright.adoc
|
230
235
|
- data/icc/i18n.yaml
|
236
|
+
- data/icc/icc.png
|
231
237
|
- lib/metanorma-taste.rb
|
232
238
|
- lib/metanorma/taste.rb
|
233
239
|
- lib/metanorma/taste/base.rb
|