Skip to content

Number usaf_paper 0.1.1 paragraphs live in Word - #348

Merged
nibsbin merged 1 commit into
mainfrom
claude/project-thread-8givf2
Nov 20, 2026
Merged

nibsbin merged 1 commit into
mainfrom
claude/project-thread-8givf2

Conversation

@nibsbin

@nibsbin nibsbin commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Requested by Nibs · project thread

A background or position paper exported to Word showed each numbered paragraph's number twice ("1. 1. State the purpose", sub-items "1. a."). usaf_paper@0.1.0 draws its enum labels by hand in a show enum rule. The exporter still sees the enum and gives each paragraph a Word list number, and the drawn label stays as text.

New version usaf_paper@0.1.1 uses the same hints as usaf_memo@0.4.1 (#347):

  • Each top-level numbered list (with the lists nested in it) is wrapped in a list hint named "Paper Paragraph". Its levels are 1. a. (1) (a), the deepest repeated to nine levels, each followed by two spaces. A level's indent is the width of the first labels above it.
  • Each drawn label and its two spaces are wrapped in a label hint, with level set to the depth plus one and value set to the printed number.
  • hints.typ is vendored unchanged from Quillmark. The package version is 0.1.1, and design/usaf_paper/render_fixture.mjs renders it.

Bullet lists (talking and point papers) are unchanged.

Checks

  • PDF. I rendered kit files 20–26 and the five design/usaf_paper fixtures with 0.1.0 and 0.1.1, rasterised them with poppler at 150 and 300 dpi, and compared pdftotext -bbox word boxes. Every word box is identical. Every page is identical except one glyph on page 1 of the multipage background paper at 150 dpi only, the same sub-pixel effect Number usaf_memo 0.4.1 and army_memo 0.1.1 paragraphs live in Word #347 saw when a label hint splits a text run.
  • Word export with Quillmark main:
    • Kit 23, 24 and 26: no paragraph starts with typed number text. Paragraphs carry PaperParagraph1 to 4, numbering.xml holds %1. , %2. (lowerLetter), (%3) and (%4) , and no export reports docx::label_mismatch.
    • Kit 20–22 and 25 (bullets) export as before.
    • A numbered list that starts past 1 after other text (3. after a plain paragraph) is a new Word list, so its label raises docx::label_mismatch and stays as text. fix(docx): a label Word does not count keeps no list number of its own borb-sh/quillmark#2507 makes that paragraph carry no Word number as well. Without it, that one paragraph still shows its number twice.
  • npm test passes.

Generated by Claude Code

A paper exported to Word showed each numbered paragraph's number twice:
Word's list number and the label the quill draws as text. usaf_paper@0.1.1
wraps each drawn label in a `label` hint and each numbered list in a `list`
hint with the paper's levels, so Word numbers the paragraphs itself. The PDF
prints as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BFeLRiuFXuyA5GAnUzoQd8
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
airmark-quiver Ready Ready Preview Nov 20, 2026 4:49am UTC

Request Review

@nibsbin nibsbin self-assigned this Nov 20, 2026
@nibsbin
nibsbin merged commit 907c8fd into main Nov 20, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — a3d53653 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants