Add frozen TikZRefinery demo baseline and build pipeline
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# Rectangle parsing and display check — October 21, 2026
|
||||
|
||||
Vincent authorized the bounded rectangle parsing/canvas increment and required
|
||||
preservation of existing uncommitted work, with no commit or push.
|
||||
|
||||
## Observed execution
|
||||
|
||||
- Debug build succeeded with the existing Qt 6.12.0 / MinGW 13.1.0 kit,
|
||||
CMake 3.30.5 and Ninja 1.12.1. No new dependency was installed.
|
||||
- CTest passed `core_foundations` and `rectangle_display` (2/2).
|
||||
- Both `boxes-initial.tex` and `boxes-touching.tex` load exactly two rectangles.
|
||||
The bounding path supplies a separate comparison extent and creates no item.
|
||||
- Initial centerline bounds in scene units: left `(200,200,100,100)`,
|
||||
right `(400,200,100,100)`; touching-reference right `(300,200,100,100)`.
|
||||
Scene extent is `(0,0,700,500)`, corresponding to (-2,-2)..(5,3) cm.
|
||||
- Tests check revision-scoped IDs, numeric byte ranges, original/clean source,
|
||||
UTF-8 comments, BOM/CRLF, signed decimals, reversed corners, alternate mapping,
|
||||
default/explicit widths, and a guarded replacement driven by parsed ranges.
|
||||
- Unsupported lines/arrows, loops, macros, scopes/transforms, custom styles,
|
||||
fills, units/expressions, altered preambles, malformed or degenerate paths,
|
||||
and invalid extent declarations fail with diagnostics and no partial diagram.
|
||||
Failed refresh/display clears stale items/records.
|
||||
- An offscreen Qt Widgets check triggers the actual window Open action and file
|
||||
dialog, then checks source, two canvas items, display-only status, clean state,
|
||||
and disabled Save. It is not a native mouse/keyboard gesture test.
|
||||
- Both unchanged corpus documents compile with shared TinyTeX. A comparison
|
||||
wrapper places each unchanged `tikzpicture` on a fixed 7×5 cm page at origin.
|
||||
Poppler at 254 dpi yields 700×500 pixels (100 pixels/cm). Qt renders the same
|
||||
fixed scene extent. No fitted shift, independent tight crop or rescaling is used.
|
||||
- The comparison threshold was set before execution: grayscale <128 marks dark
|
||||
edge pixels; every such pixel must have a counterpart within one pixel in
|
||||
the other render. Both directions report **zero unmatched pixels** for both
|
||||
files. This is a prototype check, not an approved product acceptance tolerance.
|
||||
- The retained comparison sheet and window screenshot were visually inspected.
|
||||
- Report v1.51 was compiled in both editions using an initial pdfLaTeX pass,
|
||||
BibTeX, makeindex and three final pdfLaTeX passes. The source uses no-index
|
||||
glossaries, so no external glossary pass applies. Final logs contained no
|
||||
errors, undefined citations/references, missing files, or layout warnings.
|
||||
Rendered report pages were reviewed; internal named destinations were checked.
|
||||
|
||||
## Reproduction
|
||||
|
||||
Run the build and CTest commands in `code/README.md`. With the Qt/MinGW DLL
|
||||
directories on PATH, from the repository root:
|
||||
|
||||
```powershell
|
||||
New-Item -ItemType Directory -Force work/rectangle-display | Out-Null
|
||||
$env:QT_QPA_PLATFORM = 'offscreen'
|
||||
& ./code/build/tikzrefinery_rectangle_tests.exe work/rectangle-display
|
||||
& 'C:/Users/vince/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/python.exe' code/tests/CompareRectangles.py --work work/rectangle-display --evidence code/tests/evidence --pdflatex 'C:/Users/vince/Documents/Projects/Tools/LaTeX/TinyTeX/bin/windows/pdflatex.exe' --pdftoppm 'C:/Users/vince/.cache/codex-runtimes/codex-primary-runtime/dependencies/native/poppler/Library/bin/pdftoppm.exe'
|
||||
```
|
||||
|
||||
The Python script requires Pillow, available in the bundled runtime. Retained
|
||||
evidence: `rectangle-comparison-2026-10-21.png`, its JSON metrics, and
|
||||
`rectangle-window-2026-10-21.png`. Intermediate renders, fixture PDFs, and TeX
|
||||
auxiliaries are reproducible task scratch.
|
||||
|
||||
## Limits
|
||||
|
||||
Only rectangle outlines are interpreted. Supported input is a bare command
|
||||
fragment, one unconfigured `tikzpicture`, or the exact article/tikz/empty-page
|
||||
wrapper used by this corpus. Appearance accepts `black`, `solid`, and a positive
|
||||
literal `line width` in `pt` (default 0.4pt); duplicate width declarations fail.
|
||||
One optional nondegenerate bounding path must precede all drawing and enclose
|
||||
the outlines. Larger TeX documents are conservatively refused, even when their
|
||||
rectangles look similar. Parsing does not execute or establish TeX validity.
|
||||
|
||||
Items are neither selectable nor movable. No dragging, source update on release,
|
||||
save/reopen workflow, zoom/pan interaction, compiler/PDF integration, timing,
|
||||
native gesture test, or product acceptance is claimed. TC-025/TC-029 remain
|
||||
unexecuted as interaction workflows. Human design/evidence review remains pending.
|
||||
Reference in New Issue
Block a user