@airmark/quiver 0.24.2 → 0.24.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmark/quiver",
3
- "version": "0.24.2",
3
+ "version": "0.24.4",
4
4
  "description": "Airmark Quiver — Air Force and DAF document Quills for Quillmark.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,8 +16,8 @@
16
16
  "node": ">=24"
17
17
  },
18
18
  "devDependencies": {
19
- "@quillmark/quiver": "^0.12.0",
20
- "@quillmark/wasm": "^0.87.0"
19
+ "@quillmark/quiver": "^0.13.0",
20
+ "@quillmark/wasm": "^0.88.0"
21
21
  },
22
22
  "scripts": {
23
23
  "test": "quiver test",
@@ -92,12 +92,12 @@ main:
92
92
  description: Bold-caps line below the seal; blank to omit.
93
93
 
94
94
  tag_line:
95
- type: string
95
+ type: markdown
96
96
  default: ""
97
97
  ui:
98
98
  group: Letterhead
99
99
  compact: true
100
- description: Organizational motto at the bottom of the page.
100
+ description: "Organizational motto at the bottom of the page. Supports Markdown emphasis (e.g. *italics*, **bold**)."
101
101
 
102
102
  freedom250:
103
103
  type: boolean
@@ -191,7 +191,7 @@ main:
191
191
  - TOP SECRET
192
192
  default: ""
193
193
  ui:
194
- group: Additional
194
+ group: Classification
195
195
  compact: true
196
196
  description: "Select the classification marking shown in the header and footer banner. Unclassified documents typically omit this banner entirely — leave blank unless the document is CUI or classified. Mark per DAFI 16-1404 (DoDM 5200.48 for CUI) and applicable DoD guidance."
197
197
 
@@ -199,9 +199,41 @@ main:
199
199
  type: string
200
200
  default: ""
201
201
  ui:
202
- group: Additional
202
+ group: Classification
203
+ compact: true
204
+ description: "Banner dissemination suffix appended after double slash (e.g. 'NF' renders as CUI//NF in the header/footer). Leave blank for no suffix."
205
+
206
+ cui_controlled_by:
207
+ type: string
208
+ default: ""
209
+ ui:
210
+ group: Classification
211
+ compact: true
212
+ description: "Office or organization that designated this information as CUI (e.g., 'SAF/AA'). Required by DoDM 5200.48 when classification is CUI."
213
+
214
+ cui_category:
215
+ type: string
216
+ default: ""
217
+ ui:
218
+ group: Classification
219
+ compact: true
220
+ description: "CUI category from the DoD CUI Registry (e.g., 'Privacy/MED', 'CTI', 'PRVCY'). Leave blank to omit."
221
+
222
+ cui_limited_dissemination:
223
+ type: string
224
+ default: ""
225
+ ui:
226
+ group: Classification
227
+ compact: true
228
+ description: "Limited dissemination control shown in the indicator block (e.g., 'FEDONLY', 'NOFORN'). Independent from the banner suffix above."
229
+
230
+ cui_poc:
231
+ type: string
232
+ default: ""
233
+ ui:
234
+ group: Classification
203
235
  compact: true
204
- description: "Optional marking appended after double slash (e.g. NF with classification CUI renders as CUI//NF). Leave blank to show only the classification with no //."
236
+ description: "Point of contact for CUI questions (e.g., 'Capt J. Smith, DSN 555-1234, john.smith@us.af.mil'). Required by DoDM 5200.48 when classification is CUI."
205
237
 
206
238
  card_kinds:
207
239
  indorsement:
@@ -0,0 +1,102 @@
1
+ Digitized data copyright (c) 2010 Google Corporation
2
+ with Reserved Font Arimo, Tinos and Cousine.
3
+ Copyright (c) 2012 Red Hat, Inc.
4
+ with Reserved Font Name Liberation.
5
+
6
+ This Font Software is licensed under the SIL Open Font License,
7
+ Version 1.1.
8
+
9
+ This license is copied below, and is also available with a FAQ at:
10
+ http://scripts.sil.org/OFL
11
+
12
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
13
+
14
+ PREAMBLE The goals of the Open Font License (OFL) are to stimulate
15
+ worldwide development of collaborative font projects, to support the font
16
+ creation efforts of academic and linguistic communities, and to provide
17
+ a free and open framework in which fonts may be shared and improved in
18
+ partnership with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves.
22
+ The fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply to
27
+ any document created using the fonts or their derivatives.
28
+
29
+
30
+
31
+ DEFINITIONS
32
+ "Font Software" refers to the set of files released by the Copyright
33
+ Holder(s) under this license and clearly marked as such.
34
+ This may include source files, build scripts and documentation.
35
+
36
+ "Reserved Font Name" refers to any names specified as such after the
37
+ copyright statement(s).
38
+
39
+ "Original Version" refers to the collection of Font Software components
40
+ as distributed by the Copyright Holder(s).
41
+
42
+ "Modified Version" refers to any derivative made by adding to, deleting,
43
+ or substituting ? in part or in whole ?
44
+ any of the components of the Original Version, by changing formats or
45
+ by porting the Font Software to a new environment.
46
+
47
+ "Author" refers to any designer, engineer, programmer, technical writer
48
+ or other person who contributed to the Font Software.
49
+
50
+
51
+ PERMISSION & CONDITIONS
52
+
53
+ Permission is hereby granted, free of charge, to any person obtaining a
54
+ copy of the Font Software, to use, study, copy, merge, embed, modify,
55
+ redistribute, and sell modified and unmodified copies of the Font
56
+ Software, subject to the following conditions:
57
+
58
+ 1) Neither the Font Software nor any of its individual components,in
59
+ Original or Modified Versions, may be sold by itself.
60
+
61
+ 2) Original or Modified Versions of the Font Software may be bundled,
62
+ redistributed and/or sold with any software, provided that each copy
63
+ contains the above copyright notice and this license. These can be
64
+ included either as stand-alone text files, human-readable headers or
65
+ in the appropriate machine-readable metadata fields within text or
66
+ binary files as long as those fields can be easily viewed by the user.
67
+
68
+ 3) No Modified Version of the Font Software may use the Reserved Font
69
+ Name(s) unless explicit written permission is granted by the
70
+ corresponding Copyright Holder. This restriction only applies to the
71
+ primary font name as presented to the users.
72
+
73
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
74
+ Software shall not be used to promote, endorse or advertise any
75
+ Modified Version, except to acknowledge the contribution(s) of the
76
+ Copyright Holder(s) and the Author(s) or with their explicit written
77
+ permission.
78
+
79
+ 5) The Font Software, modified or unmodified, in part or in whole, must
80
+ be distributed entirely under this license, and must not be distributed
81
+ under any other license. The requirement for fonts to remain under
82
+ this license does not apply to any document created using the Font
83
+ Software.
84
+
85
+
86
+
87
+ TERMINATION
88
+ This license becomes null and void if any of the above conditions are not met.
89
+
90
+
91
+
92
+ DISCLAIMER
93
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
95
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
96
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
97
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
98
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
99
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
100
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
101
+ DEALINGS IN THE FONT SOFTWARE.
102
+
@@ -19,8 +19,11 @@
19
19
  // =============================================================================
