metanorma-taste 0.1.1 → 0.1.2
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 +2 -1
- data/data/icc/config.yaml +4 -0
- data/data/icc/copyright.adoc +10 -5
- data/data/icc/htmlcoverpage.html +18 -0
- data/data/icc/htmlstylesheet-override.scss +14 -0
- data/lib/metanorma/taste/base.rb +13 -0
- data/lib/metanorma/taste/base_override.rb +6 -0
- data/lib/metanorma/taste/taste_config.rb +20 -0
- data/lib/metanorma/taste/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c526c9f410e607e4e5e8d2762a5b579c2daf1b3d1eda8b9206fe53a81cdc975
|
4
|
+
data.tar.gz: afa5c3d412d33e17d771dc4f92c605328d62a2268477f71d53fdc65a1e66d364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5179c044951e81372db5d7d14915dc0345ea7dc76fb624dd48a5d2f4a5e3de74eb90eb0712e8d9db7fb959478049eac7dae6ea297b67d17ee633d9b0391ad71f
|
7
|
+
data.tar.gz: 473502639257573b2a5376fc607d3ece135fb2d38edb7b76ea31824a41c5e13e725854c5f9b17aaf062c8b2b18000dc6bc21dc9ea25ebc68e04d1ac0a25b9214
|
data/README.adoc
CHANGED
@@ -9,7 +9,8 @@ image:https://img.shields.io/github/commits-since/metanorma/metanorma-taste/late
|
|
9
9
|
|
10
10
|
=== Overview
|
11
11
|
|
12
|
-
A **Metanorma Taste** is a lightweight, configuration-only customization of an
|
12
|
+
A **Metanorma Taste** is a lightweight, configuration-only customization of an
|
13
|
+
existing Metanorma flavor.
|
13
14
|
|
14
15
|
Unlike a full Metanorma flavor, a taste does not define its own document
|
15
16
|
structure, validation rules, or processing logic. Instead, it provides
|
data/data/icc/config.yaml
CHANGED
@@ -5,11 +5,15 @@ base-flavor: iso
|
|
5
5
|
copyright-notice: copyright.adoc
|
6
6
|
i18n-dictionary: i18n.yaml
|
7
7
|
publisher-logo: icc-full.svg
|
8
|
+
htmlcoverpage: htmlcoverpage.html
|
9
|
+
htmlstylesheet-override: htmlstylesheet-override.scss
|
8
10
|
base-override:
|
9
11
|
publisher: International Color Consortium
|
10
12
|
publisher_abbr: ICC
|
11
13
|
presentation-metadata-color-secondary: '#376795'
|
12
14
|
presentation-metadata-backcover-text: color.org
|
15
|
+
body-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
|
16
|
+
header-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
|
13
17
|
doctypes:
|
14
18
|
- taste: specification # Specification # The name goes into i18n.yaml
|
15
19
|
base: international-standard
|
data/data/icc/copyright.adoc
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
== copyright-statement
|
2
|
+
|
3
|
+
// This is approved by ICC at metanorma/metanorma-taste#16
|
4
|
+
// Modified from mn-samples-icc's copyright-2004.adoc with the removal of the
|
5
|
+
// phrase 'modify, '.
|
6
|
+
|
2
7
|
=== Copyright notice
|
3
8
|
|
4
|
-
Copyright (c) {{ docyear }} International Color Consortium
|
9
|
+
Copyright (c) {{ docyear }} International Color Consortium (R)
|
5
10
|
|
6
11
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
7
12
|
this Specification (the "Specification") to exploit the Specification without
|
8
|
-
restriction including, without limitation, the rights to use, copy,
|
9
|
-
|
10
|
-
|
11
|
-
|
13
|
+
restriction including, without limitation, the rights to use, copy, merge,
|
14
|
+
publish, distribute, and/or sublicense, copies of the Specification, and to
|
15
|
+
permit persons to whom the Specification is furnished to do so, subject to the
|
16
|
+
following conditions:
|
12
17
|
|
13
18
|
Elements of this Specification may be the subject of intellectual property
|
14
19
|
rights of third parties throughout the world including, without limitation,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div id='toggle'> <span>•</span> </div>
|
2
|
+
|
3
|
+
<p class="coverpage_docnumber"><b>{{ docnumber }}</b></p>
|
4
|
+
|
5
|
+
<div class="logo">
|
6
|
+
<img src="{{ copublisher_logos[0] }}"/>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="docidentifier">
|
10
|
+
<p><b>
|
11
|
+
{{doctype_display}}<br/>
|
12
|
+
{{docnumber}}
|
13
|
+
</b></p>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div>
|
17
|
+
<p class="doctitle-en">{{ doctitle }}</p>
|
18
|
+
</div>
|
data/lib/metanorma/taste/base.rb
CHANGED
@@ -43,6 +43,9 @@ module Metanorma
|
|
43
43
|
publisher_abbr: "publisher_abbr",
|
44
44
|
presentation_metadata_color_secondary: "presentation-metadata-color-secondary",
|
45
45
|
presentation_metadata_backcover_text: "presentation-metadata-backcover-text",
|
46
|
+
body_font: "body-font",
|
47
|
+
header_font: "header-font",
|
48
|
+
monospace_font: "monospace-font",
|
46
49
|
}.freeze
|
47
50
|
|
48
51
|
# Initialize a new Base processor
|
@@ -145,6 +148,16 @@ module Metanorma
|
|
145
148
|
copyright_notice: "boilerplate-authority",
|
146
149
|
publisher_logo: "publisher_logo",
|
147
150
|
i18n_dictionary: "i18nyaml",
|
151
|
+
htmlcoverpage: "htmlcoverpage",
|
152
|
+
htmlintropage: "htmlintropage",
|
153
|
+
htmlstylesheet: "htmlstylesheet",
|
154
|
+
htmlstylesheet_override: "htmlstylesheet-override",
|
155
|
+
wordcoverpage: "wordcoverpage",
|
156
|
+
wordintropage: "wordintropage",
|
157
|
+
wordstylesheet: "wordstylesheet",
|
158
|
+
wordstylesheet_override: "wordstylesheet-override",
|
159
|
+
pdfstylesheet: "pdfstylesheet",
|
160
|
+
pdfstylesheet_override: "pdfstylesheet-override",
|
148
161
|
}
|
149
162
|
end
|
150
163
|
|
@@ -8,12 +8,18 @@ module Metanorma
|
|
8
8
|
class BaseOverride < Lutaml::Model::Serializable
|
9
9
|
attribute :publisher, :string
|
10
10
|
attribute :publisher_abbr, :string
|
11
|
+
attribute :body_font, :string
|
12
|
+
attribute :header_font, :string
|
13
|
+
attribute :monospace_font, :string
|
11
14
|
attribute :presentation_metadata_color_secondary, :string
|
12
15
|
attribute :presentation_metadata_backcover_text, :string
|
13
16
|
|
14
17
|
key_value do
|
15
18
|
map "publisher", to: :publisher
|
16
19
|
map "publisher_abbr", to: :publisher_abbr
|
20
|
+
map "body-font", to: :body_font
|
21
|
+
map "header-font", to: :header_font
|
22
|
+
map "monospace-font", to: :monospace_font
|
17
23
|
map "presentation-metadata-color-secondary",
|
18
24
|
to: :presentation_metadata_color_secondary
|
19
25
|
map "presentation-metadata-backcover-text",
|
@@ -14,6 +14,16 @@ module Metanorma
|
|
14
14
|
attribute :copyright_notice, :string
|
15
15
|
attribute :i18n_dictionary, :string
|
16
16
|
attribute :publisher_logo, :string
|
17
|
+
attribute :htmlcoverpage, :string
|
18
|
+
attribute :htmlintropage, :string
|
19
|
+
attribute :htmlstylesheet, :string
|
20
|
+
attribute :htmlstylesheet_override, :string
|
21
|
+
attribute :wordcoverpage, :string
|
22
|
+
attribute :wordintropage, :string
|
23
|
+
attribute :wordstylesheet, :string
|
24
|
+
attribute :wordstylesheet_override, :string
|
25
|
+
attribute :pdfstylesheet, :string
|
26
|
+
attribute :pdfstylesheet_override, :string
|
17
27
|
attribute :base_override, BaseOverride
|
18
28
|
attribute :doctypes, DoctypeConfig, collection: true
|
19
29
|
attribute :directory, :string
|
@@ -25,6 +35,16 @@ module Metanorma
|
|
25
35
|
map "copyright-notice", to: :copyright_notice
|
26
36
|
map "i18n-dictionary", to: :i18n_dictionary
|
27
37
|
map "publisher-logo", to: :publisher_logo
|
38
|
+
map "htmlcoverpage", to: :htmlcoverpage
|
39
|
+
map "htmlintropage", to: :htmlintropage
|
40
|
+
map "htmlstylesheet", to: :htmlstylesheet
|
41
|
+
map "htmlstylesheet-override", to: :htmlstylesheet_override
|
42
|
+
map "wordcoverpage", to: :wordcoverpage
|
43
|
+
map "wordintropage", to: :wordintropage
|
44
|
+
map "wordstylesheet", to: :wordstylesheet
|
45
|
+
map "wordstylesheet-override", to: :wordstylesheet_override
|
46
|
+
map "pdfstylesheet", to: :pdfstylesheet
|
47
|
+
map "pdfstylesheet-override", to: :pdfstylesheet_override
|
28
48
|
map "base-override", to: :base_override
|
29
49
|
map "doctypes", to: :doctypes
|
30
50
|
end
|
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.1.
|
4
|
+
version: 0.1.2
|
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-07-
|
11
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lutaml-model
|
@@ -50,6 +50,8 @@ files:
|
|
50
50
|
- data/enosema/logo.svg
|
51
51
|
- data/icc/config.yaml
|
52
52
|
- data/icc/copyright.adoc
|
53
|
+
- data/icc/htmlcoverpage.html
|
54
|
+
- data/icc/htmlstylesheet-override.scss
|
53
55
|
- data/icc/i18n.yaml
|
54
56
|
- data/icc/icc-full-new.svg
|
55
57
|
- data/icc/icc-full.svg
|