@airmark/quiver 0.38.0 → 0.39.0
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 +3 -3
- package/quills/medal_citation/0.1.0/Quill.yaml +49 -55
- package/quills/medal_citation/0.1.0/example.md +13 -9
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/GUST-FONT-LICENSE.txt +30 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/MANIFEST-TeX-Gyre-Termes.txt +201 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/README-TeX-Gyre-Termes.txt +317 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/texgyretermes-bold.otf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/texgyretermes-bolditalic.otf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/texgyretermes-italic.otf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/TeXGyreTermes/texgyretermes-regular.otf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/afam.typ +10 -71
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/afcm.typ +10 -48
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/citation.typ +57 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/config.typ +63 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/msm.typ +17 -52
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/primitives.typ +64 -0
- package/quills/medal_citation/0.1.0/plate.typ +41 -24
- package/templates/medal_citation.md +10 -10
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LICENSE +0 -102
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Bold.ttf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-BoldItalic.ttf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Italic.ttf +0 -0
- package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Regular.ttf +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#import "config.typ": *
|
|
2
|
+
|
|
3
|
+
#let blank(v) = v == none or v == [] or v == ""
|
|
4
|
+
|
|
5
|
+
// A line set with no height, so `above` is its baseline's drop from the line
|
|
6
|
+
// above it.
|
|
7
|
+
#let heading-line(body, above: 0pt, size: size.line, bold: false) = {
|
|
8
|
+
v(above)
|
|
9
|
+
align(center, text(
|
|
10
|
+
size: size,
|
|
11
|
+
weight: if bold { "bold" } else { "regular" },
|
|
12
|
+
top-edge: "baseline",
|
|
13
|
+
body,
|
|
14
|
+
))
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#let paragraph(body, text-size) = block(width: 100%, {
|
|
18
|
+
set text(size: text-size, top-edge: accomplishments.top-edge)
|
|
19
|
+
set par(justify: true, leading: accomplishments.pitch - accomplishments.top-edge)
|
|
20
|
+
// A pasted line break reflows across the block.
|
|
21
|
+
show linebreak: [ ]
|
|
22
|
+
show parbreak: [ ]
|
|
23
|
+
body
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
// Fills from the cursor to `bottom`, at the largest size that fits; past `min`
|
|
27
|
+
// it clips.
|
|
28
|
+
#let accomplishments-block(body, bottom) = context {
|
|
29
|
+
let top = here().position().y
|
|
30
|
+
let height = bottom - top
|
|
31
|
+
let width = page.width - 2 * accomplishments.side
|
|
32
|
+
let fits(s) = measure(width: width, paragraph(body, s)).height <= height
|
|
33
|
+
let steps = int((accomplishments.max - accomplishments.min) / accomplishments.step)
|
|
34
|
+
let chosen = range(steps + 1)
|
|
35
|
+
.map(i => accomplishments.max - i * accomplishments.step)
|
|
36
|
+
.find(fits)
|
|
37
|
+
let text-size = if chosen == none { accomplishments.min } else { chosen }
|
|
38
|
+
pad(x: accomplishments.side, block(height: height, clip: true, paragraph(body, text-size)))
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#let closing-block(date, signer, signing-field: none) = {
|
|
42
|
+
let at(dy, body) = place(top + left, dx: closing.column, dy: dy, body)
|
|
43
|
+
let centered(dy, body) = place(top + left, dy: dy, block(width: 100%, body))
|
|
44
|
+
set text(size: size.line, top-edge: "baseline")
|
|
45
|
+
centered(closing.given, heading-line(size: size.heading)[GIVEN UNDER MY HAND])
|
|
46
|
+
centered(closing.given + pitch.single, heading-line(date, bold: true))
|
|
47
|
+
if signing-field != none {
|
|
48
|
+
at(closing.rule - closing.signing, signing-field(closing.rule-length, closing.signing))
|
|
49
|
+
}
|
|
50
|
+
at(closing.rule, line(length: closing.rule-length, stroke: 0.6pt))
|
|
51
|
+
for (i, l) in signer.enumerate() {
|
|
52
|
+
at(closing.rule + closing.name-drop + i * pitch.single, l)
|
|
53
|
+
}
|
|
54
|
+
let seal = closing.seal
|
|
55
|
+
place(top + left, dx: seal.x, dy: seal.y, image("seal.png", width: seal.size))
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// `entries` pairs each label with its value; a blank value prints no entry.
|
|
59
|
+
#let footer-block(entries) = {
|
|
60
|
+
set text(size: footer.size, weight: "bold", top-edge: "baseline")
|
|
61
|
+
for ((label, value), stop) in entries.zip(footer.stops) {
|
|
62
|
+
if not blank(value) { place(top + left, dx: stop, dy: footer.baseline)[#label: #value] }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -18,9 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
#let ink(key) = ink-value(qm.data.at(key))
|
|
20
20
|
|
|
21
|
-
#let
|
|
21
|
+
#let date-pattern = "[day padding:none] [month repr:long] [year]"
|
|
22
22
|
#let shown-date(key) = {
|
|
23
|
-
let shown = qm.ink(qm.data, key,
|
|
23
|
+
let shown = qm.ink(qm.data, key, date-pattern)
|
|
24
|
+
if shown == none { [] } else { upper(shown) }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#let short-date(key) = {
|
|
28
|
+
let shown = qm.ink(qm.data, key, "[day padding:none] [month repr:short] [year]")
|
|
24
29
|
if shown == none { [] } else { upper(shown) }
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -30,36 +35,48 @@
|
|
|
30
35
|
if value == none { "" } else { value }
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
#let medal
|
|
34
|
-
|
|
38
|
+
#let medal = choice("medal")
|
|
39
|
+
|
|
40
|
+
#let cluster-line(n) = {
|
|
41
|
+
if n == none or n <= 0 { return "" }
|
|
42
|
+
let words = ("FIRST", "SECOND", "THIRD", "FOURTH", "FIFTH", "SIXTH", "SEVENTH", "EIGHTH", "NINTH", "TENTH")
|
|
43
|
+
let suffix = if calc.rem(n, 100) in (11, 12, 13) { "TH" } else {
|
|
44
|
+
("TH", "ST", "ND", "RD", "TH", "TH", "TH", "TH", "TH", "TH").at(calc.rem(n, 10))
|
|
45
|
+
}
|
|
46
|
+
words.at(n - 1, default: str(n) + suffix) + " OAK LEAF CLUSTER"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#let signing-field(width, height) = qm.signature-field(
|
|
50
|
+
"Signature",
|
|
51
|
+
field: "signer_title",
|
|
52
|
+
width: width,
|
|
53
|
+
height: height,
|
|
54
|
+
)
|
|
35
55
|
|
|
36
56
|
#let common = (
|
|
37
|
-
oak_leaf_cluster:
|
|
38
|
-
|
|
39
|
-
|
|
57
|
+
oak_leaf_cluster: cluster-line(qm.data.oak_leaf_cluster),
|
|
58
|
+
recipient: ink("recipient"),
|
|
59
|
+
reason: ink("reason"),
|
|
40
60
|
period_from: shown-date("period_from"),
|
|
41
61
|
period_to: shown-date("period_to"),
|
|
42
62
|
accomplishments: ink("accomplishments"),
|
|
43
|
-
|
|
63
|
+
signed_on: shown-date("signed_on"),
|
|
64
|
+
signer_name: ink("signer_name"),
|
|
65
|
+
signer_grade: ink("signer_grade"),
|
|
66
|
+
signer_title: ink("signer_title"),
|
|
67
|
+
signing_field: signing-field,
|
|
68
|
+
footer: (
|
|
69
|
+
("Special Order", ink("special_order")),
|
|
70
|
+
("Condition", ink("condition")),
|
|
71
|
+
("PAS", ink("pas")),
|
|
72
|
+
("RDP", short-date("rdp")),
|
|
73
|
+
),
|
|
44
74
|
)
|
|
45
75
|
|
|
46
76
|
#if medal == "Air and Space Achievement Medal" {
|
|
47
|
-
afam(
|
|
48
|
-
..common,
|
|
49
|
-
signed_on: medal-field.at("afam_signed_on"),
|
|
50
|
-
commander_name: ink-value(medal-field.commander_name),
|
|
51
|
-
))
|
|
77
|
+
afam(common)
|
|
52
78
|
} else if medal == "Meritorious Service Medal" {
|
|
53
|
-
msm(
|
|
54
|
-
..common,
|
|
55
|
-
signed_on: shown-date("medal.signed_on"),
|
|
56
|
-
commander_name: ink-value(medal-field.msm_commander_name),
|
|
57
|
-
commander_grade: ink-value(medal-field.commander_grade),
|
|
58
|
-
))
|
|
79
|
+
msm(common)
|
|
59
80
|
} else if medal == "Air and Space Commendation Medal" {
|
|
60
|
-
afcm(
|
|
61
|
-
..common,
|
|
62
|
-
signed_on: shown-date("medal.signed_on"),
|
|
63
|
-
commander_name: ink-value(medal-field.commander_name),
|
|
64
|
-
))
|
|
81
|
+
afcm(common)
|
|
65
82
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
$quill: medal_citation@0.1
|
|
3
3
|
$kind: main
|
|
4
4
|
medal: Air and Space Achievement Medal
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
recipient: Rank First M. Last
|
|
6
|
+
reason: Outstanding Achievement
|
|
7
|
+
period_from: 2026-01-01
|
|
8
|
+
period_to: 2026-12-31
|
|
9
|
+
accomplishments: Rank First M. Last distinguished himself or herself by outstanding achievement as Duty Title, Unit Name, Base, State. During this period, Rank Last accomplished one specific thing with its result. The distinctive accomplishments of Rank Last reflect credit upon himself or herself and the United States Air Force.
|
|
10
|
+
signer_name: FIRST M. LAST
|
|
11
|
+
signer_grade: Rank, USAF
|
|
12
|
+
signer_title: Duty Title
|
|
12
13
|
$ext:
|
|
13
14
|
editor:
|
|
14
15
|
tips:
|
|
15
|
-
-
|
|
16
|
+
- The reason follows FOR. Write Outstanding Achievement or Meritorious Service to match the citation's first sentence.
|
|
16
17
|
- The accomplishments paragraph is 1350 characters, including spaces.
|
|
17
|
-
-
|
|
18
|
-
- On the Meritorious Service Medal, the approving official's grade is its own line, and the name leaves the grade off.
|
|
18
|
+
- Set Oak leaf cluster to 1 or more for a later award of the same medal, and the foot line fields when the special order is cut.
|
|
19
19
|
~~~
|
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|