20
20
  // AFH 33-337 §5: "Use 12 point Times New Roman font for text"
21
21
 
22
- #let DEFAULT_LETTERHEAD_FONTS = ("Copperplate CC", "NimbusRomNo9L", "times new roman")
23
- #let DEFAULT_BODY_FONTS = ("NimbusRomNo9L", "times new roman") // AFH 33-337 §5: Times New Roman required
22
+ #let DEFAULT_LETTERHEAD_FONTS = ("Copperplate CC", "NimbusRomNo9L")
23
+ #let DEFAULT_BODY_FONTS = ("NimbusRomNo9L",) // AFH 33-337 §5: Times New Roman required; NimbusRomNo9L is a metric-compatible clone
24
+ // Static monospace face for raw/code text. Liberation Mono is metric-compatible with
25
+ // Courier New; only the regular weight is bundled (no bold or italic variants).
26
+ #let DEFAULT_MONO_FONTS = ("Liberation Mono",)
24
27
  #let LETTERHEAD_COLOR = rgb("#355e93") // Faded USAF blue for letterhead
25
28
 
26
29
  // =============================================================================
@@ -26,6 +26,10 @@
26
26
  memo_for_cols: 3,
27
27
  classification_level: none,
28
28
  dissemination: none,
29
+ cui_controlled_by: none,
30
+ cui_category: none,
31
+ cui_limited_dissemination: none,
32
+ cui_poc: none,
29
33
  footer_tag_line: none,
