metanorma-taste 0.1.2 → 0.1.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/Gemfile +9 -14
- data/README.adoc +109 -27
- data/data/csa/boilerplate.adoc +35 -0
- data/data/csa/config.yaml +63 -0
- data/data/csa/csa.scss +782 -0
- data/data/csa/csa.standard.xsl +14577 -0
- data/data/csa/header.html +246 -0
- data/data/csa/html_csa_intro.html +7 -0
- data/data/csa/html_csa_titlepage.html +94 -0
- data/data/csa/htmlstyle.scss +820 -0
- data/data/csa/i18n-en.yaml +10 -0
- data/data/csa/logo.svg +1 -0
- data/data/csa/metanorma.yml +70 -0
- data/data/csa/word_csa_intro.html +11 -0
- data/data/csa/word_csa_titlepage.html +75 -0
- data/data/csa/wordstyle.scss +1343 -0
- data/data/elf/config.yaml +10 -7
- data/data/enosema/config.yaml +10 -7
- data/data/icc/config.yaml +14 -11
- data/data/icc/icc-full.emf +0 -0
- data/data/icc/icc-small.emf +0 -0
- data/data/mbxif/config.yaml +26 -0
- data/data/mbxif/copyright.adoc +36 -0
- data/data/mbxif/i18n.yaml +4 -0
- data/data/mbxif/mbxif-back-cover.pdf +3504 -7
- data/data/mbxif/mbxif-front-cover.pdf +54968 -16
- data/data/mbxif/mbxif-logos.pdf +11330 -46
- data/data/mbxif/mbxif-logos_caeif.svg +1 -0
- data/data/mbxif/mbxif-logos_caxif.svg +1 -0
- data/data/mbxif/mbxif-logos_ewisif.svg +1 -0
- data/data/mbxif/mbxif-logos_jtif.svg +1 -0
- data/data/mbxif/mbxif-logos_lotar.svg +1 -0
- data/data/mbxif/mbxif-logos_mbxif.svg +1 -0
- data/data/mbxif/mbxif-logos_pdmif.svg +1 -0
- data/data/mbxif/mbxif.xsl +361 -0
- data/data/pdfa/config.yaml +38 -0
- data/data/pdfa/copyright-de.adoc +39 -0
- data/data/pdfa/copyright.adoc +45 -0
- data/data/pdfa/coverpage.pdf +0 -0
- data/data/pdfa/htmlcoverpage.html +18 -0
- data/data/pdfa/htmlstylesheet-override.scss +14 -0
- data/data/pdfa/i18n.yaml +11 -0
- data/data/pdfa/inside-cover.pdf +0 -0
- data/data/pdfa/pdfa-logo.emf +0 -0
- data/data/pdfa/pdfa-logo.svg +1 -0
- data/data/pdfa/pdfa.xsl +288 -0
- data/data/swf/config.yaml +24 -0
- data/data/swf/copyright.adoc +28 -0
- data/data/swf/i18n.yaml +3 -0
- data/data/swf/swf-back-cover.pdf +3504 -7
- data/data/swf/swf-front-cover.pdf +3472 -3
- data/data/swf/swf-full.svg +1 -0
- data/data/swf/swf-icon.svg +1 -0
- data/data/swf/swf-logo-with-graphic.svg +1 -0
- data/data/swf/swf-logo.pdf +3590 -13
- data/data/swf/swf-logo.svg +1 -0
- data/data/swf/swf.xsl +361 -0
- data/lib/metanorma/taste/base.rb +40 -21
- data/lib/metanorma/taste/base_override.rb +7 -16
- data/lib/metanorma/taste/filename_attributes.rb +53 -0
- data/lib/metanorma/taste/stage_config.rb +20 -0
- data/lib/metanorma/taste/taste_config.rb +2 -26
- data/lib/metanorma/taste/value_attributes.rb +59 -0
- data/lib/metanorma/taste/version.rb +1 -1
- data/lib/metanorma/taste_register.rb +18 -0
- data/metanorma-taste.gemspec +20 -0
- metadata +323 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dac3951f0ecd001d25c14c8dd038a0791003678a4aebc43b7219039a6baa9f53
|
|
4
|
+
data.tar.gz: b29b383bd4b5c87865f34de13e5b62df26e55fc66990141745f3f86ce4a2929f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89c8094961e1a59fd64ea25fca6bdf86243fe8fbac756fda96e3e62828098f5956d37fbe20bc9089787adff3f6d2918f4814c9be17a8bda353c156001bf3a163
|
|
7
|
+
data.tar.gz: ce5d4346fcd89bda667022ef984d2b93be8c49aeedf7adc4f5447e3f87fb4e5a33f35c12fead17a31da08ecd79fccd33e2a9af0e09282f872d04ace5942e07e4
|
data/Gemfile
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
Encoding.default_external = Encoding::UTF_8
|
|
2
|
+
Encoding.default_internal = Encoding::UTF_8
|
|
3
|
+
|
|
1
4
|
source "https://rubygems.org"
|
|
5
|
+
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
|
2
6
|
|
|
3
7
|
gemspec
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
gem "pry"
|
|
11
|
-
gem "rake", "~> 13.0"
|
|
12
|
-
gem "rspec", "~> 3.0"
|
|
13
|
-
gem "rspec-command", "~> 1.0"
|
|
14
|
-
gem "rubocop", "~> 1"
|
|
15
|
-
gem "rubocop-performance"
|
|
16
|
-
gem "sassc-embedded", "~> 1"
|
|
17
|
-
gem "simplecov", "~> 0.15"
|
|
18
|
-
gem "xml-c14n"
|
|
9
|
+
begin
|
|
10
|
+
eval_gemfile("Gemfile.devel")
|
|
11
|
+
rescue StandardError
|
|
12
|
+
nil
|
|
13
|
+
end
|
data/README.adoc
CHANGED
|
@@ -152,18 +152,37 @@ currently available:
|
|
|
152
152
|
|`icc`
|
|
153
153
|
|International Color Consortium
|
|
154
154
|
|`iso`
|
|
155
|
-
|
|
|
155
|
+
|International Color Consortium specifications and standards with ICC branding and copyright
|
|
156
156
|
|
|
157
157
|
|`elf`
|
|
158
158
|
|Express Language Foundation
|
|
159
159
|
|`iso`
|
|
160
|
-
|
|
|
160
|
+
|Express Language Foundation specifications and standards with ELF branding and copyright
|
|
161
161
|
|
|
162
162
|
|`enosema`
|
|
163
163
|
|Enosema Foundation
|
|
164
164
|
|`iso`
|
|
165
165
|
|Enosema specifications and standards with Enosema branding and copyright
|
|
166
166
|
|
|
167
|
+
|`csa`
|
|
168
|
+
|Cloud Security Alliance
|
|
169
|
+
|`generic`
|
|
170
|
+
|Cloud Security Alliance specifications and standards with CSA branding and copyright
|
|
171
|
+
|
|
172
|
+
|`pdfa`
|
|
173
|
+
|PDF Association
|
|
174
|
+
|`ribose`
|
|
175
|
+
|PDF Association specifications and standards with PDFA branding and copyright
|
|
176
|
+
|
|
177
|
+
|`swf`
|
|
178
|
+
|Spatial Web Foundation
|
|
179
|
+
|`ribose`
|
|
180
|
+
|Spatial Web Foundation specifications and standards with SWF branding and copyright
|
|
181
|
+
|
|
182
|
+
|`mbxif`
|
|
183
|
+
|MBx Interoperability Forum
|
|
184
|
+
|`ribose`
|
|
185
|
+
|MBx Interoperability Forum specifications and standards with MBx-IF branding and copyright
|
|
167
186
|
|===
|
|
168
187
|
|
|
169
188
|
|
|
@@ -216,14 +235,36 @@ The main configuration file for each taste:
|
|
|
216
235
|
flavor: string # The name of the custom flavor (e.g., "icc")
|
|
217
236
|
owner: string # Organization name (e.g., "International Color Consortium")
|
|
218
237
|
base-flavor: string # Base Metanorma flavor to extend (e.g., "iso")
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
238
|
+
base-override: # Document attributes to override from base flavor
|
|
239
|
+
filename-attributes: # Metanorma document attributes that contain filenames
|
|
240
|
+
copyright-notice: string # Path to boilerplate file (e.g., "copyright.adoc")
|
|
241
|
+
i18n-dictionary: string # Path to internationalization dictionary (e.g., "i18n.yaml")
|
|
242
|
+
publisher-logo: string # Path to publisher logo (e.g., "icc.png")
|
|
243
|
+
htmlcoverpage: string # HTML output cover page
|
|
244
|
+
htmlintropage: string # HTML output introductory page
|
|
245
|
+
htmlstylesheet: string # HTML output CSS stylesheet
|
|
246
|
+
htmlstylesheet-override: string # HTML output CSS stylesheet, overriding base flavor stylesheet
|
|
247
|
+
wordcoverpage: string # Word output cover page
|
|
248
|
+
wordintropage: string # Word output introductory page
|
|
249
|
+
wordstylesheet: string # Word output CSS stylesheet
|
|
250
|
+
wordstylesheet-override: string # Word output CSS stylesheet, overriding base flavor stylesheet
|
|
251
|
+
standardstylesheet: string # Word output secondary CSS stylesheet
|
|
252
|
+
standardstylesheet-override: string # Word output secondary CSS stylesheet, overriding base flavor stylesheet
|
|
253
|
+
header: string # Word output header and footer content
|
|
254
|
+
pdf-stylesheet: string # PDF output XSLT stylesheet
|
|
255
|
+
pdf-stylesheet-override: string # PDF output XSLT stylesheet, overriding base flavor stylesheet
|
|
256
|
+
customize: string # Path to custom metanorma configuration file
|
|
257
|
+
coverpage-image: string # Path to coverpage image file
|
|
258
|
+
backpage-image: string # Path to backpage image file
|
|
259
|
+
value-attributes: # Metanorma document attributes that contain values
|
|
260
|
+
publisher: string # Publisher name override
|
|
261
|
+
publisher_abbr: string # Publisher abbreviation
|
|
262
|
+
body-font: string # Default font to use in HTML and Word stylesheets
|
|
263
|
+
header-font: string # Header font to use in HTML and Word stylesheets
|
|
264
|
+
monospace-font: string # Monospace font to use in HTML and Word stylesheets
|
|
265
|
+
fonts: string # Comma-delimited listing of fonts to retrieve for the taste from Fontist
|
|
266
|
+
output-extensions: string # Comma-delimited listing of output formats to support (subset of base flavor's)
|
|
267
|
+
presentation-metadata-*: # Template style attributes for presentation
|
|
227
268
|
doctypes: # Array of doctypes built over base flavour doctypes
|
|
228
269
|
- taste: # taste-specific machine-readable doctype name
|
|
229
270
|
base: # Base Metanorma flavor corresponding machine-readable doctype name
|
|
@@ -238,13 +279,21 @@ doctypes: # Array of doctypes built over base flavour doctypes
|
|
|
238
279
|
flavor: icc
|
|
239
280
|
owner: International Color Consortium
|
|
240
281
|
base-flavor: iso
|
|
241
|
-
copyright-notice: copyright.adoc
|
|
242
|
-
i18n-dictionary: i18n.yaml
|
|
243
282
|
base-override:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
283
|
+
filename-attributes:
|
|
284
|
+
copyright-notice: copyright.adoc
|
|
285
|
+
i18n-dictionary: i18n.yaml
|
|
286
|
+
publisher-logo: icc-full.svg
|
|
287
|
+
htmlcoverpage: htmlcoverpage.html
|
|
288
|
+
htmlstylesheet-override: htmlstylesheet-override.scss
|
|
289
|
+
value-attributes:
|
|
290
|
+
publisher: International Color Consortium
|
|
291
|
+
publisher_abbr: ICC
|
|
292
|
+
presentation-metadata-color-secondary: '#376795'
|
|
293
|
+
presentation-metadata-backcover-text: color.org
|
|
294
|
+
body-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
|
|
295
|
+
header-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
|
|
296
|
+
output-extensions: xml,html,pdf,doc
|
|
248
297
|
doctypes:
|
|
249
298
|
- taste: specification # Specification # The name goes into i18n.yaml
|
|
250
299
|
base: international-standard
|
|
@@ -320,24 +369,48 @@ on the metaorma.org site.
|
|
|
320
369
|
|
|
321
370
|
=== Base-Override configuration
|
|
322
371
|
|
|
323
|
-
The `base-override` section allows customization of
|
|
324
|
-
supported by the base flavor
|
|
372
|
+
The `base-override` section allows customization of document attributes
|
|
373
|
+
supported by the base flavor through two nested categories:
|
|
325
374
|
|
|
326
|
-
|
|
375
|
+
==== Filename Attributes (`filename-attributes`)
|
|
327
376
|
|
|
328
|
-
|
|
377
|
+
These are Metanorma document attributes that contain filenames and file paths:
|
|
378
|
+
|
|
379
|
+
* `copyright-notice`: Path to boilerplate file containing copyright, license, and legal notices
|
|
380
|
+
* `i18n-dictionary`: Path to internationalization dictionary
|
|
381
|
+
* `publisher-logo`: Path to organization logo file
|
|
382
|
+
* `htmlcoverpage`, `htmlintropage`: HTML output page templates
|
|
383
|
+
* `htmlstylesheet`, `htmlstylesheet-override`: HTML CSS stylesheets
|
|
384
|
+
* `wordcoverpage`, `wordintropage`: Word output page templates
|
|
385
|
+
* `wordstylesheet`, `wordstylesheet-override`: Word CSS stylesheets
|
|
386
|
+
* `standardstylesheet`, `standardstylesheet-override`: Secondary Word CSS stylesheets
|
|
387
|
+
* `header`: Word output header and footer content
|
|
388
|
+
* `pdf-stylesheet`, `pdf-stylesheet-override`: PDF XSLT stylesheets
|
|
389
|
+
* `customize`: Path to custom metanorma configuration file
|
|
390
|
+
* `coverpage-image`, `backpage-image`: Cover and back page image files
|
|
391
|
+
|
|
392
|
+
==== Value Attributes (`value-attributes`)
|
|
393
|
+
|
|
394
|
+
These are Metanorma document attributes that contain values (not filenames):
|
|
329
395
|
|
|
330
396
|
* `publisher`: Organization name
|
|
331
397
|
* `publisher_abbr`: Organization abbreviation
|
|
332
|
-
* `
|
|
398
|
+
* `body-font`, `header-font`, `monospace-font`: Typography settings
|
|
399
|
+
* `fonts`: Comma-delimited list of fonts to retrieve from Fontist
|
|
400
|
+
* `output-extensions`: Comma-delimited list of supported output formats
|
|
401
|
+
* `presentation-metadata-*`: Visual styling attributes for presentation, including:
|
|
402
|
+
** `presentation-metadata-color-secondary`: Secondary color for styling
|
|
403
|
+
** `presentation-metadata-backcover-text`: Text for document back cover
|
|
404
|
+
** `presentation-metadata-ul-label-list`: Unordered list label formatting
|
|
405
|
+
** `presentation-metadata-annex-delim`: Annex delimiter formatting
|
|
406
|
+
** `presentation-metadata-middle-title`: Middle title formatting
|
|
407
|
+
** `presentation-metadata-ol-label-template-alphabet`: Ordered list alphabet template
|
|
408
|
+
** `presentation-metadata-ol-label-template-alphabet_upper`: Ordered list uppercase alphabet template
|
|
409
|
+
** `presentation-metadata-ol-label-template-roman`: Ordered list roman numeral template
|
|
410
|
+
** `presentation-metadata-ol-label-template-roman_upper`: Ordered list uppercase roman numeral template
|
|
411
|
+
** `presentation-metadata-ol-label-template-arabic`: Ordered list arabic numeral template
|
|
333
412
|
* Custom organization-specific attributes
|
|
334
413
|
|
|
335
|
-
Template style attributes:
|
|
336
|
-
|
|
337
|
-
* `presentation-metadata-*`: Visual styling attributes
|
|
338
|
-
* Color schemes, logos, layout preferences
|
|
339
|
-
* Typography and formatting options
|
|
340
|
-
|
|
341
414
|
The availability of these attributes depends on the base flavor's supported
|
|
342
415
|
document attributes and template system.
|
|
343
416
|
|
|
@@ -346,6 +419,15 @@ For example, the ISO flavor supports specific presentation metadata attributes.
|
|
|
346
419
|
Other flavors may have different customization options. Please check the base
|
|
347
420
|
flavor documentation for available attributes.
|
|
348
421
|
|
|
422
|
+
== Mappings of structures from taste to base flavours
|
|
423
|
+
|
|
424
|
+
The taste configuration includes various document classifications which need to be
|
|
425
|
+
mapped between values specific to the taste, and corresponding values in the base flavor.
|
|
426
|
+
The document will actually be compiled with the base flavor settings, but it will be
|
|
427
|
+
rendered using the taste's corresponding values. These includes
|
|
428
|
+
|
|
429
|
+
* `doctype`: mapping of taste doctypes to native base flavor doctypes
|
|
430
|
+
* `stage`: mapping of taste stages to native base flavor stages
|
|
349
431
|
|
|
350
432
|
== Data model
|
|
351
433
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
== copyright-statement
|
|
2
|
+
=== {blank}
|
|
3
|
+
© {{ docyear }} Cloud Security Alliance, LLC.
|
|
4
|
+
|
|
5
|
+
{% if unpublished %}
|
|
6
|
+
== license-statement
|
|
7
|
+
=== Warning for Drafts
|
|
8
|
+
|
|
9
|
+
This document is not a CSA Standard. It is distributed for review and
|
|
10
|
+
comment, and is subject to change without notice and may not be referred to as
|
|
11
|
+
a Standard. Recipients of this draft are invited to submit, with their
|
|
12
|
+
comments, notification of any relevant patent rights of which they are aware
|
|
13
|
+
and to provide supporting documentation.
|
|
14
|
+
{% endif %}
|
|
15
|
+
|
|
16
|
+
== legal-statement
|
|
17
|
+
=== {blank}
|
|
18
|
+
All rights reserved. Unless otherwise specified, no part of this
|
|
19
|
+
publication may be reproduced or utilized otherwise in any form or by any
|
|
20
|
+
means, electronic or mechanical, including photocopying, or posting on the
|
|
21
|
+
internet or an intranet, without prior written permission. Permission can
|
|
22
|
+
be requested from the address below.
|
|
23
|
+
|
|
24
|
+
== feedback-statement
|
|
25
|
+
=== {blank}
|
|
26
|
+
Cloud Security Alliance
|
|
27
|
+
|
|
28
|
+
[align="left"]
|
|
29
|
+
2212 Queen Anne Ave N +
|
|
30
|
+
Seattle +
|
|
31
|
+
WA 98109 +
|
|
32
|
+
United States of America +
|
|
33
|
+
+
|
|
34
|
+
copyright@cloudsecurityalliance.com +
|
|
35
|
+
https://www.cloudsecurityalliance.com[www.cloudsecurityalliance.com]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
flavor: csa
|
|
3
|
+
owner: Cloud Security Alliance
|
|
4
|
+
base-flavor: generic
|
|
5
|
+
base-override:
|
|
6
|
+
filename-attributes:
|
|
7
|
+
customize: metanorma.yml
|
|
8
|
+
copyright-notice: boilerplate.adoc
|
|
9
|
+
i18n-dictionary: i18n.yaml
|
|
10
|
+
publisher-logo: logo.svg
|
|
11
|
+
htmlcoverpage: html_csa_titlepage.html
|
|
12
|
+
htmlstylesheet: htmlstyle.scss
|
|
13
|
+
htmlintropage: html_csa_intro.html
|
|
14
|
+
wordcoverpage: word_csa_titlepage.html
|
|
15
|
+
standardstylesheet: csa.scss
|
|
16
|
+
wordstylesheet: wordstyle.scss
|
|
17
|
+
wordintropage: word_csa_intro.html
|
|
18
|
+
header: header.html
|
|
19
|
+
pdf-stylesheet: csa.standard.xsl
|
|
20
|
+
value-attributes:
|
|
21
|
+
publisher: Cloud Security Alliance
|
|
22
|
+
publisher_abbr: CSA
|
|
23
|
+
body-font: Lato,"Source Sans Pro",sans-serif
|
|
24
|
+
header-font: Lato,"Source Sans Pro",sans-serif
|
|
25
|
+
monospace-font: '"Source Code Pro",monospace'
|
|
26
|
+
presentation-metadata-ul-label-list: "•, -, o"
|
|
27
|
+
presentation_metadata_annex_delim: "<br/>"
|
|
28
|
+
presentation_metadata_middle_title: ""
|
|
29
|
+
presentation_metadata_ol_label_template_alphabet_upper: "%<span class='fmt-label-delim'>)</span>"
|
|
30
|
+
output-extensions: xml,html,pdf,doc
|
|
31
|
+
doctypes:
|
|
32
|
+
- taste: standard
|
|
33
|
+
base: standard
|
|
34
|
+
- taste: guidance
|
|
35
|
+
base: guide
|
|
36
|
+
- taste: proposal
|
|
37
|
+
base: standard
|
|
38
|
+
- taste: report
|
|
39
|
+
base: report
|
|
40
|
+
- taste: whitepaper
|
|
41
|
+
base: specification
|
|
42
|
+
- taste: charter
|
|
43
|
+
base: directive
|
|
44
|
+
- taste: policy
|
|
45
|
+
base: admministrative
|
|
46
|
+
- taste: glossary
|
|
47
|
+
base: specification
|
|
48
|
+
- taste: case-study
|
|
49
|
+
base: report
|
|
50
|
+
stages:
|
|
51
|
+
proposal:
|
|
52
|
+
working-draft:
|
|
53
|
+
abbreviation: wd
|
|
54
|
+
committee-draft:
|
|
55
|
+
abbreviation: cd
|
|
56
|
+
draft-standard:
|
|
57
|
+
abbreviation: d
|
|
58
|
+
final-draft:
|
|
59
|
+
published:
|
|
60
|
+
default: true
|
|
61
|
+
published: true
|
|
62
|
+
withdrawn:
|
|
63
|
+
published: true
|