@airmark/quiver 0.35.8 → 0.37.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.
Files changed (127) hide show
  1. package/README.md +1 -0
  2. package/package.json +4 -4
  3. package/quills/af4141/0.1.0/Quill.yaml +54 -43
  4. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/GUST-FONT-LICENSE.txt +30 -0
  5. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  6. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/README-TeX-Gyre-Termes.txt +317 -0
  7. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/texgyretermes-bold.otf +0 -0
  8. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/texgyretermes-bolditalic.otf +0 -0
  9. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/texgyretermes-italic.otf +0 -0
  10. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/texgyretermes-regular.otf +0 -0
  11. package/quills/af4141/0.1.0/plate.typ +11 -10
  12. package/quills/afmc_moa/0.0.1/Quill.yaml +143 -126
  13. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/GUST-FONT-LICENSE.txt +30 -0
  14. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  15. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/README-TeX-Gyre-Termes.txt +317 -0
  16. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/texgyretermes-bold.otf +0 -0
  17. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/texgyretermes-bolditalic.otf +0 -0
  18. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/texgyretermes-italic.otf +0 -0
  19. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/TeXGyreTermes/texgyretermes-regular.otf +0 -0
  20. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/src/config.typ +1 -1
  21. package/quills/afmc_moa/0.0.1/plate.typ +1 -1
  22. package/quills/classic_resume/0.1.0/Quill.yaml +62 -72
  23. package/quills/classic_resume/0.1.0/plate.typ +12 -11
  24. package/quills/cyber_career_plan/0.1.0/Quill.yaml +270 -264
  25. package/quills/cyber_career_plan/0.1.0/plate.typ +2 -2
  26. package/quills/daf1206/0.1.0/Quill.yaml +9 -9
  27. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/GUST-FONT-LICENSE.txt +30 -0
  28. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  29. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/README-TeX-Gyre-Termes.txt +317 -0
  30. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/texgyretermes-bold.otf +0 -0
  31. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/texgyretermes-bolditalic.otf +0 -0
  32. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/texgyretermes-italic.otf +0 -0
  33. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/texgyretermes-regular.otf +0 -0
  34. package/quills/daf1206/0.1.0/plate.typ +13 -12
  35. package/quills/daf4392/0.1.0/Quill.yaml +51 -44
  36. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/GUST-FONT-LICENSE.txt +30 -0
  37. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  38. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/README-TeX-Gyre-Termes.txt +317 -0
  39. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/texgyretermes-bold.otf +0 -0
  40. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/texgyretermes-bolditalic.otf +0 -0
  41. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/texgyretermes-italic.otf +0 -0
  42. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/texgyretermes-regular.otf +0 -0
  43. package/quills/daf4392/0.1.0/plate.typ +15 -14
  44. package/quills/medal_citation/0.1.0/Quill.yaml +101 -0
  45. package/quills/medal_citation/0.1.0/example.md +14 -0
  46. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/.gitignore +7 -0
  47. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/LICENSE +201 -0
  48. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LICENSE +102 -0
  49. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Bold.ttf +0 -0
  50. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-BoldItalic.ttf +0 -0
  51. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Italic.ttf +0 -0
  52. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/fonts/LiberationSerif/LiberationSerif-Regular.ttf +0 -0
  53. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/afam.typ +71 -0
  54. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/afcm.typ +48 -0
  55. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/lib.typ +3 -0
  56. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/medal-afam.png +0 -0
  57. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/medal-afcm.png +0 -0
  58. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/medal-msm.png +0 -0
  59. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/msm.typ +53 -0
  60. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/src/seal.png +0 -0
  61. package/quills/medal_citation/0.1.0/packages/tonguetoquill-medal-citation/typst.toml +12 -0
  62. package/quills/medal_citation/0.1.0/plate.typ +145 -0
  63. package/quills/usaf_letter/0.1.0/Quill.yaml +144 -141
  64. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/GUST-FONT-LICENSE.txt +30 -0
  65. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  66. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/README-TeX-Gyre-Termes.txt +317 -0
  67. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/texgyretermes-bold.otf +0 -0
  68. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/texgyretermes-bolditalic.otf +0 -0
  69. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/texgyretermes-italic.otf +0 -0
  70. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/TeXGyreTermes/texgyretermes-regular.otf +0 -0
  71. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/src/config.typ +3 -3
  72. package/quills/usaf_memo/0.2.0/Quill.yaml +254 -221
  73. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/GUST-FONT-LICENSE.txt +30 -0
  74. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  75. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/README-TeX-Gyre-Termes.txt +317 -0
  76. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-bold.otf +0 -0
  77. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-bolditalic.otf +0 -0
  78. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-italic.otf +0 -0
  79. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-regular.otf +0 -0
  80. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/config.typ +2 -2
  81. package/quills/usaf_memo/0.2.0/plate.typ +22 -18
  82. package/quills/usaf_memo/0.3.0/Quill.yaml +233 -221
  83. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/GUST-FONT-LICENSE.txt +30 -0
  84. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/MANIFEST-TeX-Gyre-Termes.txt +201 -0
  85. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/README-TeX-Gyre-Termes.txt +317 -0
  86. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-bold.otf +0 -0
  87. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-bolditalic.otf +0 -0
  88. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-italic.otf +0 -0
  89. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/TeXGyreTermes/texgyretermes-regular.otf +0 -0
  90. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/src/config.typ +3 -3
  91. package/templates/medal_citation.md +19 -0
  92. package/templates/templates.json +7 -0
  93. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/GNU General Public License.txt +0 -340
  94. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/NimbusRomNo9L-Med.otf +0 -0
  95. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/NimbusRomNo9L-MedIta.otf +0 -0
  96. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/NimbusRomNo9L-Reg.otf +0 -0
  97. package/quills/af4141/0.1.0/packages/typst-af4141/fonts/NimbusRomNo9L-RegIta.otf +0 -0
  98. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/NimbusRomanNo9L/GNU General Public License.txt +0 -340
  99. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  100. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  101. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  102. package/quills/afmc_moa/0.0.1/packages/typst-afmc-moa/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
  103. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/GNU General Public License.txt +0 -340
  104. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/NimbusRomNo9L-Med.otf +0 -0
  105. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/NimbusRomNo9L-MedIta.otf +0 -0
  106. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/NimbusRomNo9L-Reg.otf +0 -0
  107. package/quills/daf1206/0.1.0/packages/typst-daf1206/fonts/NimbusRomNo9L-RegIta.otf +0 -0
  108. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/GNU General Public License.txt +0 -340
  109. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/NimbusRomNo9L-Med.otf +0 -0
  110. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/NimbusRomNo9L-MedIta.otf +0 -0
  111. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/NimbusRomNo9L-Reg.otf +0 -0
  112. package/quills/daf4392/0.1.0/packages/daf4392page2_pkg/fonts/NimbusRomNo9L-RegIta.otf +0 -0
  113. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/NimbusRomanNo9L/GNU General Public License.txt +0 -340
  114. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  115. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  116. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  117. package/quills/usaf_letter/0.1.0/packages/tonguetoquill-usaf-letter/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
  118. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/GNU General Public License.txt +0 -340
  119. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  120. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  121. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  122. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
  123. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/GNU General Public License.txt +0 -340
  124. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  125. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  126. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  127. package/quills/usaf_memo/0.3.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Nibs
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -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
+
@@ -0,0 +1,71 @@
1
+ #let font = "Liberation Serif"
2
+
3
+ #let blank(v) = v == none or v == [] or v == ""
4
+
5
+ #let ordinal(n) = {
6
+ let mod = calc.rem(n, 10)
7
+ let teen = n >= 11 and n <= 13
8
+ let suffix = if teen or mod == 0 or mod >= 4 { "th" }
9
+ else if mod == 1 { "st" }
10
+ else if mod == 2 { "nd" }
11
+ else { "rd" }
12
+ str(n) + suffix
13
+ }
14
+
15
+ #let month-year(d) = upper(d.display("[month repr:long]")) + " " + str(d.year())
16
+
17
+ #let citation(f) = {
18
+ set page(paper: "us-letter", margin: 0pt)
19
+ set text(font: font, size: 15pt, fill: black, hyphenate: false)
20
+ set par(leading: 0.5em, spacing: 0.5em)
21
+
22
+ place(top + left, dx: 187pt, dy: 32.6pt, image("medal-afam.png", width: 242.9pt))
23
+
24
+ place(center + top, dy: 164.8pt, text(size: 21.5pt, weight: "bold")[DEPARTMENT OF THE AIR FORCE])
25
+ place(center + top, dy: 208.1pt, text(size: 11.7pt, weight: "bold")[THIS IS TO CERTIFY THAT])
26
+ place(center + top, dy: 222.7pt, text(size: 15.6pt, weight: "bold")[THE AIR AND SPACE ACHIEVEMENT MEDAL])
27
+ // A later award centers the cluster under the medal name. Basic prints no line.
28
+ let cluster = if blank(f.oak_leaf_cluster) or f.oak_leaf_cluster == "Basic" { none } else { upper(f.oak_leaf_cluster) }
29
+ let drop = if cluster == none { 0pt } else { 16pt }
30
+ if cluster != none {
31
+ place(center + top, dy: 250pt + drop, text(size: 11.7pt, weight: "bold", cluster))
32
+ }
33
+ place(center + top, dy: 275pt + drop, text(size: 11.7pt, weight: "bold")[HAS BEEN AWARDED TO])
34
+ place(center + top, dy: 293pt + drop, text(size: 9.8pt, upper(f.rank)))
35
+ place(center + top, dy: 308.5pt + drop, text(size: 11.7pt, weight: "bold")[FOR])
36
+ place(center + top, dy: 326.6pt + drop, text(size: 11.7pt, upper(f.service)))
37
+ place(center + top, dy: 343.3pt + drop, text(size: 9.8pt)[#f.period_from #h(8pt) TO #h(8pt) #f.period_to])
38
+ place(center + top, dy: 369.8pt + drop, text(size: 11.7pt, weight: "bold")[ACCOMPLISHMENTS])
39
+ // The seal is 69.5pt tall and stays on the page, so the signature stops here.
40
+ let sign-dy = 716pt
41
+ let given-dy = sign-dy - 16pt
42
+ let story-dy = 406.7pt + drop
43
+ let story-h = given-dy - 8pt - story-dy
44
+ // Half an inch keeps the 15pt lines off the page edge.
45
+ let side = 36pt
46
+ let story-w = 612pt - side - side
47
+ let story = block(width: story-w, {
48
+ set par(justify: true, leading: 0.5em, spacing: 0.65em)
49
+ // A pasted line break reflows across the block.
50
+ show linebreak: [ ]
51
+ show parbreak: [ ]
52
+ f.accomplishments
53
+ })
54
+ place(top + left, dx: side, dy: story-dy, block(width: story-w, height: story-h, clip: true, story))
55
+
56
+ place(top + left, dx: 464.7pt, dy: sign-dy - 8pt, image("seal.png", width: 69.5pt))
57
+ place(top + left, dx: 82.7pt, dy: given-dy, text(size: 11.7pt)[
58
+ GIVEN UNDER MY HAND THIS
59
+ #h(12pt)
60
+ #if type(f.signed_on) == datetime {
61
+ ordinal(f.signed_on.day())
62
+ h(12pt)
63
+ [DAY OF]
64
+ h(12pt)
65
+ month-year(f.signed_on)
66
+ }
67
+ ])
68
+ place(top + left, dx: 82.7pt, dy: sign-dy, line(length: 211pt, stroke: 0.6pt))
69
+ place(top + left, dx: 82.7pt, dy: sign-dy + 15.4pt, text(size: 11.7pt, f.commander_name))
70
+ place(top + left, dx: 82.7pt, dy: sign-dy + 28.9pt, text(size: 11.7pt, f.commander_title))
71
+ }
@@ -0,0 +1,48 @@
1
+ #let font = "Liberation Serif"
2
+
3
+ #let blank(v) = v == none or v == [] or v == ""
4
+
5
+ #let citation(f) = {
6
+ set page(paper: "us-letter", margin: 0pt)
7
+ set text(font: font, size: 15pt, fill: black, hyphenate: false)
8
+ set par(leading: 0.5em, spacing: 0.5em)
9
+
10
+ // Headings sit 3pt right of the page center, matching the certificate.
11
+ let heading(dy, size, weight, body) = {
12
+ place(center + top, dx: 3pt, dy: dy, text(size: size, weight: weight, body))
13
+ }
14
+
15
+ place(top + left, dx: 203.3pt, dy: 57.7pt, image("medal-afcm.png", width: 211.6pt))
16
+
17
+ heading(185.6pt, 24.5pt, "bold")[DEPARTMENT OF THE AIR FORCE]
18
+ heading(226.2pt, 13.7pt, "bold")[THIS IS TO CERTIFY THAT]
19
+ heading(246.3pt, 17.6pt, "bold")[THE AIR AND SPACE COMMENDATION MEDAL]
20
+ // The medal name ends near 264pt and the next heading starts at 287pt.
21
+ let cluster = if blank(f.oak_leaf_cluster) or f.oak_leaf_cluster == "Basic" { none } else { upper(f.oak_leaf_cluster) }
22
+ if cluster != none {
23
+ heading(267.5pt, 11.7pt, "bold", cluster)
24
+ }
25
+ heading(288.6pt, 13.7pt, "bold")[HAS BEEN AWARDED TO]
26
+ heading(305.1pt, 9.8pt, "regular", upper(f.rank))
27
+ heading(332.6pt, 13.7pt, "bold")[FOR]
28
+ heading(359.6pt, 11.7pt, "regular", upper(f.service))
29
+ heading(383.4pt, 9.8pt, "regular")[#f.period_from #h(8pt) TO #h(8pt) #f.period_to]
30
+ heading(408.4pt, 13.7pt, "bold")[ACCOMPLISHMENTS]
31
+ let side = 36pt
32
+ let story-w = 612pt - side - side
33
+ let story-dy = 447pt
34
+ let story = block(width: story-w, {
35
+ set par(justify: true, leading: 0.5em, spacing: 0.65em)
36
+ show linebreak: [ ]
37
+ show parbreak: [ ]
38
+ f.accomplishments
39
+ })
40
+ place(top + left, dx: side, dy: story-dy, story)
41
+
42
+ heading(716pt, 9.8pt, "regular")[GIVEN UNDER MY HAND]
43
+ heading(730pt, 9.8pt, "regular", f.signed_on)
44
+ place(top + left, dx: 465.6pt, dy: 720pt, image("seal.png", width: 69.7pt))
45
+ place(top + left, dx: 82.8pt, dy: 746pt, line(length: 200pt, stroke: 0.6pt))
46
+ place(top + left, dx: 82.8pt, dy: 754pt, text(size: 11.7pt, f.commander_name))
47
+ place(top + left, dx: 82.8pt, dy: 768pt, text(size: 11.7pt, f.commander_title))
48
+ }
@@ -0,0 +1,3 @@
1
+ #import "afam.typ": citation as afam
2
+ #import "afcm.typ": citation as afcm
3
+ #import "msm.typ": citation as msm
@@ -0,0 +1,53 @@
1
+ #let font = "Liberation Serif"
2
+
3
+ #let blank(v) = v == none or v == [] or v == ""
4
+
5
+ #let citation(f) = {
6
+ set page(paper: "us-letter", margin: 0pt)
7
+ set text(font: font, size: 15pt, fill: black, hyphenate: false)
8
+ set par(leading: 0.5em, spacing: 0.5em)
9
+
10
+ // Headings sit 2.4pt right of the page center, matching the certificate.
11
+ let heading(dy, size, weight, body) = {
12
+ place(center + top, dx: 2.4pt, dy: dy, text(size: size, weight: weight, body))
13
+ }
14
+
15
+ place(top + left, dx: 187.6pt, dy: 47.3pt, image("medal-msm.png", width: 242.2pt))
16
+
17
+ heading(162.7pt, 22.5pt, "bold")[THE UNITED STATES OF AMERICA]
18
+ heading(188.0pt, 13.7pt, "regular")[TO ALL WHO SHALL SEE THESE PRESENTS, GREETING:]
19
+ heading(203.9pt, 13.7pt, "regular")[THIS IS TO CERTIFY THAT THE PRESIDENT OF THE UNITED STATES OF]
20
+ heading(219.8pt, 13.7pt, "regular")[AMERICA AUTHORIZED BY EXECUTIVE ORDER, 16 JANUARY 1969]
21
+ heading(235.6pt, 13.7pt, "regular")[HAS]
22
+ heading(251.5pt, 13.7pt, "regular")[AWARDED]
23
+ heading(270.2pt, 17.6pt, "bold")[THE MERITORIOUS SERVICE MEDAL]
24
+ // The medal name ends near 288pt and "TO" starts at 314pt.
25
+ let cluster = if blank(f.oak_leaf_cluster) or f.oak_leaf_cluster == "Basic" { none } else { upper(f.oak_leaf_cluster) }
26
+ if cluster != none {
27
+ heading(293.5pt, 11.7pt, "bold", cluster)
28
+ }
29
+ heading(314.9pt, 12.7pt, "bold")[TO]
30
+ heading(339.9pt, 9.8pt, "regular", upper(f.rank))
31
+ heading(352pt, 12.7pt, "bold")[FOR]
32
+ heading(366pt, 11.7pt, "regular", upper(f.service))
33
+ heading(379pt, 9.8pt, "regular")[#f.period_from #h(8pt) TO #h(8pt) #f.period_to]
34
+ heading(391pt, 12.7pt, "bold")[ACCOMPLISHMENTS]
35
+ let side = 36pt
36
+ let story-w = 612pt - side - side
37
+ let story-dy = 429pt
38
+ let story = block(width: story-w, {
39
+ set par(justify: true, leading: 0.5em, spacing: 0.65em)
40
+ show linebreak: [ ]
41
+ show parbreak: [ ]
42
+ f.accomplishments
43
+ })
44
+ place(top + left, dx: side, dy: story-dy, story)
45
+
46
+ heading(694pt, 9.8pt, "regular")[GIVEN UNDER MY HAND]
47
+ heading(706pt, 9.8pt, "regular", f.signed_on)
48
+ place(top + left, dx: 82.7pt, dy: 726pt, line(length: 158pt, stroke: 0.6pt))
49
+ place(top + left, dx: 271.8pt, dy: 718pt, image("seal.png", width: 69.6pt))
50
+ place(top + left, dx: 82.7pt, dy: 734pt, text(size: 11.7pt, f.commander_name))
51
+ place(top + left, dx: 82.7pt, dy: 748pt, text(size: 11.7pt, f.commander_grade))
52
+ place(top + left, dx: 82.7pt, dy: 762pt, text(size: 11.7pt, f.commander_title))
53
+ }
@@ -0,0 +1,12 @@
1
+ [package]
2
+ name = "tonguetoquill-medal-citation"
3
+ version = "0.1.0"
4
+ compiler = "0.15.1"
5
+ entrypoint = "src/lib.typ"
6
+ repository = "https://github.com/tonguetoquill/airmark-quiver"
7
+ authors = ["tonguetoquill"]
8
+ license = "Apache-2.0"
9
+ description = "Air and Space Achievement, Meritorious Service, and Air and Space Commendation Medal citations."
10
+ keywords = ["USAF", "Air Force", "medal", "citation", "decoration"]
11
+ categories = ["office"]
12
+ disciplines = ["politics", "business", "education"]
@@ -0,0 +1,145 @@
1
+ #import "@local/quillmark-helper:0.2.0" as qm
2
+ #import "@local/tonguetoquill-medal-citation:0.1.0": afam, afcm, msm
3
+
4
+ #let trim(v) = {
5
+ if type(v) != content { return v }
6
+ let kids = v.at("children", default: none)
7
+ if kids == none { return v }
8
+ let padding(c) = c == [ ] or c.func() == parbreak
9
+ while kids.len() > 0 and padding(kids.first()) { kids = kids.slice(1) }
10
+ while kids.len() > 0 and padding(kids.last()) { kids = kids.slice(0, -1) }
11
+ kids.sum(default: [])
12
+ }
13
+
14
+ #let ink-value(v) = {
15
+ let trimmed = trim(v)
16
+ if trimmed == none or trimmed == "" or trimmed == [] { [] } else { trimmed }
17
+ }
18
+
19
+ #let ink(key) = ink-value(qm.data.at(key))
20
+
21
+ // The accomplishments paragraph is 1350 characters. A space counts.
22
+ #let counted(c) = {
23
+ c == [ ] or c.func() == linebreak or c.func() == parbreak or c.func() == smartquote
24
+ }
25
+
26
+ #let char-count(c) = {
27
+ if type(c) == str { return c.clusters().len() }
28
+ if type(c) != content { return 0 }
29
+ if counted(c) { return 1 }
30
+ if c.has("text") and type(c.at("text")) == str { return c.text.clusters().len() }
31
+ if c.has("children") { return c.children.map(char-count).sum(default: 0) }
32
+ if c.has("body") { return char-count(c.body) }
33
+ if c.has("child") { return char-count(c.child) }
34
+ 0
35
+ }
36
+
37
+ // Returns (kept content or none, characters still available).
38
+ #let take-chars(c, left) = {
39
+ if left <= 0 { return (none, 0) }
40
+ if type(c) == str {
41
+ let clusters = c.clusters()
42
+ if clusters.len() <= left { return (c, left - clusters.len()) }
43
+ return (clusters.slice(0, left).join(), 0)
44
+ }
45
+ if type(c) != content { return (c, left) }
46
+ if counted(c) { return (c, left - 1) }
47
+ if c.has("text") and type(c.at("text")) == str {
48
+ let clusters = c.text.clusters()
49
+ if clusters.len() <= left { return (c, left - clusters.len()) }
50
+ let kept = clusters.slice(0, left).join()
51
+ let fields = c.fields()
52
+ fields.remove("text")
53
+ let out = if fields.len() == 0 { text(kept) } else { text(..fields, kept) }
54
+ return (out, 0)
55
+ }
56
+ if c.has("children") {
57
+ let kept = ()
58
+ let rest = left
59
+ for k in c.children {
60
+ if rest <= 0 { break }
61
+ let (piece, next) = take-chars(k, rest)
62
+ rest = next
63
+ if piece != none { kept.push(piece) }
64
+ }
65
+ if kept.len() == 0 { return (none, rest) }
66
+ let out = if c.fields().keys() == ("children",) {
67
+ kept.sum(default: [])
68
+ } else {
69
+ let fields = c.fields()
70
+ fields.remove("children")
71
+ c.func()(..fields, children: kept)
72
+ }
73
+ return (out, rest)
74
+ }
75
+ if c.has("body") {
76
+ let (piece, rest) = take-chars(c.body, left)
77
+ if piece == none { return (none, rest) }
78
+ let fields = c.fields()
79
+ fields.remove("body")
80
+ let out = if fields.len() == 0 { c.func()(piece) } else { c.func()(..fields, piece) }
81
+ return (out, rest)
82
+ }
83
+ if c.has("child") {
84
+ let (piece, rest) = take-chars(c.child, left)
85
+ if piece == none { return (none, rest) }
86
+ let fields = c.fields()
87
+ fields.remove("child")
88
+ let out = if fields.len() == 0 { c.func()(piece) } else { c.func()(..fields, piece) }
89
+ return (out, rest)
90
+ }
91
+ (c, left)
92
+ }
93
+
94
+ #let capped(body, limit) = {
95
+ if type(body) != content { return body }
96
+ if char-count(body) <= limit { return body }
97
+ let (out, _) = take-chars(body, limit)
98
+ if out == none { [] } else { out }
99
+ }
100
+
101
+ #let period-pattern = "[day padding:none] [month repr:long] [year]"
102
+ #let shown-date(key) = {
103
+ let shown = qm.ink(qm.data, key, period-pattern)
104
+ if shown == none { [] } else { upper(shown) }
105
+ }
106
+
107
+ #let choice(key) = {
108
+ let field = qm.data.at(key)
109
+ let value = if type(field) == str { field } else { field.value }
110
+ if value == none { "" } else { value }
111
+ }
112
+
113
+ #let medal-field = qm.data.medal
114
+ #let medal = if type(medal-field) == str { medal-field } else { medal-field.value }
115
+
116
+ #let common = (
117
+ oak_leaf_cluster: choice("oak_leaf_cluster"),
118
+ rank: ink("rank"),
119
+ service: ink("service"),
120
+ period_from: shown-date("period_from"),
121
+ period_to: shown-date("period_to"),
122
+ accomplishments: capped(ink("accomplishments"), 1350),
123
+ commander_title: ink("commander_title"),
124
+ )
125
+
126
+ #if medal == "Air and Space Achievement Medal" {
127
+ afam((
128
+ ..common,
129
+ signed_on: medal-field.at("afam_signed_on"),
130
+ commander_name: ink-value(medal-field.commander_name),
131
+ ))
132
+ } else if medal == "Meritorious Service Medal" {
133
+ msm((
134
+ ..common,
135
+ signed_on: shown-date("medal.signed_on"),
136
+ commander_name: ink-value(medal-field.msm_commander_name),
137
+ commander_grade: ink-value(medal-field.commander_grade),
138
+ ))
139
+ } else if medal == "Air and Space Commendation Medal" {
140
+ afcm((
141
+ ..common,
142
+ signed_on: shown-date("medal.signed_on"),
143
+ commander_name: ink-value(medal-field.commander_name),
144
+ ))
145
+ }