30
34
  memo_style: "usaf",
31
35
  it,
@@ -60,10 +64,38 @@
60
64
  }
61
65
  let classification_color = get-classification-level-color(classification_level)
62
66
 
67
+ // Build the CUI designation indicator block (DoDM 5200.48, Table 1).
68
+ // Rendered in the footer of page 1 only when classification is CUI and at
69
+ // least one indicator field is provided.
70
+ let cui_indicator = if (
71
+ classification_level != none
72
+ and type(classification_level) == str
73
+ and classification_level.trim().starts-with("CUI")
74
+ ) {
75
+ let lines = ()
76
+ if cui_controlled_by != none and type(cui_controlled_by) == str and cui_controlled_by.trim() != "" {
77
+ lines.push([#strong[Controlled By:] #cui_controlled_by.trim()])
78
+ }
79
+ if cui_category != none and type(cui_category) == str and cui_category.trim() != "" {
80
+ lines.push([#strong[CUI Category:] #cui_category.trim()])
81
+ }
82
+ let ldc = if cui_limited_dissemination != none and type(cui_limited_dissemination) == str { cui_limited_dissemination.trim() } else { "" }
83
+ if ldc != "" {
84
+ lines.push([#strong[LDC:] #upper(ldc)])
85
+ }
86
+ if cui_poc != none and type(cui_poc) == str and cui_poc.trim() != "" {
87
+ lines.push([#strong[POC:] #cui_poc.trim()])
88
+ }
89
+ if lines.len() > 0 { lines.join(linebreak()) } else { none }
90
+ } else {
91
+ none
92
+ }
93
+
63
94
  // Document-wide typography settings (inlined from configure())
64
95
  set par(leading: spacing.line, spacing: spacing.line, justify: false)
65
96
  set block(above: spacing.line, below: 0em, spacing: 0em)
66
97
  set text(font: body_font, size: font_size, fallback: true)
98
+ show raw: set text(font: DEFAULT_MONO_FONTS) // Static monospace face for inline code and code blocks
67
99
 
68
100
  set page(
69
101
  paper: "us-letter",
@@ -105,6 +137,25 @@
105
137
  )
106
138
  }
107
139
 
140
+ // DoDM 5200.48 §3: CUI designation indicator block — first page only,
141
+ // bottom-right corner, above the classification banner.
142
+ // dy: -0.85in clears the tag line (at -0.625in) and the CUI banner (at -0.375in).
143
+ // dx: -0.5in pulls it away from the right margin edge for visual breathing room.
144
+ context if counter(page).get().first() == 1 and cui_indicator != none {
145
+ place(
146
+ bottom + right,
147
+ dy: -0.85in,
148
+ block(
149
+ inset: 0pt,
150
+ {
151
+ set text(font: DEFAULT_BODY_FONTS, size: 10pt)
152
+ set par(leading: 0.4em, spacing: 0pt)
153
+ cui_indicator
154
+ }
155
+ )
156
+ )
157
+ }
158
+
108
159
  if not falsey(footer_tag_line) {
109
160
  place(
110
161
  bottom + center,
@@ -43,6 +43,12 @@
43
43
 
44
44
  ..if "dissemination" in data { (dissemination: data.dissemination) },
45
45
 
46
+ // CUI designation indicator block fields (DoDM 5200.48)
47
+ ..if "cui_controlled_by" in data { (cui_controlled_by: data.cui_controlled_by) },
48
+ ..if "cui_category" in data { (cui_category: data.cui_category) },
49
+ ..if "cui_limited_dissemination" in data { (cui_limited_dissemination: data.cui_limited_dissemination) },
50
+ ..if "cui_poc" in data { (cui_poc: data.cui_poc) },
51
+
46
52
  // USAF vs DAF memorandum style (date format, body indentation)
47
53
  memo_style: data.at("memo_style", default: "usaf"),
48
54