Repository navigation
Number usaf_paper 0.1.1 paragraphs live in Word - #348
Merged
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
2 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.0draws its enum labels by hand in ashow enumrule. 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.1uses the same hints asusaf_memo@0.4.1(#347):listhint named "Paper Paragraph". Its levels are1.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.labelhint, withlevelset to the depth plus one andvalueset to the printed number.hints.typis vendored unchanged from Quillmark. The package version is 0.1.1, anddesign/usaf_paper/render_fixture.mjsrenders it.Bullet lists (talking and point papers) are unchanged.
Checks
design/usaf_paperfixtures with 0.1.0 and 0.1.1, rasterised them with poppler at 150 and 300 dpi, and comparedpdftotext -bboxword 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.PaperParagraph1to4,numbering.xmlholds%1.,%2.(lowerLetter),(%3)and(%4), and no export reportsdocx::label_mismatch.3.after a plain paragraph) is a new Word list, so its label raisesdocx::label_mismatchand 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 testpasses.Generated by Claude Code