You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0aaa01b
Browse filesBrowse the repository at this point in the historyBrowse files
In a fixed area, wrapping consumes the physical height of the frame as the vertical inline extent. New columns progress leftward for vertical-rl and rightward for vertical-lr; authored line breaks remain authored breaks. The browser renderer uses a stable measured fallback when font bytes are unavailable, and native ttb shaping remains a separate runtime capability. HTML/CSS and SVG exports preserve writing-mode semantics; native PDF vertical text is currently reported as a target limitation rather than silently rotated.
104
+
105
+
PDF import reads a vertical font CMap (<code>/Identity-V</code> or <code>/WMode 1</code>) as vertical text: each column opens as an editable layer with Writing mode set to Vertical, right to left and the default Mixed character orientation, which you can change independently. Consecutive upright glyphs that a producer placed one at a time are merged into that column, while neighbouring columns stay separate layers.
`verified-already-correct-` 17 · `deferred` 1. The rows named in the batch
87
+
table were individually adjudicated (title, labels, body, and the discussion
88
+
where it changed the reading); the rest inherit a cluster verdict with a
89
+
stated reason.
89
90
The 184 cutoff-1 closures were checked against the cluster map: none changed a
90
91
Varve disposition, because the closed classes are redaction, printing, forms,
91
92
signature and Office interchange, all of which remain outside Varve's scope.
@@ -126,7 +127,8 @@ signature and Office interchange, all of which remain outside Varve's scope.
126
127
| 7 | Text edit identity (paragraph indices, property loss on re-edit) | already handled upstream: edits target authored node ids (ADR-0242), and the draft/target-switch paths are covered by `context/pendingEdits.ts` with `tests/e2e/save/text-draft-save.spec.ts` and `text-target-switch.spec.ts`|
127
128
| 8 | Interaction classes: cursor over chrome following the canvas, a second menu open on the first, a panel clipped in a small window |**verified absent and pinned** — `tests/e2e/ui/chrome-ownership.spec.ts`: the hand-tool cursor does not leak onto the menubar, opening a second menu leaves exactly one, and at 1024x600 the inspector has no horizontal overflow and the Export tab stays reachable through the "More inspector tabs" menu. No UI change was needed |
128
129
| 8b | Autosave scheduling tied to repaint; failed-autosave retry suppression | deferred — `packages/editor/src/context/usePersistence.ts` belongs to another session; two writers on one file is worse than a delay |
129
-
| 10 | Vertical writing (`Identity-V`) imported as one horizontal line, so a CJK column became the wrong document |**implemented and validated** — `/WMode 1` (name or embedded CMap) is detected and the run becomes a `vertical-rl` text node; unit tests cover detection and the browser test asserts the rendered ink is a column. Per-glyph advance is one em (`/W2` unread) and disclosed in the Import Report. Commit `codex/pdfcraft-remainder-20261022`|
130
+
| 10 | Vertical writing (`Identity-V`) imported as one horizontal line, so a CJK column became the wrong document |**implemented and validated** — `/WMode 1` (name or embedded CMap) is detected and the run becomes a `vertical-rl` text node; unit tests cover detection and the browser test asserts the rendered ink is a column. Per-glyph `/W2` metrics and one-glyph-per-`Tj` column merging follow in batch 11. Commit `codex/pdfcraft-remainder-20261022`|
131
+
| 11 | Vertical import refinement: per-glyph `/W2` metrics, one-glyph-per-`Tj` placement arriving as one layer per character, and parser notes that were generated but never shown |**implemented and validated** — `/W2` advances with a bounded `/DW2` fallback, consecutive vertical runs merge into one editable column, Import Results shows the parser's notes and wraps long detail rows, and deeply nested SVG now names the artwork it refused (row 3309). Unit and browser regressions extend batch 10's fixture; evidence in `docs/screenshots/pdfcraft/import-vertical-writing-*.png`|
130
132
| 9 | PDF import invents content the page does not show: invisible/clip-only text, hidden optional-content layers, encrypted files imported as blank pages, and an inline image whose `EI` is followed by a delimiter |**implemented and validated** — `/OCProperties` visibility, `Tr` render modes, `/Encrypt` refusal with a failure status, and delimiter-terminated `EI`. Commits `3bdd3e336`, `bb2f53d24`; browser evidence in `tests/e2e/import/pdf-import-integrity.spec.ts` and `docs/screenshots/pdfcraft/`|
131
133
132
134
## Limitations (unresolved)
@@ -165,9 +167,9 @@ These are honest gaps, not completions:
165
167
Cutoff 2 is taken and reconciled; batches 1–6 and 9 are complete or recorded
166
168
with reasons. What remains, in priority order:
167
169
168
-
1.~~Vertical-writing import (rows 3216/3711/3712)~~ — landed as batch 10. The
169
-
remaining refinement is `/W2`per-glyph vertical metrics (currently one em)
170
-
and`Tz`-upright placement inside a vertical run.
170
+
1.~~Vertical-writing import (rows 3216/3711/3712)~~ — landed as batches 10
171
+
and 11. `/W2` metrics and one-glyph-per-`Tj` column merging are
172
+
implemented;`Tz`-upright placement inside a vertical run remains open.
171
173
2.**Batch 8 (interaction)**: verify cursor ownership over chrome (rows 3001,
172
174
3383, 3871), overlay placement with two menus (3190), and small-window
173
175
clipping (3097, 3557, 3559). Each is a verification first; no UI change is
@@ -178,7 +180,9 @@ with reasons. What remains, in priority order:
178
180
and returns `ok` without throwing — `normalizeDocument` walks nodes flatly, so
179
181
the reported stack overflow is not reachable at the decode boundary. What is
180
182
still unmeasured is a render/bbox traversal at that depth; if a bound is added
181
-
it belongs there, driven by a measured failure rather than a guess.
183
+
it belongs there, driven by a measured failure rather than a guess. The
184
+
reachable import paths are bounded (SVG/Figma 256, PDF page tree 32) and the
185
+
SVG ceiling now names refused artwork instead of importing nothing silently.
182
186
5.**Row 3634/3504**: a per-node export deadline and a single decode-cap
183
187
contract shared by render and export, if measurement shows they diverge.
184
188
@@ -187,3 +191,93 @@ State at handoff: branch `codex/pdfcraft-continuation-20261021`, cut from
187
191
the review is reviewable without the unpushed local history. Commits: batch 9
shows 縦書きの試験, 隣の列の文章 (one glyph per operator) and 離れた列 as three
244
+
top-to-bottom columns with no overlap; the editor capture shows the
245
+
Inspector reading Writing mode "Vertical, right to left"; the results
246
+
capture shows the wrapped details and the column note.
247
+
248
+
**Validation (batch 11)**
249
+
250
+
```text
251
+
Changed scope: packages/import PDF/SVG parsers and tests; packages/editor ImportResults and test; tests/e2e/import; website file-formats and typography docs plus the marketing test; PDFCraft audit records and screenshots.
252
+
Validation plan: pnpm verify:plan selected 27 lanes with no full-suite escalation (format/lint, emoji/docs/claims/radius/spacing/sizing audits, E2E TypeScript, affected package typechecks and unit lanes, website unit/E2E, import and export browser domains).
253
+
Commands actually run: pnpm verify:affected; pnpm typecheck:e2e; pnpm audit:docs; pnpm audit:emoji; lease-wrapped npx playwright test tests/e2e/import/pdf-vertical-text.spec.ts; production website captures at 1440x1000 and 390x844.
254
+
Passed: all 27 planned lanes (2681s): editor unit 8,825 passed (2 skipped), import 430, desktop 90, website unit 312, website E2E 694 across both bases, import browser domain 12, export browser domain 16, focused vertical browser test 2; focused pdfFidelity 29, svg 31, ImportResults 15; E2E TypeScript; docs/emoji audits; no horizontal overflow at 1440/390/320.
255
+
Skipped as unrelated: Rust workspace and native desktop GUI lanes (no Rust or native surface changed); the planner did not escalate.
256
+
Escalations: none. Full suite run: no.
257
+
```
258
+
This run was executed on the batch-11 tree after rebasing onto the batch-10
259
+
commit `13e97dde3`.
260
+
261
+
**Limitations of this batch**
262
+
263
+
- Automatic tate-chu-yoko compaction and `Tz`-upright placement are not
264
+
inferred from a PDF. Glyphs and digits are preserved in one editable string;
265
+
applying `textCombineUpright` or adjusting orientation remains an authoring
266
+
decision.
267
+
- Page `/Rotate` is applied to positions, as for horizontal text, so on a
268
+
rotated page a vertical column is placed correctly but its glyphs are not
269
+
rotated with the page. That general text-rotation gap is unchanged.
270
+
- Imported text colour, font family and glyph outlines are still not carried;
271
+
the importer reports substitution.
272
+
273
+
**Remaining queue (not closed by this batch)**
274
+
275
+
1. Row 3409 and the autosave scheduling work (batch 8b) stay with the session
276
+
that owns `usePersistence.ts` and the native save path.
277
+
2. Row 3504: shared decode-cap contract, test queued.
0 commit comments