DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge branch 'main' into codex/hungarian-localization
macadminHU4a85d3b61e34
diff --cc ROADMAP.mdindex c274f19a0,1fc58b33e..b3d3abeb8--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -379,14 -378,17 +378,23 @@@ list) · [roadmap.md](docs/roadmap.md)## Progress log+- **2026-10-25** · HU1: extend Hungarian toolbar regression coverage through real right-click flyouts in both column layouts, checking translated row labels, painted shortcuts, clipping and overlap. Existing assertions and runtime behavior are unchanged. No readiness percentage change.+- **2026-10-25** · HU1: retain both branches' localization and toolbar regression tests while adopting the updated egui button role; translate Data Merge Arrangement as Elrendezés (1,905 Hungarian entries and four context captions). No readiness percentage change.+- **2026-10-25** · HU1: add the two missing Georgian File Info and Check for Updates menu captions while retaining the complete-menu regression unchanged. No readiness percentage change.+- **2026-10-24** · HU1: document localization lookup, Tools-panel rendering and language, menu-path and tooltip regression tests. Documentation only; runtime behavior, translation catalogs and test assertions are unchanged. No readiness percentage change.+- 2026-10-23 (HU1): repair localization test integration after merging main: restore separate all-catalog integrity, context-caption and numeral/count tests, retaining assertions from both branches; register Hungarian in the shared language and context catalogs. Retain 17 live labels missing from the known-label test list and remove 13 unused catalog entries (1,904 entries + four context captions remain).+Newest first.+ - **2026-10-27** · An iconic panel's flyout stays open while you work in the canvas or a text field: Auto-Collapse Iconic Panels is off by default, and preferences saved with it on start with it off. Preferences › Interface › Panels holds the setting next to the column bar's menu item. No readiness percentage change.+ - **2026-10-20** · Edit › Keyboard Shortcuts is craft-keymap's shared dialog: commands grouped by menu with Show and Filter, recording that asks before taking a key from another command, undo and redo, named shortcut sets (edits of Default become Custom; an imported set becomes a set of its own), an on-screen US keyboard, InDesign Show Set files reviewed before they apply, JSON export and an HTML summary. ui.json keeps the `shortcuts` map earlier versions read, for the active set. No readiness percentage change.+ - **2026-10-19** · Import InDesign Set… runs on craft-keymap's importer: a set's Window menu panel items (Layers F7, Pages F12, Swatches F5) and Tools items set the panel and tool shortcuts, all of an item's Default keys apply, and the report adds numeric keypad keys read as main keys and likely commands for unmatched items (`window.importShortcuts`). On InDesign's Windows defaults it matches 366 of 1,629 items (was 233) and changes 23 commands. No readiness percentage change.+ - **2026-10-19** · Keyboard shortcuts run on the shared craft-keymap crate. Panels take shortcuts, with InDesign's defaults where the key is free (Swatches F5, Color F6, Layers F7, Info F8, Stroke F10, Paragraph Styles F11, Character Styles Shift+F11, Pages F12, Align Shift+F7); tool keys are editable in Edit › Keyboard Shortcuts and `window.setShortcut`, and tools sharing a key take turns (B). Saved shortcuts load unchanged. No readiness percentage change.+ - **2026-10-16** · Edit › Keyboard Shortcuts imports a set saved by InDesign's Show Set (.txt, Windows or Mac key names, UTF-8 or UTF-16): matched commands take its Default shortcuts or lose theirs, other commands give up keys it takes, and a report lists what it changed and the items it could not match (`window.importShortcuts`, #1180). Tool keys stay fixed. No readiness percentage change.+ - **2026-10-20** · PDF/X-1a:2003 export (craft-libs#194): `file.exportPdf {standard: "x1a"}`, the Export PDF dialog's PDF/X-1a:2003 preset and standard. The PDF/X-4 print file is flattened in its inks by craft-prepress (no transparency; spot, process, overprint and live text kept; complex regions as DeviceN images at the Transparency Flattener preset's resolution), then written as PDF 1.4 with the X-1a identification and checked; `validate-pdf --standard x1a`. Soft drop shadows reach the flattener in their swatch's inks; other soft effects are still RGB images. No readiness percentage change.+ - **2026-10-20** · Print color (craft-libs#190): CMYK print PDFs blend in DeviceCMYK through craft-pdf's print settings instead of byte rewrites, with the CMYK working space as the output intent in PDF/X-4 only; overprint (Overprint Fill, Stroke and Gap, overprinting text, 100% [Black]) is written as `/op` `/OP` `/OPM 1`; Knockout Group writes `/K true` instead of becoming an image; File › Print prints the PDF Export PDF writes. No readiness percentage change.+ - **2026-10-20** · Separations Preview shows the plates the exported PDF prints, spot plates included: each visible spread is exported in memory with the Export PDF settings and separated by craft-prepress off the UI thread, then shown as all inks, one plate or an ink limit. The Ink Manager builds craft-prepress's `InkSet` from the document for export and preview. On the sample magazine the first preview of a spread takes about 0.6–1.1 s, most of it the PDF export. No readiness percentage change.+ - **2026-10-20** · Spot gradients print on their plates. A gradient stop keeps the swatch it was given (Gradient panel drop, `swatch.create {gradient}`, `object.gradient`, IDML `StopColor`), following its renames and edits. PDF export shades one spot with its tints or [Paper] as a Separation, and a spot with process inks or a second spot as DeviceN; a process gradient to [Paper] prints in DeviceCMYK. Documents with plain-color stops export as before. No readiness percentage change.- **2026-10-24** · Panels dock through the suite's shared docking (craft-libs), and on desktop a floating panel opens in its own window that can leave the main window: keys pressed there run the main window's shortcuts, clipboard and tool keys, and the canvas paints no tool cursor while another of the app's windows has the pointer. The web build keeps floating panels in the page. No readiness percentage change.- **2026-10-24** · Story Options rejects malformed or nonexistent explicit story/frame IDs without changing the selected story, including an invalid frame alongside a valid story. Null targets remain absent; omitted targets still use the selection. No readiness percentage change.- **2026-10-24** · Text Frame Options explains that a custom baseline-grid increment must be a measure greater than zero when zero, a negative value or a non-measure is entered. Validation is unchanged. No readiness percentage change.diff --cc crates/ui-egui/src/toolbar.rsindex 028243fc1,8fc1e1229..a4d4922bc--- a/crates/ui-egui/src/toolbar.rs+++ b/crates/ui-egui/src/toolbar.rs@@@ -137,27 -135,9 +137,27 @@@ pub fn show(app: &mut DesignApp, ui: &mui.ctx(),|ui| {egui::Frame::popup(ui.style()).show(ui, |ui| {+ let row_width = g.iter().fold(210.0_f32, |width, tl| {+ let label = crate::i18n::tr(&app.ui.language, tl.label);+ let label_width = ui+ .painter()+ .layout_no_wrap(label.to_owned(), egui::FontId::proportional(12.5), t.text)+ .size()+ .x;+ let shortcut_width = ui+ .painter()+ .layout_no_wrap(- tl.shortcut.unwrap_or("").to_owned(),++ crate::menus::tool_shortcut_label(app, tl.id).unwrap_or_default(),+ egui::FontId::proportional(11.5),+ t.text_dim,+ )+ .size()+ .x;+ width.max(label_width + shortcut_width + 46.0)+ });for tl in g {ui.horizontal(|ui| {- let (r, row) = ui.allocate_exact_size(vec2(210.0, 24.0), Sense::click());+ let (r, row) = ui.allocate_exact_size(vec2(row_width, 24.0), Sense::click());if row.hovered() {ui.painter().rect_filled(r, 2.0, t.hover);}diff --cc docs/localization-parity.mdindex d430085df,404cf13a7..253bbdf0e--- a/docs/localization-parity.md+++ b/docs/localization-parity.md@@@ -1,6 -1,6 +1,6 @@@# Localization parity- > **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-25 · **Change:** minor (Hungarian arrangement and Georgian menu captions; older catalog counts retain their dated measurement) · **Target:** Adobe InDesign 2026 (21.6)-> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-23 · **Change:** minor (missing translations are reported, never a failure; catalog counts remain the 2026-10-10 measurement) · **Target:** Adobe InDesign 2026 (21.6)++> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-27 · **Change:** minor (shared-module integration and retained localization regressions; older catalog counts retain their dated measurement) · **Target:** Adobe InDesign 2026 (21.6)Per-language status of the DesignCraft interface and of document typesetting in each script.Script-specific typesetting detail: [cjk.md](cjk.md), [cjk-typography.md](cjk-typography.md),@@@ -10,8 -10,8 +10,8 @@@## How it was measured- Interface strings live in `crates/ui-egui/src/i18n.rs` (a shared table with German, French,+ Interface strings live in `crates/ui-egui/src/i18n/table.rs` (a shared table with German, French,-Spanish, Japanese and Simplified Chinese columns) and `crates/ui-egui/src/i18n/{ar,cs,it,ja,ka,pt_br,uk}.rs`.+Spanish, Japanese and Simplified Chinese columns) and `crates/ui-egui/src/i18n/{ar,cs,de,fr,hu,it,ja,ka,pl,pt_br,ru,uk}.rs`.Untranslated strings fall back to English. A script (2026-10-10) built the set of Englishinterface strings as the union of every catalog's keys, every engine command label and everyliteral passed to `tr`/`t` in the UI crate: **1,724 strings**. A further ~145 capitalized literals@@@ -54,32 -52,6 +54,39 @@@ caption, table row/column movement andcatalog. Print, import options and an active table were rendered in Japanese and English withcraft-fonts. The language totals above retain their dated measurement; this is a targeted fix.+Hungarian follow-up (2026-10-17): `hu.rs` adds **1,917 entries and two context-specific+captions**, including the 37 tool names. This is a partial interface catalog based on an earlier+source snapshot, not a new coverage measurement against current main. It was prepared with AI+assistance and initially reviewed by a native Hungarian contributor with over 30 years of DTP+experience; further terminology and in-context review is welcome. Preferences lists `Magyar`;+untranslated/new strings fall back to English. Hungarian spelling and hyphenation are separate+follow-up work and are not enabled by selecting this interface language.+Review corrections (2026-10-20) distinguish numbers from counts and text columns from grid+columns, use formal Hungarian address consistently, and align translated menu paths with+their visible labels. These corrections do not add new catalog keys or change coverage.+Test integration (2026-10-23) registers Hungarian in the shared catalog checks and restores+assertions from both merge parents. That snapshot has **1,904 entries and four context+captions** after removing 11 untranslated interface-language names (the selector displays their+native names directly) and two unused internal tint keys. Seventeen live UI labels are retained+and added to the integrity test's known-label list. No used Hungarian translation was removed.++Data Merge follow-up (2026-10-25): `Arrangement` is translated as `Elrendezés`, bringing the+Hungarian catalog to **1,905 entries and four context captions**. The shared all-language+arrangement check and the Hungarian catalog and toolbar tests are retained alongside the+main-branch egui API update. This is a targeted addition, not a new coverage measurement.++Georgian menu follow-up (2026-10-25): `File Info…` and `Check for Updates…` now have+Georgian catalog entries. The existing complete-menu translation assertion is unchanged.+This targeted addition retains the dated coverage figures below; the two new captions have+not had a separate native-speaker review.+++Module-layout integration (2026-10-27): catalog lookup stays in `i18n.rs`, while the shared++table and localization tests live in `i18n/table.rs` and `i18n/tests.rs`. Menu and toolbar++regressions from both branches are retained in `menus/tests.rs` and `toolbar/tests.rs`.++Hungarian catalog contents and the dated coverage measurements are unchanged. Toolbar++coverage follows the current platform-specific keymap captions and checks a user-assigned++chord alongside translated flyout text; row sizing measures the displayed shortcut.++## Other shipped languages| Language | Code | UI strings translated | Status |@@@ -118,11 -89,6 +125,12 @@@ locale shaping. See [typography-parity.| Date | Change | Summary ||---|---|---|++| 2026-10-27 | minor | Adopt shared module layout; preserve both parents' tests and all Hungarian catalog entries |+| 2026-10-25 | minor | Hungarian Data Merge arrangement caption added; 1,905 entries and four context captions; both merge parents' tests retained |+| 2026-10-25 | minor | Georgian File Info and Check for Updates captions added; complete-menu regression retained |+| 2026-10-20 | minor | Hungarian review: four context captions, formal address, consistent menu paths; corrected other-language count to six |+| 2026-10-17 | minor | Hungarian (`hu`) interface added: 1,917 entries and two context captions; initial native-speaker review |+| 2026-10-23 | minor | Hungarian test integration restored; 1,904 active catalog entries and four context captions after removing unused keys || 2026-10-11 | minor | Localized Japanese print, import and table controls; checked Japanese and English renders || 2026-10-14 | minor | Georgian (`ka`) interface added || 2026-10-10 | major | Created: catalogs measured (1,724 strings), the twelve key languages plus Italian and Ukrainian |