@tonguetoquill/collection 0.1.16 → 0.1.18

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": "@tonguetoquill/collection",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nibsbin/tonguetoquill-collection.git"
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {},
37
37
  "devDependencies": {
38
- "@quillmark/registry": "^0.7.0",
38
+ "@quillmark/registry": "^0.6.1",
39
39
  "@quillmark/wasm": "^0.39.0"
40
40
  }
41
41
  }
@@ -0,0 +1,7 @@
1
+ *
2
+ !*/
3
+ !/.gitignore
4
+ !/LICENSE
5
+ !/typst.toml
6
+ !/src/**
7
+ !/fonts/**
@@ -309,7 +309,7 @@
309
309
  if i == total_count {
310
310
  let available_width = page.width - spacing.margin * 2
311
311
 
312
- // Use configured spacing for line height calculation
312
+ // Use configured paragraph metrics for line height estimation
313
313
  let line_height = measure(line(length: spacing.line + spacing.line-height)).width
314
314
  // Calculate last item's height
315
315
  let par_height = measure(final_par, width: available_width).height
@@ -9,8 +9,9 @@
9
9
  // AFH 33-337 specifies precise spacing requirements throughout Chapter 14
10
10
 
11
11
  #let spacing = (
12
+ vertical: 19.05pt, // Base gap between elements
12
13
  line: .5em, // Internal line spacing for readability
13
- line-height: .7em, // Base line height for spacing calculations
14
+ line-height: .7em, // Base height of text lines for pagination estimates
14
15
  tab: 0.5in, // Tab stop for multi-column recipient alignment
15
16
  margin: 1in, // AFH 33-337 §4: "Use 1-inch margins on the left, right and bottom"
16
17
  )
@@ -22,7 +23,7 @@
22
23
 
23
24
  #let DEFAULT_LETTERHEAD_FONTS = ("Copperplate CC",)
24
25
  #let DEFAULT_BODY_FONTS = ("times new roman", "NimbusRomNo9L") // AFH 33-337 §5: Times New Roman required
25
- #let LETTERHEAD_COLOR = rgb("#000099") // Standard USAF blue for letterhead
26
+ #let LETTERHEAD_COLOR = rgb("#365e93") // Faded USAF blue for letterhead
26
27
 
27
28
  // =============================================================================
28
29
  // PARAGRAPH CONFIGURATION
@@ -22,7 +22,7 @@
22
22
  //
23
23
  // Basic usage:
24
24
  //
25
- // #import "@preview/tonguetoquill-usaf-memo:0.2.0": frontmatter, mainmatter, backmatter, indorsement
25
+ // #import "@preview/tonguetoquill-usaf-memo:2.0.0": frontmatter, mainmatter, backmatter, indorsement
26
26
  //
27
27
  // #show: frontmatter.with(
28
28
  // subject: "Your Subject Here",
@@ -16,8 +16,8 @@
16
16
 
17
17
  /// Creates vertical spacing equivalent to multiple blank lines.
18
18
  ///
19
- /// Calculates proper vertical space based on line height and leading
20
- /// to maintain consistent spacing throughout the document.
19
+ /// Calculates proper vertical space using the centralized `spacing.vertical`
20
+ /// configuration to maintain consistent gap spacing throughout the document.
21
21
  ///
22
22
  /// - count (int): Number of blank lines to create
23
23
  /// - weak (bool): Whether spacing can be compressed at page breaks
@@ -26,9 +26,8 @@
26
26
  if count == 0 {
27
27
  v(0em, weak: weak)
28
28
  } else {
29
- let lead = spacing.line
30
- let height = spacing.line-height
31
- v(lead + (height + lead) * count, weak: weak)
29
+ // vertical uses the centralized vertical spacing from config
30
+ v(spacing.vertical * count, weak: weak)
32
31
  }
33
32
  }
34
33
 
@@ -126,7 +125,6 @@
126
125
  ///
127
126
  /// - date (str|datetime): Date to format for display
128
127
  /// -> str
129
- // NOTE: Consider simplification if Typst adds native ISO date parsing (see CASCADES.md §A)
130
128
  #let display-date(date) = {
131
129
  if type(date) == str {
132
130
  if is-iso-date-string(date) {
@@ -326,7 +324,6 @@
326
324
  ///
327
325
  /// - number (int): The indorsement number (1, 2, 3, etc.)
328
326
  /// -> str
329
- // NOTE: Could be table-driven vs algorithmic (see CASCADES.md §B) — current approach is correct
330
327
  #let get-ordinal-suffix(number) = {
331
328
  let last-digit = calc.rem(number, 10)
332
329
  let last-two-digits = calc.rem(number, 100)
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "tonguetoquill-usaf-memo"
3
- version = "1.1.0"
3
+ version = "2.0.0"
4
4
  compiler = "0.14.0"
5
5
  entrypoint = "src/lib.typ"
6
6
  repository = "https://github.com/nibsbin/tonguetoquill-usaf-memo"
@@ -1,12 +1,12 @@
1
1
  #import "@local/quillmark-helper:0.1.0": data, eval-markup, parse-date
2
- #import "@preview/tonguetoquill-usaf-memo:1.1.0": backmatter, frontmatter, indorsement, mainmatter
2
+ #import "@preview/tonguetoquill-usaf-memo:2.0.0": backmatter, frontmatter, indorsement, mainmatter
3
3
 
4
4
  // Frontmatter configuration
5
5
  #show: frontmatter.with(
6
6
  // Letterhead configuration
7
7
  letterhead_title: data.letterhead_title,
8
8
  letterhead_caption: data.letterhead_caption,
9
- letterhead_seal: image("assets/dow_seal.jpg"),
9
+ letterhead_seal: image("assets/dow_seal.png"),
10
10
 
11
11
  // Date
12
12
  date: parse-date(data.date),
package/templates/loc.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- QUILL: usaf_memo@0.1
2
+ QUILL: usaf_memo@0.2
3
3
  letterhead_title: DEPARTMENT OF THE AIR FORCE
4
4
  letterhead_caption:
5
5
  - 20th Fighter Wing (ACC)
@@ -1,5 +1,5 @@
1
1
  ---
2
- QUILL: usaf_memo@0.1
2
+ QUILL: usaf_memo@0.2
3
3
  letterhead_title: DEPARTMENT OF THE AIR FORCE
4
4
  letterhead_caption:
5
5
  - AFROTC DETACHMENT 730
@@ -1,5 +1,5 @@
1
1
  ---
2
- QUILL: usaf_memo@0.1
2
+ QUILL: usaf_memo@0.2
3
3
  letterhead_title: DEPARTMENT OF THE AIR FORCE
4
4
  letterhead_caption: !fill
5
5
  - YOUR SQUADRON HERE
@@ -1,5 +1,5 @@
1
1
  ---
2
- QUILL: usaf_memo@0.1
2
+ QUILL: usaf_memo@0.2
3
3
  letterhead_title: DEPARTMENT OF THE AIR FORCE
4
4
  letterhead_caption:
5
5
  - United States Space Force