craft-docx carries a kept w:mailMerge's external source relationship and refuses a missing one (storytold/craft-libs#2349). The fixture's rId9 now has its mailMergeSource part in word/_rels/settings.xml.rels, and the trial checks that mail merge and its source survive a save.
craft-docx rebinds a kept w:mailMerge's r:id to its external source relationship and refuses a missing one (storytold/craft-libs#2349). The fixture's rId9 had no relationship part; the trial checks the privacy flags, so the element goes.
* DOCX: a run marked w:cs is bold and italic only by w:bCs and w:iCs
Word draws Thai marked w:cs with <w:b/> and no w:bCs plain (and with
<w:i/> and no w:iCs upright), through the run, its styles and the
defaults. WordCraft borrowed the Latin bold and italic, so a WPS memo's
subject line showed bold. Runs not marked w:cs still borrow them, and
the complex-script size still borrows w:sz until generated styles carry
w:szCs (#4197).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Bold and Italic buttons follow what a complex-script run shows
A run marked w:cs shows its w:bCs/w:iCs, so format.state reports those
and format.bold/format.italic toggle from them (CodeRabbit on #4852).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Bold and Italic buttons read right-to-left runs' complex-script values
Layout draws a w:rtl run with its complex-script bold and italic, so the
buttons and their toggles read those for rtl runs as for cs ones
(CodeRabbit on #4852).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Test the Latin text keeps w:b and w:i beside complex-script runs
Review: every case of complex_script_runs_take_bold_and_italic_only_from_bcs_and_ics now also checks the run's Latin bold and italic, through every save generation; Hebrew no writer marked w:cs keeps borrowing w:b, as Word draws it bold (measured in Word for Windows).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Merge Formatting and style sets keep complex-script bold and italic
Merge Formatting gives pasted text the destination's w:cs, so its emphasis
now sets w:bCs/w:iCs with w:b/w:i (either one in the source counts). The
basic and casual style sets make headings bold and italic in both scripts.
The file-format parity sentence goes into the current row instead of an
older copy of it the merge had added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* canvas-w21: net change of 3 commits
- canvas-w21: written from its sheet
- canvas-w21: repair 1
- canvas-w21: review fixes (review-1)
* chrome-w8: net change of 2 commits
- chrome-w8: repair 1
- chrome-w8: review fixes (review-1)
* mini_toolbar tests: import egui pos2 and Vec2 the tests use directly (production imports only Rect, Ui)
* App compile: open context_menu, font_box and ribbon::common to their callers; Label and Value import from their framework homes; balloons read command_enabled; wordart test runs fired commands through WordApp::run_fired; delete rtl.rs, which has no reader
* Fix imports (palette, picker, icons, color), expose find helpers, drop old keytip phase state per S-L365
* keytip_places: removed with the old keytip phase machine (S-L365); WordApp, WindowUi and the destructurings no longer carry it
* ribbon submodule imports: Value, Target, Remember, egui geometry, Label, TypeRole, DisclosureGlyph and kittest Node come from their own modules, not the ribbon.rs re-exports ribbon-w8 dropped
* context menu: CanvasState keeps the open point so the menu anchors where it was asked
* Palette derives Default: dialog forms hold an empty palette until prepare fills it
* ribbon: Stack/Row/Menu show need ShowContainer in scope
* canvas Read Mode: reading metrics come from a probe component measured under the theme (S-L355)
* Dialog and mini toolbar call sites follow the framework: Mode into style previews, owned colour key, non-exhaustive DialogResult, struct EditEvent variants, IconButton::command, Props::command on bound toggles
* canvas: the mini toolbar shows inside the page view body, where it maps its anchor through the canvas view
* ribbon: runtime labels as owned Strings, Props in scope for MenuItem::label, RibbonGroup icon 'static
* Tests read the canvas zoom through CanvasState::zoom and pass the context to qat_enabled
* More Colors settle hook returns Settle (S-L280) so it registers as a DialogHooks settle
* ribbon: wordart/shapes galleries take the menu body cx; TextRun built with its builders; symbol tile paints centred by the run's alignment; paint_style gets the content painter cx
* math pictures: MathSource takes an aspect and sizes its layout box from the thumbnail request, with thumb_aspect for the tile or button (S-L393)
* CatalogRef: Debug says whether a catalog is held, since the framework's Catalog has no Debug
* mini toolbar tests: read accessibility labels and popups through kittest's NodeT::accesskit_node
* tests.rs: readers move to the framework and canvas accessors that exist (ScriptedFiles held/queue/answer_to, Host::builder, page_rects()/canvas_rect(), drain_inbox, DefaultAppError, pixel-sized auto_scale_limit_over, ClipItem::Image, DropTarget::Elsewhere, dialogs::close_all)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Reading probe returns an Outcome output; context menu rows label via MenuItem::new; colour preview matches cover non_exhaustive Preview; mini toolbar toggle icon is static
* fu2-app: app batch 2 rulings on batch 1 sets (S-L412, S-L365, S-L410, S-L411, S-L414, S-L419, S-L372, S-L368, S-L364)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Ribbon menu rows take owned labels: framework Label is String or 'static str, not a borrowed &str
* QAT command menu request drops the removed opener field
* Colour child answer: DialogResult is non_exhaustive, so any other result is ignored
* Thickness menu face: Button has no icon_only, so it shows icon and label
* Tests: By filter helper with an explicit lifetime; accessibility label compared as Option<String>
* lead: last compile fixes (menu label lifetime; perf test reads the page view's resident pictures, S-L352)
* lead: binary compile fixes (egui DroppedFile trait, Lang accessor, print test binding)
* lead: dropped file bytes as Arc
* lead: examples reach the framework through craft:: (S-L230)
* lead: examples reach the framework through craft::ui::shell::embed (S-L230)
* lead: ui_shot example runs its main under the test build cl uses (harness = false)
* rr-app-ribbon: the ribbon slots are sized by their content (SlotSize::Content)
The default top slot is one options bar high with a one-line layout: the ribbon's groups landed beside the tabs and all
collapsed. Needs the framework's SlotSize::Content (branch red/ribbon-place).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* app tests: one harness that installs the craft runtime before the first frame
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* lead: WordApp::new registers the app icon set (ribbon-w13 icons::register had no caller)
* red app-t2 g4: tests step with the app's command input; print preview is a group; neutral SmartArt error
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t2 g6: tests step with the app's frame input; integrated frame for the title-bar test; undo list caps rows; table press hold released; test clipboard answers files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t2 g3: dialog collections cap their rows, tests give dialogs their context and focus, glyph scan skips test data
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t2 g5: tests step frames through frame_input; split-button arrows named; collections capped; stale premises rewritten
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t2 g8: closing guard outlives window swaps, root focus/close, web save undo, collections natural height, test premises
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t2 g2 (lead commit)
* red app-t2 g1 (lead commit)
* red app-t2 g7 (lead commit)
* lead: backstage test row query borrows the name as long as the harness
* red app-t4 g2: key tests step through the app's frame hook; draw paths read format state without running a command
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g8: custom dictionary caps its rows; chrome/language-pack tests press as a person does; sources test steps through the frame hook; audit and pane tests follow the framework's layout
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g3: dialog test premises and Custom Properties labels, colors route, macro names, bookmark delete
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g6: md_source focus waits for a non-measuring pass; window rig reports inner rects; smoke sends a close request; switch windows label; i18n tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g5: table borders above selection areas, ruler markers follow drags, proofing list click-activates, test premises (focus, Enter=OK, extra buttons stay open)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g7: failed web save keeps clean state, symbol dialog fields, table margin hold release, object release keeps Alt placement, test premises (toggle off, Escape chord, CJK glyphs, palette swatches, frame gesture)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g4: frame hook in keytips tests, held list previews, crop keys and handles, read-mode context menu, keyboard overrides notes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t4 g1: frames run the app's input hook and close path; page focus survives measuring runs; stale prompt dropped; recipients/styles collections capped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* look-backstage: File pages as production: menu rows at the reading start, Discord above About, page titles over sections, Info property labels, Print preview fills the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-dialogs-b: TOC levels label, Options/Modify row and sample card metrics; watermark layouts in a row; About listed layout and version line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-ribbon-1b: Styles gallery tiles are 2:1 and named under the sample; Paragraph shows whole at 1440 pt
The style gallery asks the framework gallery for 2:1 pictures (the sample crop, STYLE_TILE_W, at the
medium thumbnail height) with the style's name under each, instead of square tiles that shrank the
sample. A test pins the Home tab showing the Paragraph group whole in a 1440 pt window (framework:
red/ribbon-look's ribbon place, short font and size boxes, flat close ribbon buttons).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-backstage: the File side menu is as tall as the window (Sizing::FillHeight), About and the community link at its foot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-chrome: title in a native frame; status bar view icons, fonts warning icon, plain zoom rail
The title bar shows the document title under the OS's title bar too
(TitleBar::title_when_native), as the old bar always did. The status bar's
view buttons are icon-only toggles in the old order (Read Mode, Print Layout,
Web Layout) with the current view pressed; the missing-fonts item has its
warning icon; the zoom slider has no fill up to the thumb. Tests
the_title_shows_in_a_native_frame and
status_bar_view_buttons_are_icons_with_the_view_pressed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-backstage: File page controls at stacked-row spacing, as production's
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-backstage: one contract import in pages.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-dialogs-a: Zoom opens on the view's percent (fraction x100), radios in a row, slider with its field inline, fit buttons in the body; Word Count as a plain label/count table over Close and Cancel; Font dialog as the old framed boxes: label table, kerning size and Points and above on the check box's line, Effects two to a line, preview at its own size; tests
* backstage test: import NodeT for accesskit_node
* red app-t5 g6: window rig reports the real child, ruler drags free of the framework snap
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g4: smoke drops texture deltas, md_source tests step the hook frame, font list rows are tree items, Escape closes bar then menu, symbol pick confirms twice
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g5: rotate objects about their centre, CJK stand-in in ribbon fit test, caret blink restart, Switch Windows node pair
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g7: nav lists take natural height; menu/keytip tests step the frames the runtime needs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g8: Size dialog tests step through the app frame hook, Styles pane test scrolls its capped list, pack tests end the agent's injection
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g3: dialog tests read the page's preview, the input hook, framework About key; Alert on refused custom property; Text Pane focus via framework stop
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g1: harness hands app input before the pass; confirm via passes; pane/close/clipboard test premises
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t5 g2: keys tests follow the framework's IME ordering, interrupt and reset; undo folds an open SmartArt run; join survives a later pass
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* look-rest-2: File side menu rows in the side menu place at the side menu's width (production's 200 pt rail of 38 pt rows); Print settings column wraps its notes at the column width
* look-rest-2: side menu imports formatted; test pins the rail's width and row height
* panes test: MouseWheel carries its source
* red app-t6 g8: ribbon end order, cjk stand-in any family, capped findings list
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g6: smoke finds the platform's answer button, info/side-menu tests use the framework's mechanisms, pack-bar click settles
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g3: menus open from their opener, view buttons given, caret test animation time, switch windows rows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g2: icons dialog owns its scroll, effects grid fills, search opens in place, macros press runs once
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g5: symbol pick OK, md pane Undo/Redo enabled by the field, live rotation pixel preview, text-box turn tolerance
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g7: mini_toolbar and table_resize tests settle on the framework's layer and marker timing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g4: Alt+Q row follows the engine's build-time binding
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t6 g1: CJK stand-in in the shared harness, late-paste test clipboard, web-layout gutter, search dropped in Focus, split-button and held-Return tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* look-rest-3: Print settings column as production's: one Pages heading over both page lists, the page count muted, a rule above the export formats; Word Count rows a control's height apart
* look-ribbon-3: Design's style-set tiles and Home's style samples at the large thumbnail size (Gallery::thumb), as large as the old ribbon's; the samples show unscaled
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Ribbon: the Zotero tab is called Citations; Zotero is its provider
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Citations: a Provider menu with Zotero as its one provider
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* citations tests: hold the layout the tabs borrow; import NodeT
* red app-t7 g6: settle the Install button before the person's click; wait for the caret glide; coverage check skips symbols kept from the English source
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t7 g5: smart-art category list natural height, print panel FillHeight, ribbon fit test checks on-screen controls
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t7 g2: Alt+Q test back on the Focus dialog, Tab hand-off owned by the framework, macros name read from the box, effects as pair rows, caret test waits for focus
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t7 g4: Size dialog fields take edit events, font list opens from the field, test keys release
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t7 g3: keymap test assigns through the keymap's Steal policy; smoke finds the prompt button by its resolved name
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* red app-t7 g1: Escape reaches select.collapse and the window's untaken Cancel (File page, Focus, Full Screen); web width settles after a drag; prompt helper asks the shown window; chord tests step the framework's frames
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* look-ribbon-4: the tab row's Comments and Editing are outlined and Share a filled accent button, as the old strip drew them (StripEnd::variant)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-rest-4: Font dialog's Effects columns as wide as their check boxes (production's table, Italic just past Superscript); File page section headings in the heading role (production's 15 pt) and page titles, Options' too, a step above them
* look-5: Home's Font and Paragraph button rows close up as the old ribbon's; Layout's Paragraph group as two label/field grids of small fields, indents to two decimals, a section gap before Spacing
* red stub g2: caret glide compares the view, which the page view reports on every pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: crop overlay takes the box as given so a drag survives to its commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: Alt+Q to Search Commands off macOS, ui.print state, scripts open no dialogs, equation state read without a command, size and New Label tests on the framework fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: collections in scrolling bodies cap their rows or take their natural height, as production shows them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: Escape on the page dismisses an open text menu first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: format.enclose gives a script an error without a shape, as the engine always has
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: the caret marks are shown over the view, so their strokes are not clipped to an empty rect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: header/footer presses keep their release; the caret follow settles after a page jump; a wheel zoom keeps its exact zoom
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: tests find the framework's controls by their real roles and names; the ribbon group check covers the ribbon's groups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: the canvas keeps the whole layout's page rects; the side-by-side test reads every page as production did
* red stub g2: the perf wheel helper sends point travel over the touchpad factor the framework now applies, as production's host did
* red stub g2: the alignment test steps once more for the fired command to run, as the port's command board does
* red stub g2: the Zoom dialog's programmatic OK answers with the percent it shows
* red stub g1: tests install no gallery story command sets (they took Mod+F from Find); the Navigation pane keeps its focus request until a pass takes it; Field Code opens before the first frame; report rows of the input-dialog test expect the report's data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: a WordArt style pick hands the keyboard to the page
* red stub g1: the language pack bar's slot takes the bar's height, so a failure's line no longer clips Install out of reach
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: a tab click and a dismissed status-bar language menu give the page the keyboard back after the pass; the test reads the framework's open menus
* red stub g2: the caret follow waits for the page's settled rect and places an unplaced page's caret from the whole layout
* red stub g2: the canvas reports the area the pages show in; the wheel-zoom test points at its centre, as production's canvas rect was
* look-6: a script's launcher command (format.fontDialog, Zoom, Page Setup) opens its dialog as production did; commands lacking input still open none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-6: the File page body stands on the window background (production's #f9f9f9), not the white panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: the app's Host carries the embedded catalogs, so framework words translate; catalog labels and command hints are translated; the canvas's zoom chords are dropped for Word's
* red stub g2: the caret glide test catches the caret the frame after it sets off, as on main (the set-off frame draws it where it was)
* red stub g2: Manage Styles and Customize Ribbon lists scroll their own rows (row caps as main's boxes); the Arabic Go To check compares the targets with the framework dialog's button column
* red stub g1: Alt chords fire from the page (PlainKeysWait; Alt+F7/Alt+F8 left to Word's commands), Macros reopened keeps its hooks, the recipient grid holds its rows through the click that ends an edit, ui.clickText maps page points by the page's scale; chrome tests read the title bar outside the File page and open the desktop chooser as its pump does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: watermark, citation style, TOC level, Zotero, caption, cross-reference and icon category labels are translated; the audit reads a wrapped marked label's second line as marked, and allows a hover hint's shortcut and separators, listed or cut-short names and trimmed licence texts
* red stub g1: the Print page decides what an opening holds back in the opening frame's first pass, as appeared() now holds through all of that frame's passes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: tests give a key and its text (or one IME batch) one frame, as kittest's event runs a frame per event; Paste Formatting's key reads its chord when the modifiers are already up; ⌘Q is the runtime's close (S-L332); Search's Escape meets the draft rule first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: wrap the command board's import at the repository width
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: the PDF bytes test expects the equation's x the math face can draw (plain x on a host with no math font, as in the pre-port baseline)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: the smoke test turns AccessKit on for its own context, so the Save Changes prompt's buttons are in the tree it searches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* look-7b: Custom Watermark's text field asks for 38 characters (Param::field_chars), about the old dialog's 280 pt; the field length gave about 195 pt
* look-7a: File pages: titles at production's 26 pt (WordCraft's display size), the page's 40 pt margin clearing the move band, the rail's footer in the side menu place (white ink), Protect Document a section apart on Info, the Print settings a frameless 380 pt column with chevrons for the sheets; tests
* red stub g2: Shift+Delete cuts the selection and does nothing without one (EditorInput::Delete.shift); the page reports its marked text (EditorState::marked); one-frame input back in the refused-delete and disabled Alt chord tests; a Delete after a commit waits out the framework's composition-key guard; a user binding reaches the keymap a harness frame later; window.move/size keep their defaults
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: Ctrl+wheel zoom test keeps the place under the pointer at each notch: a reflow centres the rows, so the page under the pointer is taken when the notch comes, and a pointer over the centre gutter moves onto a page first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* merge app-ui: resolve production main into the port's UI
- ribbon/home.rs (4e8c9d55, #3172): the Paste face is named "Paste"; its tooltip adds
edit.paste's chord as the platform writes it (commands::resolve + tooltip::with_chord).
tests.rs: the_paste_button_is_named_without_a_mac_key rewritten on the port harness.
- dialogs/paragraph.rs (32b4ab57): the framework ParagraphDialog's Special box does the work;
intersect leaves By blank when the paragraphs' kinds differ, so a kind picked then starts at
the half inch. dialogs/tests.rs: the three Special-box tests rewritten on the dialog host.
- dialogs/dialogs_review.rs (bce64c0e): the port's Compare form already names its fields.
- canvas.rs, canvas/tests.rs (07c0a893): keep the port's composition painter and state;
production's egui composition painter, its fields and its tests are dropped (framework items).
* merge app-shell: resolve production main into the port
- engine lib.rs: export set_bookmark_error/set_reference_error beside system_locale
(the port dropped the KeyMap re-export; it stays dropped).
- app.rs: logic() sets the PAGEREF/REF error texts in the interface language.
- file_dialogs.rs: Save As starts in the open file's folder, made absolute
(#4143), through PickRequest::directory; tests carried to ScriptedFiles.
- window_geometry.rs: 600 pt minimum width (#5886) and its test.
- chrome/status_bar.rs: Page item bound to edit.goto so its tooltip shows the
platform's Go To key (#3172); language tooltip names the language in full.
- chrome/tests.rs: narrow-window title bar and status bar tests rewritten
against the app harness.
- a11y.rs: test expects zero-based AccessKit levels (#3173); the mapping
fix is the framework's.
- chrome.rs, theme.rs, app/fonts.rs, windows.rs, windows/tests.rs,
keytips/tests.rs: production's replaced egui code and cut tests dropped.
* land sync: canvas.rs declares its tests module again (dropped in canvas-w9, so canvas/tests.rs, markup.rs and overlays.rs never compiled)
* land sync: the app takes craft gpu-startup (the sync moved craft::gpu::configure behind it)
* red stub g1: canvas tests compile against the ported canvas (imports, kurbo/Env/commands paths, equation_frame sizes, page_grid)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: canvas tests step through the app's input hook; caret reports the editor from an off-screen page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: candidate window at the composition cursor; page keeps its keyboard across a document switch; IME, tip and Hide White Space tests on the ported mechanisms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: a pass whose input edits the document runs again so its frame paints the edit; read-only balloons open no edit; balloon tests type in the card's field
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: a right click selects what it clicked before its menu opens; the page under a point is the nearest shown band; the status bar's page in view measures from the view's top edge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: Hide White Space gets the page bodies; a refused balloon draft stays when the balloon is left; context menu, crop and ruler tests on the ported mechanisms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: comment drafts stay with their document across a window switch; Hide White Space test probes the overlap inside the text areas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g2: rotated effect-extent fixtures use Word's exchanged-frame measure (craft-libs #2227)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* red stub g1: the title bar's search and Discord and the status bar's zoom slider and Focus give way in a narrow window (#5886 fit, measured per step); the IME composition draws in the text's face, size and baseline through Draw::face_run; narrow-window tests read the bar row and the painted texts; production's three composition tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* land sync: a refused input-method edit asks the framework for the interrupt (ToolPass::ime_interrupt), so the commit keeps its InputMethod cause
* port build loop: craft-i18n and craft-fonts come from the environment (CRAFT_I18N_DIR, CRAFT_FONTS_DIR), not machine paths in the manifest
* Resolve the craft framework from https://github.com/storytold/craft-libs next at 362eb2820996b475e6f21967c561219dbde24343
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at 362eb2820996b475e6f21967c561219dbde24343
* port: cargo fmt
* fonts: drop the face_names re-export the ported UI fallback no longer uses
* Restore the [patch.crates-io] block: the egui and winit forks and the vendored crates the framework builds with
* Workspace clippy: dead code and unused imports the port left, test-only helpers under cfg(test), the examples report a failed install
* Tests: headings read in tree order, not egui id-map order; the picker Install is aimed after downloading goes off, which adds a licence line to each row and moves it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Ribbon: own icons under wordcraft.* names so the catalog no longer shadows them; 32/17-pt ribbon icons and corner launcher
* Ribbon: filled menu arrows right after the label, as the old ribbon
* Ribbon: 22-point small-row pitch (20-point rows a tight gap apart), RibbonLook
* Ribbon: Draw colour/thickness and Layout align/group/rotate show icons alone; Window collapses to the more icon, as the old ribbon
* Styles gallery: sample letters on the ribbon with no white paper box, as the old ribbon
* Title bar: tool-size QAT icons, the filled undo-list arrow and the small AutoSave switch, as the old title bar
* Ribbon: tabs in the text colour over a 3-point underline
* Ribbon: body on the old lighter band with its rules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
* Ribbon: framed Styles gallery; Style Sets drop their buttons while all show
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
* wasm: gate native-only craft features (dialogs, update, automation client, default app) off wasm32
craft-dialogs (rfd folder picker, file paths) and craft-update (ureq/ring, getrandom 0.2) are
documented native-only, as are craft::automation's client/security/args/dialogs and
craft::platform::default_app. ui-egui takes `dialogs` and `update` through a
non-wasm32 `craft` dependency; wordcraft-mcp's `Remote` bridge moves to backend/remote.rs,
native only. The code that used them is gated the way production main gated its
native-only paths, with a plain fallback on the web. Also drops dead-code/unused-import
warnings on wasm32 and keeps chrono's parser available there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* MCP: pin the shared server refusing a request without the JSON-RPC version (craft-libs #2444)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resolve the craft framework from https://github.com/storytold/craft-libs next at a5f6cd7f6ccd560438e3bbeb1209aa117ba957dc
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at a5f6cd7f6ccd560438e3bbeb1209aa117ba957dc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* port: the default-chords rows stay mutable only where the off-macOS rows extend them (macOS clippy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* port: the web build embeds its Japanese interface face when the craft-fonts checkout has one, CRAFT_FONTS_REQUIRED binds the native build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* port: wordcraft-web builds against the ported UI: the host takes the framework language, the legacy prefs parser is imported, no native-window hook on the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ui-egui: use the framework constructors for non_exhaustive types
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* port test: the files clipboard keeps any absolute path from a uri-list, so the copied-files trials run on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resolve the craft framework from https://github.com/storytold/craft-libs next at 1e48c0807e18c5f5ae25b6227fde52281942f288
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at 1e48c0807e18c5f5ae25b6227fde52281942f288
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* port test: on macOS the smoke close goes to the platform quit, so Don't Save shows as no second prompt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resolve the craft framework from https://github.com/storytold/craft-libs next at 1e48c0807e18c5f5ae25b6227fde52281942f288
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at 1e48c0807e18c5f5ae25b6227fde52281942f288
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resolve the craft framework from https://github.com/storytold/craft-libs next at 27c1c0ebb1d16adf97d09952bb781e69f9962e46
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at 27c1c0ebb1d16adf97d09952bb781e69f9962e46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resolve the craft framework from https://github.com/storytold/craft-libs next at 243d68e12d05e89122db6d154924bf1992e10d38
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
* Cargo.lock: resolve against craft-libs next at 243d68e12d05e89122db6d154924bf1992e10d38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
#6886 read DrawingML's frame preset as a rectangle because WordCraft's
model had no frame. Now that it has one, the model bridge keeps the kind
and its border width (adj1), so the shape opens, saves and draws as a
frame.
* #778: take craft-libs integration/wordcraft-778 at beeea924
Every craft-libs git dependency (workspace, ui-egui, wordcraft, wordcraft-web,
krilla patch) moves from 453b0da782 to beeea92451 (craft-libs main 0649a07aa
plus open PRs #2061-#2064). Cargo.lock: only craft-libs sources move, plus
windows-sys edge changes inside craft-libs crates; no crates.io versions change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #778: docx stacking-order test follows the shared reader's one-more z
craft-libs 5f453efa9 (craft-docx: a relativeHeight of 0 stays the lowest
stacking order) reads Float::z as one more than the file's relativeHeight and
writes stored orders one less, so a file's 0 is no longer "none". The test
expected the old values; relative order and the round trip are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #778: take craft-libs integration/wordcraft-778 at 24a15211
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* deps: pin craft-libs to the merged shared cutover prerequisites
* #778: pin craft-libs main at 93dac78c (with #2061-#2064)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
SonarCloud's coverage shards run tests built with -Cinstrument-coverage
on shared runners. Tests that assert a wall-clock limit or a time
ratio swing there: the megabyte-word test took 5.7-23 s against a
15 s limit, and three linear-time tests read 24-31x against 24x. Each
one that flakes turns main red after merging.
Ignore under cfg(coverage) every test whose purpose is performance
(linear time, bounded, capped, fast). The gate CI still runs them all
uninstrumented. Behaviour tests that only carry a generous time guard
(fuzz, never-panics, clipboard, regex, render, recent fonts) and the
SSIP speech timeout tests keep running, so their checks stay covered.
Claude-Session: https://claude.ai/code/session_01FypgCXtSjB6e5jmy9Uq7u8
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Dependencies: take craft-libs main at 3af2280ee3
Every craft-libs git dependency (the workspace's 25, ui-egui's 3, the app's
craft-print, the web build's 2 and the krilla patch) moves to craft-libs main
at 3af2280ee3 from the 8 revisions they were pinned at. Cargo.lock changes
those sources, moves winprint and craft-winprint-gdi with craft-print, drops
the second craft-tiff, and adds cap-primitives and its dependencies, which
craft-font-store's Language pack recovery uses on native builds.
- craft_print::Job has two new fields. WordCraft sets grey_pages to false,
since it does not turn the spooled pages gray, and driver_settings to None.
- DOCX text boxes, rectangles, rounded rectangles and ellipses are now
written in mc:AlternateContent with a VML fallback that repeats the text
box's text. Two tests that counted w:txbxContent elements, or the story
text, now count the fallback copy as well.
* Printing: the isolated print helper keeps the job's grey pages and driver settings
The Windows print helper process rebuilt each job with grey_pages off and no
driver settings, whatever the job carried. Its request now carries both: the
driver settings travel as the printer's name and the DEVMODE in hex, and
damaged settings are an error. The request file may now be up to 2 MiB larger,
the size of the largest driver settings craft-print accepts, written as hex.
Comments in Cargo.toml and apps/wordcraft/Cargo.toml now describe the shared
craft-libs commit, and the shared-story text box test says where its two copies
are written.
* DOCX: open picture frame shapes and keep chart formatting from craft-libs
At this craft-libs commit the DOCX reader returns a picture frame shape
(`frame` preset) as its own shape kind, and charts carry series formatting
and axis settings. WordCraft's model had neither:
- A document with a picture frame shape failed to open with "unknown
variant `frame`". The model bridge now reads it as a rectangle, as the
earlier reader did.
- The chart model drops nothing the shared chart model holds: series fill,
line width, line and fill off, markers, smooth lines, data labels and
number format, and the category and value axes. Before, saving a chart
with any of these wrote the chart again without them.
- A new scatter series is drawn as markers without a line, as before.
Change Chart Type sets this when a chart becomes a scatter chart or stops
being one, Edit Data keeps each replaced series' formatting, and Data
Labels replaces each series' own label setting.
* Charts: draw turned axis titles and keep stored scatter charts without lines
At this craft-libs commit a chart's vertical axis title is a text item
turned -90°. WordCraft's graphic text item now carries that angle, and the
text is laid out along its box and drawn turned about the box's center.
Scatter series saved in a .json document or a recovery snapshot before
series formatting existed have no `noLine` value. They now read as markers
without a line, as they were drawn when saved.
* Charts: draw opened ODT scatter charts without lines
The ODF reader at this craft-libs commit does not read a scatter chart's
line setting, so a scatter chart saved as ODT and opened again was drawn
with lines between its points. The ODF writer writes every scatter series
as markers without a line, and the opened chart is now drawn that way.
* Charts: set scatter series to markers only for opened ODF files alone
Opened ODT, OTT and FODT files set their scatter series to markers
without a line, since the ODF reader does not read a series' line
setting. Other formats that go through the same import path keep their
series as read. A series that arrives with its markers turned off gets
them back, as Change Chart Type does, so it is still drawn.
The test for an opened scatter chart now also covers flat ODT, checks
the drawn items against the markers-only drawing, and checks that the
chart's paragraph is still written as read.
* Dependencies: take craft-libs main at 453b0da782
Every craft-libs dependency, and the craft-proof note in Cargo.toml,
moves from 3af2280ee3 to 453b0da782. Cargo.lock adds craft-dds, which
craft-image-codecs now uses; no crates.io version changes.
- craft-xls builds its test fixtures only for tests and its
test-support feature, and they return a Result. wordcraft-formats
gets a test-support feature that turns it on; sheet::xls_fixture is
behind it and returns Result, and wordcraft-engine's tests enable it.
- craft_metafile::Picture has new report fields; the render tests'
literals fill them with Default.
- The docx tests follow the writer: the font table is kept as read,
the flat OPC comparison allows a kept part without its XML
declaration, and the bibliography store is related from the main
part, once, after a second save too.
* DOCX: gutter position Top is kept when a document is opened and saved
craft-libs now reads w:gutterAtTop into its settings model instead of
keeping it as unread XML, and WordCraft's settings had no field for it,
so opening and saving a document dropped the setting. Settings gets
gutter_at_top (off by default), which the document bridge carries both
ways. Layout still puts the gutter on the left.
* Charts: Change Chart Type gives a pie chart's value axis the new type's gridlines
A pie or doughnut chart keeps a plain value axis (no gridlines, axis
line on), and a new chart of any other type has gridlines and no axis
line. Change Chart Type kept the old axis, so a pie chart changed to a
column chart was drawn and saved without gridlines and with an axis
line. Change Chart Type between a round chart and another type now sets
the value axis to the new type's when it is still the old type's; an
axis that was changed stays as it is.
The progress log gets a line for the chart formatting, turned axis
titles, picture frame shapes and gutter position this branch brings.
The gutter_at_top doc comment states only what the field holds.
* chore: cut over image codecs and zip to craft-libs, fix main test regressions
* tests: store ODS mimetype and use standard ODF namespaces in mailings test
* Remove unused quick-xml workspace dependency
* fix: use standard ODF namespaces in file_dialogs test and preserve trailing line in markdown import_on_with_lines
* fix(geom): use png_chunks for PNG dimensions and p.fits(budget) in decode_for_drawing
* docx: ignore w:lnNumType without w:countBy (#6209)
* DOCX: record the w:lnNumType rule in the parity docs (#6209)
A row for `w:lnNumType` (§17.6.8), its status line and a revision entry in
`docs/file-format-parity.md`, the progress-log bullet in `ROADMAP.md`, a comment in
the reader saying why a missing `w:countBy` leaves numbering off, and a save check in
the zero-interval test.
In a multi-column section every line number was drawn left of the page
margin, so the second column's numbers sat on top of the first column's.
Each column now has its numbers left of its own edge, as in Word.
Word in other languages saves the built-in "line number" style under a
localised id (German: Zeilennummer); the numbers now find it by its
built-in name when there is no LineNumber id, so its formatting applies.
Fixes#6018.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
## What changed
Word stores paragraph indents (`w:ind` left/start, right/end, hanging, firstLine) in 16 signed bits and paragraph
spacing (`w:spacing` before/after) in 16 unsigned bits. A file that writes a larger plain integer is read by Word
modulo 2^16: `w:left="66256"` is a 720-twip (0.5") indent in Word. We read the full value, so such a paragraph was
indented by about 46 inches and its text was pushed off the page.
- `crates/docx/src/units.rs`: new `tw_i16` / `tw_u16` readers. A plain integer keeps its low 16 bits (two's
complement for indents, so 66256 -> 720 and 65535 -> -1); values with a unit or a fraction read as before.
- `crates/docx/src/read/props.rs` and `read/styles.rs` use them for `w:ind` and `w:spacing` before/after, in direct
and style formatting.
- In-range values read exactly as before.
## Testing
- `crates/docx/tests/it/twips_wrap.rs`: synthetic documents with out-of-range indents and spacing in paragraph and
style properties check the wrapped values; in-range values and values with units are unchanged.
- Unit tests for the two readers; `cargo xtask ci` passes.
Found by a real-file corpus comparison against Word's own PDFs: a file whose indents exceed 16 bits shows its text on
the page in Word and off the page here.
Co-authored-by: tpawley2001 <268951182+tpawley2001@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
## What changed
The DOCX writer's content-control planner (`crates/docx/src/write/sdt.rs`) decides whether a control that
covers a whole paragraph is written block-level (`w:sdt` around `w:p`) or run-level (inside the paragraph).
It only treated the control as covering the whole paragraph when nothing but control-end markers followed
its end. Bookmark, comment and permission range markers after the end now count as "nothing" too, so the
control stays block-level and the markers stay at the end of its paragraph.
## Why
Word writes a body-level `_GoBack` bookmark (`<w:bookmarkStart w:name="_GoBack"/><w:bookmarkEnd/>` directly in
`w:body`) in nearly every file it saves. When the last body-level content control was followed by it, the
reader put the bookmark at the end of the control's paragraph, and the writer then turned the control (and
any controls nested in it) into run-level `w:sdt`s inside that paragraph. For a repeating section
(`w15:repeatingSection` / `w15:repeatingSectionItem`), which must wrap whole paragraphs or rows, Microsoft
365 Word then refuses to open the saved file ("the file appears to be corrupted"). Plain nested block
controls changed what they cover the same way.
Found by the real-file corpus: Word reported our saved copy of a form with a repeating section as corrupted.
## How it was tested
- New tests in `crates/docx/tests/it/nested_block_controls.rs` (synthetic packages): a repeating section around
one paragraph, plain nested block controls, nested block controls in a table cell, a run-level control that
must stay in its paragraph, and repeating sections / block controls followed by a body-level bookmark (with
and without data bindings) all round-trip with the controls at the same level and the text kept.
- `cargo xtask ci` passes.
Co-authored-by: tpawley2001 <268951182+tpawley2001@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* #5843: resolve LibreOffice semicolon-separated font fallback lists to first installed family
* #5843: address review comments on font fallback list resolution
* #5843: verify fallback list text on cache hit and accept Times New Roman in tests
* #5843: bound the fallback lists read from a DOCX and reuse their classification
A document could name thousands of fallback families in `w:ascii`/`w:hAnsi`.
Nothing bounded that value, and the name-based rules (roman classification,
Thai family, named substitutes) then scanned every candidate for each shaped
piece, so opening the document took seconds.
`w:ascii` and `w:hAnsi` now keep the leading families within MAX_FONT_NAME
bytes, cut at a `;` so no name is split, as `w:cs`/`w:eastAsia` already bound
their names. The family a real list would pick is kept: a LibreOffice list
names a few families, well under the bound.
The Thai-family and named-substitute answers are worked out once per list and
kept in the fallback-list cache, keyed by the list text, so shaping no longer
rescans candidates for every piece. Resolution still reads every candidate.
A 500-paragraph document whose font names 20,000 candidates laid out in 10.8 s;
bounded on read it takes 17 ms.
Tests:
- a hostile fallback list keeps its leading families, cut on a `;`
- a real LibreOffice list is read whole
- a later Thai or named fallback still classifies, and lists are cached
Text nodes were decoded without line-end normalisation, so a file
saved with Windows line ends kept the CR of each CR LF: a line break
inside w:t read as two spaces. Text and CDATA now go through
quick-xml's xml_content, which reads CR LF and a lone CR as one line
feed; a CR written as stays a CR. Attribute values were already
normalised.
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
A file that turns an inline picture but writes no wp:effectExtent (or a zero
one), as other tools do, makes Word keep the picture's line to its frame and
let the turn overhang it, cut at the line's top and bottom: the frame as it
is in Word 2007 layout (compatibilityMode < 15), with width and height
exchanged from 45 to 135 and 225 to 315 degrees in Word 2013+ layout.
WordCraft always reserved the exact rotated bounds (Float::spin_pad), which
is what Word's own files encode through their effect extents, so the text
after such a picture sat up to 34 pt too low (docxide-pdf
standalone-picture-compat12-* / compat15-angle45/135).
The docx reader now marks such objects (Float::bare_turn, cleared when the
object is turned again); the inline room comes from Float::line_pad, which
display uses too to place the frame in it, and the line clips the picture's
overhang. The writer keeps writing no turn overhang for them, so a save
round-trips. Word-saved pictures are unchanged.
Co-authored-by: Naxvog <4963183+naxvog@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* WC6-07: preserve paragraph text direction
* Resolve gaps summary merge
* WC6-07: retain paragraph direction variants
* WC6-07: preserve strict paragraph direction
* Update lockfile for DOCX test dependency
* Close paragraph direction implementation
* Format paragraph direction imports
Compatibility-mode documents store text boxes as VML only. The reader
ignored v:textbox's text direction, so a header text box turned 270
degrees was drawn level. It now reads it as Word for Windows does:
mso-layout-flow-alt:bottom-to-top is vert270 whatever layout-flow says;
otherwise layout-flow:vertical or vertical-ideographic is vert; anything
else stays horizontal.
Co-authored-by: Naxvog <4963183+naxvog@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
A Strict document opened with its text and no shapes at all. Strict puts
shapes, groups and canvases (wsp, wgp, wpc) and their parts in its one
WordprocessingDrawing namespace, which the reader maps to wp:, while the
drawing reader looks for Word 2010's wps:, wpg: and wpc: names. Word also
writes a Strict text box's text in wne:txbxContent.
The XML reader now names those elements as Transitional documents do,
from the element and its parent (xml::element_prefix), and reads a text
box's content from wne:txbxContent and from the schema's own
txbxContent. Saving writes them as Transitional.
Claude-Session: https://claude.ai/code/session_01LvG6E1XTfHtZDbfYwfREhR
Co-authored-by: Filip Strajnar <filip.strajnar@proton.me>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
* #5267: a linked picture shows and follows its link; DOCX keeps it on the drawing
A link put on a picture from its context menu was stored, but nothing showed
it: hovering the picture gave no tip, and Ctrl+click picked the picture for a
copy instead of following the link. Now the hover tip and Ctrl/Cmd+click work
on a linked picture, shape or text box, in line or floating, as on linked text.
DOCX: Word keeps a picture's hyperlink on the drawing (wp:docPr/a:hlinkClick,
ECMA-376 Part 1 20.4.2.5). It is now read (a w:hyperlink around the run wins)
and written beside the w:hyperlink, sharing one relationship. A link to a place
in the document stays the w:hyperlink w:anchor only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: ink and Office 2016 charts take their drawing's link; Ctrl+click over text on a Behind Text picture stays a text click
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: a chart or ink takes the link of the choice it was read from; Ctrl/⌘+click in the docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: the decoy choice in the chart-link fixture needs a namespace no reader knows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: inside a linked text box, hover and Ctrl/⌘+click take the box's link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #5267: the picture-link test sets the image's fx after merging main
Main gave InlineObject::Image picture effects (fx); the round-trip test this PR adds built
an image without them and no longer compiled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
* #4985: a numFmt none list level shows its literal text
Word labels a paragraph whose level has numFmt none and lvlText RESPONSE:
with RESPONSE:. Counters::next_label returned no label for any none level;
now only a none level of placeholders shows nothing. Its own %n stays
empty, and it still doesn't count. Numbering::shows_label agrees.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: a "none" list level counts, and only its own number is empty
Taken from MeHail-02's numbering-literal-none branch (46405e66), checked in Word
for Windows: a none level is an ordinary level whose own number reads as
nothing. It counts and restarts the levels below it, stays empty in legal
numbering, and an empty label still tabs the text to the indent unless it
already ends there (the Chapter 1 list's Heading 2 stays at the margin).
Co-Authored-By: MeHail <mihailsmetanin15@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: STYLEREF in full context keeps a none-level heading's parent
Review: a none level now has a label, so its headings reach the style index,
which leaves the none level out of the levels it keeps; \w and \r took the last
kept level for the heading's own and dropped the parent. Levels now carry their
index, and the levels above are picked by it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: STYLEREF number switches on a none-level heading
Review: in full context an empty label of its own added a trailing period (3.),
and the suppress switch gave a none level's label (Note), which holds no number,
back whole. An empty own part is left out, and a none level's label with no
number is suppressed to nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: STYLEREF \s and \t on none-level labels
Review: \s took a none level's label (Note) for a chapter number; the heading's
count stands in, as for an unnumbered heading. \t matched any ancestor's number
inside a word (the a of Chapter); only the numbers the label's template shows
count now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: STYLEREF takes a label's numbers by their spans
Review: \s took the last word of a label (Response of "3 Response") and fell
back on the heading count for a none level showing its parent's number (%1);
\t kept text attached to a number (Section3). A label's numbers are now the
spans of the values its template shows, with their delimiters (a letter number
only standing apart from other letters); \s takes the last of them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #4985: tests edit the numbering through Arc::make_mut after merging main
Main shares the numbering between undo steps (#2694), so `Document::numbering` is an
`Arc<Numbering>`; the tests this PR adds wrote to it directly and no longer built.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: MeHail <mihailsmetanin15@gmail.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
* fix(fields): quoted-argument backslash escapes and body PAGE in a cardinal-text section
A backslash inside a quoted field argument makes the next character literal, so TITLE "x \* Upper" shows x * Upper as Word does. A body PAGE field now uses the section's page number format (cardinal text shows words), as headers and footers already did.
* Fields: PAGE in a body table follows the section number format; parity docs
* fmt
* docs: clarify quoted field escape rule
* Fix page fields in fitted text boxes
* Move fitted cache test after layout helpers
---------
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
* WC6-06: preserve adjustRightInd in DOCX
* WC6-06: honor grid indent defaults and XML order
* Update lockfile for DOCX test dependency
* Format DOCX ordering assertion
* Keep main lockfile for paragraph property PR
* PR 5384: tighten grid indent docs and regression
* PR 5384: match paragraph check formatting
* docx: keep a paragraph's text alignment
w:textAlignment (ECMA-376 17.3.1.39) was not read, so a save dropped it. Word sizes a line by it when a
list's bullet is larger than the text: without it, those lines grow and every page after them moves.
ParaProps gains text_alignment, read and carried through styles, and written back after w:jc. Kept for
the file only; the layout does not use it yet.
* contributors: add entropybeater
---------
Co-authored-by: Brian <255903314+entropybeater@users.noreply.github.com>
* doc, docx: keep the compound border lines
The nine thin and thick compound lines (thinThickSmallGap to thinThickThinLargeGap, ECMA-376 17.18.2)
were read as a single line and written back as one, on paragraphs, tables, cells and pages. BorderStyle
gains them; they are written back by name and drawn as a single line of the border's width, as before.
RTF export and import carry them too (the importer read four of them as double).
* contributors: add entropybeater
---------
Co-authored-by: Brian <255903314+entropybeater@users.noreply.github.com>