PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
M14: localize displayed shortcut key names (#496) (#884)
Tevinhead2a02d5ddab7a
diff --git a/ATTRIBUTION.toml b/ATTRIBUTION.tomlindex 0905e395e..919c6fe6d 100644--- a/ATTRIBUTION.toml+++ b/ATTRIBUTION.toml@@ -19,7 +19,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Simplified Chinese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "9a105c2a7177f076f7d4188e75c86fab682ee604db9a8cc54828c26fbf0c3999"+sha256 = "da2072af0bc5ac8f4b638cf2bd22ea81edddad32e534d3284ebeac205fb3d5a2"[[asset]]path = "crates/ui-egui/src/i18n/zh-hant.tsv"@@ -30,7 +30,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Traditional Chinese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "4bdc334589eb97d5ea94906cbeaa0980ee24245b189d32631dfc0ca01b138e58"+sha256 = "816a5e459259a8f2f4aa780157b63d4ab9098a34b2166957c13bbedda3cdbbb9"[[asset]]path = "crates/ui-egui/src/i18n/cs.tsv"@@ -41,7 +41,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Czech UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "2d3a92f0f131fa5ece645fa0a6f3299e4d2912e5776b3951caad996254b9549b"+sha256 = "ca9722c4240eb202085ac26c0c0db534ccd3db225ee3331675cd180f28d3dc2b"[[asset]]path = "crates/ui-egui/src/i18n/pt-br.tsv"@@ -52,7 +52,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Brazilian Portuguese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "687a5b9aef8126950e3d2a144bef253d7affb8d640468d55e984180540c6d81a"+sha256 = "505a9def1e292d39e2973b2e1039a4d272b87ede3df844fb182c68de6a438894"[[asset]]path = "crates/ui-egui/src/i18n/es.tsv"@@ -63,7 +63,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Spanish UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "582f286b990248de822c50a003302666b70c2317b26026cc547261b294b8fdb3"+sha256 = "8dfca1bb531bef33ca1e0fcb001d548a064dfbf58d67301545b9b4e630a76695"[[asset]]path = "crates/ui-egui/src/i18n/fr.tsv"@@ -74,7 +74,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "French UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "26652013f0aea0bd7b8d85ee404bd6c0abdd3df4c2ce4328436c836c5fe17dd2"+sha256 = "c6c0b185b418af93cd1a1fff6126483bc3a70147b2e97a4b14a76bcc712b6f01"[[asset]]path = "crates/ui-egui/src/i18n/de.tsv"@@ -85,7 +85,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "German UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "e7949815a7498728f503093276377fe28dd9721474e74be86d7c6b08e04356aa"+sha256 = "4287803114c8757aff013e559af65366ecf349e5ecc83bad90a2b5854a0aa971"[[asset]]path = "crates/ui-egui/src/i18n/te.tsv"@@ -96,7 +96,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Telugu UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "531223a0da0367941ed6fde83cf4dbce173a978793218af372add0484d3f0428"+sha256 = "abf2d9d5b3f1a216784585dd13d2e9052edd0b8f77fee2650e4ee2c0b5154fb7"[[asset]]path = "crates/ui-egui/src/i18n/it.tsv"@@ -107,7 +107,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Italian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "3859cb26f3f904c1cc5942aa3d80c2c0c6514f59cbf3579f761fe6f3d5cc370f"+sha256 = "194b4aadbafeeba02e8885dbce008c356b398d6bfff144e9ac30ad3796066775"[[asset]]path = "crates/ui-egui/src/i18n/ru.tsv"@@ -118,7 +118,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Russian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "ec7ead4385453163bb7391deb54703158d7dc41ab029755d46306071adbabfb3"+sha256 = "ce8a974c0e05aad532e6a91d604d132f278f1554966b8498e0850eb527918fe7"[[asset]]path = "crates/ui-egui/src/i18n/hu.tsv"@@ -129,7 +129,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Hungarian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "5924e38d2482b4d33a9cd73e96c116769a52a3fbe1f98e401dd1c6e8a1a3c904"+sha256 = "09d3c394a5e5d1fb1674bc7356254055469daa5499324f595119b7fed73aba7c"[[asset]]path = "crates/ui-egui/src/i18n/bg.tsv"@@ -140,7 +140,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Bulgarian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "514beb169b6916b0f6a0d9295b5016959c42c4a89e7308847a4fe309f8139f3b"+sha256 = "f0fe873d28d4ffdd613847199b2285f73350536f5e70fefccb357e226192fc93"[[asset]]path = "crates/ui-egui/src/i18n/ja.tsv"@@ -151,7 +151,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Japanese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "4a530d0e3d7f380194d439ee2269b1c0c4c1dbfedc6cdd0b4e45e986d6fb5a2f"+sha256 = "ca8fef2dad11a3b5c5dcc759676601ee46929d6b7e99c8e62418b9bafe86b0f5"[[asset]]path = "crates/ui-egui/src/i18n/uk.tsv"@@ -162,7 +162,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Ukrainian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "4c0c4ebf6a1c9a0c91e9a07842c8332e07be0710dfc992886bdf774a4a1cc5b4"+sha256 = "bd314fdd94d13a07a9e6cd38ebc10d91a99a51fec49bdbcb0a3743b797104c9c"[[asset]]path = "crates/ui-egui/src/i18n/ar.tsv"@@ -173,7 +173,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"usage = "Arabic UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "647234c45a66dd736e5bf833047a10b3d2a6860a066e7c2e9d6cef98fb499eca"+sha256 = "0b608fdeaef7087158d64cab06cade594b8fb6d9f1fc6b87a261ccd8cec26681"[[asset]]path = "assets/icons/accessibility.svg"diff --git a/ROADMAP.md b/ROADMAP.mdindex 9076f6da6..48d9e8d01 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -2,7 +2,7 @@**Stage: alpha** · next: beta, ~26% (ready for real work 49% → 75%) and ~400–700 h away-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** minor (readiness table with hours per audience; full number as weighted sum 49%; earlier: second look: ready 40% → 47%, mainstream 55% added; core-workflow gate applied → alpha) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** minor (localized shortcut labels, #496; readiness table with hours per audience; full number as weighted sum 49%; earlier: second look: ready 40% → 47%, mainstream 55% added; core-workflow gate applied → alpha) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)PdfCraft's one-page summary: how close it is to Adobe Acrobat Pro's offline feature set, and whatcomes next. Adobe's cloud services (Document Cloud, Acrobat Sign requests, shared review, the AI@@ -133,89 +133,10 @@ Ranked; detail and the full milestone table in [docs/roadmap.md](docs/roadmap.md## Progress log-| Area | Shipped | What's strong / what's missing |-|---|---|---|-| A Core | 75% | Parser, repair, encryption, incremental saves. Missing: lazy loading (`ByteSource`), own image codecs, PDF 2.0 extras, Arlington validation |-| F Forms | 71% | Filling, authoring, AF scripts, sandboxed JavaScript, data exchange. Missing: XFA, wider JavaScript object model |-| E Comments | 71% | Markup types with appearances, XFDF/FDF, summaries, calibrated 2D measuring (single-unit decimal scales). Missing: replace-text proposals, summary layouts, compound/fractional measurement formats |-| M Accessibility | 62% | Checker (all 32 rules). Missing: autotag, Tags/Order/Content panels, Reading Order tool, keyboard-only operation |-| B View | 55% | Shell, find, panels, tiles, web build. **Rendering is borrowed (`hayro`)**, so the 7 rendering P0s are only partial |-| D Organize | 55% | Pages, combine, split, bookmarks, labels. Missing: replace pages, transitions |-| G Protect | 54% | Passwords, permissions, redaction (including word lists), sanitize. Redaction codes (built-in FOIA and Privacy Act sets). Missing: certificate security, custom redaction code sets |-| H Sign | 48% | PAdES B-B signing and validation; macOS Keychain and Windows CNG certificate store signing. Missing: timestamps (B-T), LTV (DSS/OCSP/CRL), FieldMDP, smart cards, PKCS #11 |-| C Edit | 46% | Added text and images stay editable; header/footer/watermark. Missing: robust editing of existing text and images (fonts, subsets, reflow) |-| L Print | 36% | Acrobat-style sizing, n-up, booklet, CUPS. Missing: Windows and web printing, production options |-| J Create | 32% | From images, text, clipboard; Word/HTML/RTF export. Missing: Office import, Excel/PowerPoint export |-| N Misc | 27% | CLI, MCP, UI control channel, Action Wizard. Missing: AI providers, performance budgets |-| K Optimize | 26% | Reduce File Size, Optimizer. Missing: preflight, PDF/X/UA, transparency/fonts panels |-| I OCR | 19% | Searchable image for Latin script. Missing: other scripts and accents, editable-text output, deskew |--**What "shipped" means, and doesn't.** A feature is shipped when it exists and at least one specific test covers it. 159 of 398 shipped features rest on exactly one test, and only about 5 cite an external oracle (`pdftotext`, `pdfsig`, OpenSSL, a corpus). Shipped does not mean "as good as Acrobat".--**Robustness, measured.** `main`'s CI was red for 30+ runs until 2026-10-04 (a clippy lint, Windows line endings, flaky perf tests). Once the nightly fuzz job could finish, three 15-minute runs found 7 out-of-memory crashes (one aborted on every platform) and 11 hangs, 7 of them in our own `cos` parser rather than `hayro`. All are fixed or in review, but expect more: keep the nightly fuzz job green and turn every finding into a synthetic test.--## Where we're lacking and where we're going--The gaps that matter most, in priority order. Agents: prefer these over adding P2/P3 features, and check `parity/acrobat-features.toml` notes for the specifics of each.--1. **Our own renderer (M2).** Replace `hayro` with the `model` crate, our font engine and the DisplayList devices (ADR-0004). It turns the 7 rendering P0 partials into shipped features and removes most vendored patches. The largest single lever.-2. **Hardening.** Keep the nightly fuzz job green; fix every crash and hang with a synthetic regression test; finish lazy loading so large files aren't read whole; set performance budgets (`misc.performance-budgets`).-3. **Measure fidelity against Acrobat.** Build a side-by-side harness (render, text, form behaviour) over synthetic fixtures (`plan/acrobat/`, clean-room rules apply). Until then, parity numbers count features, not quality.-4. **Editing existing content (M7).** Fonts, subsets, reflow and CJK. The most visible gap for Pro users.-5. **Pro workflows.** Signatures with timestamps and LTV (M9), OCR beyond Latin (M10), Office import/export (M10), preflight and PDF/A/X/UA (M11), XFA (M12).-6. **1.0 polish (M14).** Code-signed installers, localization (the catalog system is in place and French, German, Spanish, Japanese, Russian and both Chinese catalogs cover the UI; Czech and Brazilian Portuguese still cover menus only), keyboard-only operation, a full screen-reader audit.-6. **1.0 polish (M14).** Code-signed installers, localization (the catalog system is in place and French, Spanish, Japanese, Russian, Ukrainian and both Chinese catalogs cover the UI; Czech and Brazilian Portuguese still cover menus only), keyboard-only operation, a full screen-reader audit.-6. **1.0 polish (M14).** Code-signed installers, localization (the catalog system is in place and French, Spanish, Italian, Japanese, Russian and both Chinese catalogs cover the UI; Czech and Brazilian Portuguese still cover menus only), keyboard-only operation, a full screen-reader audit.--Decided against for now (owner, 2026-10-05): self-installing updates and an update check at start. Help ▸ Check for updates is manual only.--## Milestones--Hours are for a single agent (low–high). "Done" is the estimated fraction of that milestone's *acceptance criteria* that are met. It is not a count of lines of code.--| M | Milestone | Est. hours | Done | Remaining (h) | Notes |-|---|---|---|---|---|---|-| M0 | Skeleton: workspace, xtask gates, CI | 15–30 | 92% | 2–4 | GitHub workflow, `deny.toml` (licence audit of every dependency), parity checklist (826 features, `xtask parity`) done. Missing: remaining crate stubs, testkit/oracle crates |-| M2 | Model, render, text | 200–350 | 15% | 170–300 | hayro bootstrap renderer (vendored patches); inspector predictor scratch is bounded by available input, and JPX sample rescaling handles 1–32 bits safely. Text extraction reaches word-F1 0.98 against pdftotext. Missing: model crate, fonts, DisplayList, renderer independent of hayro |-| M1 | COS: filters, crypt, parser, xref, writer | 120–200 | 78% | 25–45 | Done:<br>- filters and crypt: every standard-security revision R2–R6 (RC4, AES-128/256), SASLprep, permissions, creating encryption;<br>- cos: parse and repair (including invalid xref object-number ranges), decoded-stream limits including unfiltered data, decrypt on load, re-encrypt on save, incremental and full writing.<br>Corpus: open/edit/save passes on 958 files, and all 7 password-protected files open.<br>Full saves now pack objects into compressed object streams. Fuzzing runs nightly (`xtask fuzz`). Missing: ≥ 250 tests, own image codecs |-| M1 | COS: filters, crypt, parser, xref, writer | 120–200 | 78% | 25–45 | Done:<br>- filters and crypt: every standard-security revision R2–R6 (RC4, AES-128/256), SASLprep, permissions, creating encryption;<br>- cos: parse and repair (including invalid xref object-number ranges), decrypt on load, re-encrypt on save, incremental and full writing.<br>Corpus: open/edit/save passes on 958 files, and all 7 password-protected files open.<br>Full saves now pack objects into compressed object streams. Fuzzing runs nightly (`xtask fuzz`). Missing: ≥ 250 tests, own image codecs |-| M2 | Model, render, text | 200–350 | 15% | 170–300 | hayro bootstrap renderer (vendored patches). Text extraction reaches word-F1 0.98 against pdftotext. Missing: model crate, fonts, DisplayList, renderer independent of hayro. Inspector page-label traversal and output are resource-bounded, with physical-number fallback warnings |-| M3 | Viewer app (native + web) | 80–150 | 88% | 10–19 | Acrobat-style shell, find, select, panels, tiles, web build, UI control channel for agents (opt-in). Missing: 60 fps test on a 500-page document, snapshot tests of every panel Done since: fit visible, document title in the window; Linux middle-button scrolling; shared three-state theme preferences in the toolbar, View menu and control channel. |-| M3 | Viewer app (native + web) | 80–150 | 88% | 10–19 | Acrobat-style shell, find, select, panels, tiles, web build, UI control channel for agents (opt-in). Missing: 60 fps test on a 500-page document, snapshot tests of every panel Done since: fit visible, document title in the window; Linux middle-button scrolling; shared three-state theme preferences in the toolbar, View menu and control channel; late browser startup downloads preserve the current document and Save target (#171). |-| M4 | Engine, history, save, organize | 100–180 | 95% | 9–17 | Done:<br>- command registry (menus, shortcuts and palette all use it);<br>- undo/redo; incremental, atomic and encrypted saves;<br>- autosave and crash recovery;<br>- organize, combine, extract, split and insert-from-file, with identical fonts and images stored once;<br>- CLI `edit/combine/extract/split`.<br>Done since: Combine files in its own tab (sortable, resizable columns; folders; early warnings; unlocking protected files), bookmark editing, page labels (Number pages), CLI `run`, Set Page Boxes, Crop tool, Duplicate pages, Ctrl+A / Cmd+A to select all pages in Organize, Replace pages, bookmarks from tagged headings. Missing: page transitions, recovery on the web |-| M5 | Comments (all annotation types, XFDF) | 120–200 | 88% | 15–25 | Done: notes, highlight/underline/strikeout/squiggly, text boxes, ink, lines, arrows, rectangles, ovals, stamps (dynamic, Sign Here, Standard Business), with appearance streams; replies, status, checkmarks, locking, move/resize/restyle/delete; properties dialog; panel filter and sort; hide all; summaries (comments only); XFDF/FDF import and export; flatten; Fill & Sign; agent tools. Done since: polygons, connected lines, clouds, callouts, inserted text, colour and checkmark filters; image signature pointer previews, selection handles and live image movement/resizing with proportional corners and independent edge handles. Missing: custom stamps, replace-text proposals, summary layouts with the page |-| M6 | Forms + JavaScript | 160–320 | 45% | 95–185 | Done: filling all field types with regenerated appearances; Prepare a form (every field type, multi-select/shared properties, move/resize/delete, Field Properties General/Appearance/Position/Options/Format/Validate/Calculate); Acrobat's AF format/keystroke/validate/calculate functions and simplified field notation run natively in Acrobat's event order; tab order; push-button actions; flatten; agent tools. Form data exchange (FDF, XFDF, XML, CSV, text) done. Done since: JavaScript engine (boa, sandboxed) running custom keystroke/validate/calculate/format and button scripts, document JavaScripts, console. Missing: Actions tab, wider object model (annotations, layers, dialogs), XFA |-| M7 | Content editing (text, images, header/footer, watermark) | 250–500 | 17% | 210–420 | Done: header & footer, watermarks, backgrounds, Bates; added text and images that stay editable (move, resize, format, rotate, flip, crop, replace); links (Link tool, Link Properties, create from URLs, remove all). Missing: editing existing text and images in place (the longest pole), image/PDF watermarks |-| M8 | Security + redaction | 100–180 | 66% | 35–65 | Done: opening protected documents, permissions, Protect Using Password, Remove security; redaction (mark text/areas/pages, Search & Redact with patterns, apply removing glyphs, image pixels, vectors, XObject content, annotations and fields, verification, full rewrite on save); Remove hidden information and Sanitize. Done since: redaction codes (U.S. FOIA and Privacy Act sets as overlay text, in Redaction properties and `redact_mark`). Missing: certificate security, custom redaction code sets and pattern locales, DCT re-encoding |-| M9 | Signatures (PAdES, validation) | 160–280 | 55% | 70–125 | Done: new `sign` crate (DER, X.509, CMS, PKCS #12 on RustCrypto; aws-lc-rs for RSA private keys); PAdES B-B signing (visible, invisible, existing fields, certification with DocMDP); validation with trust store and changes-after-signing classification; self-signed digital IDs; Signatures panel, message bar, sign dialogs; agent tools. Checked with pdfsig and OpenSSL. Done since: macOS Keychain and Windows Current User Personal store signing (software-backed CNG keys), certificate viewer, signed documents protected from rewrites. Missing: timestamps (B-T), LTV (DSS, OCSP, CRL), FieldMDP, smart cards, PKCS #11 |-| M10 | OCR, create, export, print | 200–350 | 33% | 130–235 | Done: create from blank/text/PNG/JPEG/TIFF (multi-page)/GIF/BMP; export PNG/JPEG/TIFF and text; Print (Acrobat's sizing, n-up, booklet, poster, comments & forms, preview, CUPS spooler, print-ready PDF). Done since: embedded/72/custom DPI choices for image imports; export all images; OCR (searchable image for pages, ranges and multiple files); single-sided cut-and-stack imposition with cut marks, through Print and doc_print; Create PDF from multiple files (PDFs, images and text, edited as pages in the grid). Missing: OCR languages beyond Latin, editable-text OCR output, Office export/import, Windows/web printing |-| M11 | Optimize, preflight, PDF/A/X/UA, print production | 200–350 | 18% | 165–290 | Done: new `optimize` crate: Reduce File Size and the PDF Optimizer (images measured where drawn, bicubic downsampling, JPEG/ZIP recompression only when smaller, discard objects and user data, Flate clean-up, resource merging, object streams). Missing: fonts and transparency panels, space audit, preflight, PDF/A/X/UA |-| M12 | Accessibility, compare, measure, search, XFA | 200–380 | 23% | 155–295 | Done: new `a11y` crate with the Accessibility Checker (all 32 rules, report, Fix/Skip/Explain, options dialog and results panel, agent tools). Done since: 2D distance, perimeter and area measurements with persistent viewport calibration, snapping, live information and CSV export. Missing: autotag, Tags/Order/Content panels, Reading Order tool, alt-text workflow, compare, geospatial/3D measurement, search index, XFA |-| M13 | Automation (MCP, Action Wizard, CLI) + AI providers | 60–120 | 45% | 33–66 | Done: MCP resources (document info, text, page images); headless tool table (123 tools incl. signing, optimizing, initial view, links, stamps, data exchange, comment review, forms authoring and scripts, redaction, sanitize, print, add content), opt-in MCP server over stdio, CLI `run`/`tools` (closed stdout pipes exit cleanly), UI control channel with drag. Desktop Action Wizard results receive unused filenames when names repeat or earlier outputs exist. Missing: Action Wizard, AI providers |-| M14 | 1.0 polish: performance, localization, installers | 120–250 | 5% | 115–240 | Done: PhotoCraft's translation system (`i18n/`: TSV catalogs, `tl!`, command-id and plural entries, system-language detection, strict catalog tests); every dialog, panel and notice goes through `tl!`; Japanese, Traditional Chinese, Simplified Chinese, Russian, Bulgarian, German, Spanish, French, Hungarian and Ukrainian catalogs have ≈1,800–2,100 entries each; Simplified Chinese, French, German, Hungarian and Ukrainian coverage is checked against the UI source; Czech and Brazilian Portuguese for menus. French locales (`fr`, `fr_FR`, `fr_CA`) follow the French catalog; Ukrainian locales (`uk`, `uk_UA`) follow the Ukrainian one; its certificate and accessibility wording has a dictionary-checked follow-up. #307 (bounded large-PDF memory): share resource indexes and native parser metadata, inspect structure lazily, bound scan/full-save caches and raster storage, and reuse signature discovery safely. Three Linux trials retain full-save workflow RSS at 1.06 GiB (previously 3.69 GiB); rebased engine navigation uses 821 MiB (previously 997 MiB). With the RSS guard removed, the unmodified baseline was kernel OOM-killed in a 15 GiB container; rebased optimized inspection completed at 497.7 MiB in 1.78 s. Strict Clippy, 1,336 workspace tests and 30 WASM crate checks pass. The larger-host follow-up is closed. File-backed input, global memory budgets and Windows validation remain pending. Missing: more catalogs filled in, installers, performance budgets |-| M14 | 1.0 polish: performance, localization, installers | 120–250 | 5% | 115–240 | Done: PhotoCraft's translation system (`i18n/`: TSV catalogs, `tl!`, command-id and plural entries, system-language detection, strict catalog tests); every dialog, panel and notice goes through `tl!`; Japanese, Traditional Chinese, Simplified Chinese, Russian, Spanish, French and Italian catalogs have ≈1,800 entries each; Simplified Chinese and French coverage is checked against the UI source; Czech and Brazilian Portuguese for menus. French locales (`fr`, `fr_FR`, `fr_CA`) follow the French catalog; Italian locales (`it`, `it_IT`) the Italian one. Arabic (`ar`, every `ar-*` locale) has a full catalog whose labels are reordered for display; the layout itself is still left to right. Missing: a right-to-left layout for Arabic, more catalogs filled in, installers, performance budgets |-| | **Total (original plan sizing)** | **2,085–3,840** | **≈ 35%** | **≈ 1,350–2,500 at the planned rate; ≈ 600–1,100 at the measured rate** | |--**Overall progress: about 30–35% of the effort (51.0% of features shipped).** The viewer and the core are far ahead of the editing features, because the viewer was built first so progress could be seen; rendering itself is still borrowed from `hayro`. See [Honest assessment](#honest-assessment-2026-10-05).--## Critical path--M0 → M1 → M2 → M3 → M4 must happen in order. After M4, M5–M12 can run in parallel across crates. The long poles are M7 (content editing), M9 (signatures) and M12 (XFA).--## Risks most likely to push estimates up--- Fidelity of text editing: fonts, subsets, reflow.-- XFA dynamic layout.-- Real-world signature chains and revocation checks.-- The rendering long tail: Type3 fonts, broken fonts, shadings.-- Correctness of PDF/A and PDF/UA conversion.-- CPU rendering performance on the web.-- Hostile input: every fuzz run so far has found new crashes or hangs.-- Unmeasured fidelity: without an Acrobat comparison harness, quality gaps surface as user reports.--## LogNewest first: the date, what moved, and the new overall estimate.+- **2026-10-10 (M14, #496):** Shortcut displays share a UI formatter across toolbar search, registry menus, command palette, Help and tooltips. Modifier and key names use a dedicated catalog context in every bundled translation; missing entries keep the English key name rather than a command translation. German shows Strg/Umschalt/Entf, macOS retains its symbols, and runtime language changes refresh the display. Regression coverage checks localized layout widths, English/German switching, platform conventions and unchanged command execution. Milestone and effort estimates unchanged.+- **2026-10-10 (M5, shape fill colour, #686):** Rectangles, ovals, polygons and clouds can be filled. The comment quick bar has a Fill colour control for those tools ("No fill" or a swatch; it persists with the other per-tool styles), Comment Properties ▸ Appearance has a Fill colour row (one undo step with the other changes, carried over by Make Current Properties Default), and `comment_edit` takes `fill` (`"none"` removes it). `pdfcraft-annot::set_fill` writes or removes `/IC` and redraws the appearance; lines, ink and locked comments refuse it. Still missing: a custom colour picker (only the comment palette), and a separate fill for line endings.- **2026-10-10 (M10, #645):** Export all images and Save image as keep transparency. A JPEG with a soft mask (the usual cut-out photo) was written as the bare JPEG, and soft masks of another size than the image, JPEG-compressed soft masks, stencil `/Mask` images and colour-key `/Mask` arrays were dropped, so cut-outs came out on solid white or black. These images are now PNG with the mask as alpha (soft masks scaled to the image, `/Matte` un-blended); JPEGs without transparency are still written byte for byte. A negative image size no longer overflows in Save image as. JPX/JBIG2/CCITT masks are still left out. Overall estimate unchanged (about 30–35%).- **2026-10-10 (M12, XFA rows and areas):** Dynamic XFA forms lay out a repeating subform inside a top-to-bottom container in positioned content (a table in an area) with all its instances, drawn and measured, instead of one; and areas no longer appear in data paths (`pdfcraft_xfa::data_path`), since they are not data scopes. Before, a form whose fields sit in an area read none of the values Adobe's viewers saved, wrote what was filled here under a new element named after the area, which Adobe's viewers would most likely not read, and a FormCalc total looping over the table's rows failed on the rows that were missing. Layout, the script tree, reading and writing the data and the engine's value and row operations share the one path rule. Synthetic tests cover the layout, the path rule and the whole round trip (rows, Adobe-written values, a FormCalc total over all rows, the written data, reopening). Still open for such forms: XFA script objects (`<variables><script>`), which aren't supported. Overall estimate unchanged (about 30–35%).diff --git a/crates/ui-egui/src/commands.rs b/crates/ui-egui/src/commands.rsindex 90f8050d8..865d72a10 100644--- a/crates/ui-egui/src/commands.rs+++ b/crates/ui-egui/src/commands.rs@@ -37,9 +37,27 @@ pub(crate) fn mac_shortcuts(ctx: &egui::Context) -> bool {ctx.os() == egui::os::OperatingSystem::Mac}-/// How `s` is written on this platform.+/// How `s` is written on this platform, using the resolved current interface language.pub(crate) fn shortcut_label(ctx: &egui::Context, s: Shortcut) -> String {- s.label(mac_shortcuts(ctx))+ let key = crate::i18n::key_name(s.key);+ if mac_shortcuts(ctx) {+ Shortcut { key, ..s }.label(true)+ } else {+ let mut parts = Vec::new();+ if s.command || s.mac_ctrl {+ parts.push(crate::i18n::key_name("Ctrl"));+ }+ if s.shift {+ parts.push(crate::i18n::key_name("Shift"));+ }+ parts.push(key);+ parts.join("+")+ }+}++/// The command modifier for help text such as “Strg-scroll”; bindings stay in the engine.+pub(crate) fn command_modifier_label(ctx: &egui::Context) -> &'static str {+ if mac_shortcuts(ctx) { Shortcut::command_name(true) } else { crate::i18n::key_name("Ctrl") }}/// How a registered command's shortcut is written on this platform ("" without one).@@ -616,7 +634,6 @@ impl PdfCraftApp {/// Render a top-level menu's registered commands (with live labels, shortcuts and enablement).pub(crate) fn registry_menu(app: &mut PdfCraftApp, ui: &mut egui::Ui, menu: &str) {- let mac = mac_shortcuts(ui.ctx());for spec in commands::menu(menu) {let label = commands::current_label(spec, &app.session, app.active_ids().map(|(_, id)| id));let label = crate::i18n::menu_label(spec.id, &label);@@ -653,7 +670,7 @@ pub(crate) fn registry_menu(app: &mut PdfCraftApp, ui: &mut egui::Ui, menu: &str}continue;}- let shortcut = spec.shortcut.map(|s| s.label(mac)).unwrap_or_default();+ let shortcut = spec.shortcut.map(|s| shortcut_label(ui.ctx(), s)).unwrap_or_default();let enabled = app.command_enabled(spec);let resp = ui.add_enabled(enabled, egui::Button::new(label).shortcut_text(shortcut));if resp.clicked() {@@ -663,3 +680,32 @@ pub(crate) fn registry_menu(app: &mut PdfCraftApp, ui: &mut egui::Ui, menu: &str}let _ = widgets::menu_item;}++#[cfg(test)]+mod tests {+ use super::*;+ use egui::os::OperatingSystem;++ #[test]+ fn localized_shortcut_labels_follow_language_and_platform() {+ let previous = crate::i18n::current();+ let ctx = egui::Context::default();+ for os in [OperatingSystem::Windows, OperatingSystem::Nix] {+ ctx.set_os(os);+ crate::i18n::set_current(crate::i18n::Lang::from_code("de").unwrap());+ assert_eq!(shortcut_label(&ctx, Shortcut::cmd("K")), "Strg+K");+ assert_eq!(shortcut_label(&ctx, Shortcut::cmd_shift("S")), "Strg+Umschalt+S");+ assert_eq!(command_shortcut_label(&ctx, "view.read_mode"), "Strg+H");+ assert_eq!(command_modifier_label(&ctx), "Strg");+ assert_eq!(Shortcut::cmd_shift("S").label(false), "Ctrl+Shift+S", "engine/control labels keep their stable spelling");+ crate::i18n::set_current(crate::i18n::Lang::EN);+ assert_eq!(shortcut_label(&ctx, Shortcut::cmd_shift("S")), "Ctrl+Shift+S");+ }+ ctx.set_os(OperatingSystem::Mac);+ crate::i18n::set_current(crate::i18n::Lang::from_code("de").unwrap());+ assert_eq!(shortcut_label(&ctx, Shortcut::cmd_shift("S")), "⇧⌘S");+ assert_eq!(command_shortcut_label(&ctx, "view.read_mode"), "⌃⌘H");+ assert_eq!(command_modifier_label(&ctx), "⌘");+ crate::i18n::set_current(previous);+ }+}diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rsindex 7766b5cbf..1da3a2157 100644--- a/crates/ui-egui/src/dialogs.rs+++ b/crates/ui-egui/src/dialogs.rs@@ -1036,36 +1036,37 @@ pub fn show(app: &mut PdfCraftApp, ctx: &egui::Context) {ACTUAL_SIZE, COPY, FIND_NEXT, FIND_PREV, FIT_WIDTH, PAGE_LEVEL, PAGE_NEXT, PAGE_PREV, ROTATE_CCW, ROTATE_CW, SELECT_ALL, ZOOM_IN,ZOOM_OUT,};- let mac = crate::commands::mac_shortcuts(ui.ctx());// Registered commands first (always in sync with the real bindings), then the// keys the document view handles itself.let mut rows: Vec<(String, String)> = pdfcraft_engine::commands::COMMANDS.iter()- .filter_map(|c| c.shortcut.map(|k| (k.label(mac), tl!(c.label).trim_end_matches('…').to_string())))+ .filter_map(|c| {+ c.shortcut.map(|k| (crate::commands::shortcut_label(ui.ctx(), k), tl!(c.label).trim_end_matches('…').to_string()))+ }).collect();- let key = |s: pdfcraft_engine::commands::Shortcut| s.label(mac);+ let key = |s: pdfcraft_engine::commands::Shortcut| crate::commands::shortcut_label(ui.ctx(), s);let pair = |a, b| format!("{} / {}", key(a), key(b));// Key names, translated where a catalog has them (not scanned as UI literals).let named = |k: &str| tl!(k).to_string();let scroll = crate::i18n::fmt(tl!("Zoom in / out (also pinch or {key}-scroll)"),- &[("key", pdfcraft_engine::commands::Shortcut::command_name(mac))],+ &[("key", crate::commands::command_modifier_label(ui.ctx()))],);for (k, v) in [(pair(FIND_NEXT, FIND_PREV), tl!("Next / previous match").to_string()),(key(COPY), tl!("Copy selected text").to_string()),(named("Double-click"), tl!("Select a word").to_string()),- (named("Esc"), tl!("Clear selection / close find").to_string()),+ (crate::i18n::key_name("Esc").to_string(), tl!("Clear selection / close find").to_string()),(key(ACTUAL_SIZE), tl!("Actual size").to_string()),(key(PAGE_LEVEL), tl!("Zoom to page level").to_string()),(key(FIT_WIDTH), tl!("Fit to width").to_string()),(pair(ZOOM_IN, ZOOM_OUT), scroll),(pair(ROTATE_CW, ROTATE_CCW), tl!("Rotate view").to_string()),- (named("Home / End"), tl!("First / last page").to_string()),+ (format!("{} / {}", crate::i18n::key_name("Home"), crate::i18n::key_name("End")), tl!("First / last page").to_string()),(format!("← / →, {}", pair(PAGE_PREV, PAGE_NEXT)), tl!("Previous / next page").to_string()),(named("V"), tl!("Select (V)").to_string()),(named("H / Space (hold)"), tl!("Hand (H)").to_string()),- (named("Delete"), tl!("Delete selected pages (Organize)").to_string()),+ (crate::i18n::key_name("Delete").to_string(), tl!("Delete selected pages (Organize)").to_string()),(key(SELECT_ALL), tl!("Select all pages (Organize)").to_string()),] {rows.push((k, v));diff --git a/crates/ui-egui/src/i18n/ar.tsv b/crates/ui-egui/src/i18n/ar.tsvindex 0e85571ba..bcc1a58b8 100644--- a/crates/ui-egui/src/i18n/ar.tsv+++ b/crates/ui-egui/src/i18n/ar.tsv@@ -2168,3 +2168,12 @@ certificate Subject صاحب الشهادةFill colour لون التعبئةNo fill بلا تعبئةFill colour: none لون التعبئة: بلا++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space مسافةdiff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsvindex 77454e13e..d0a3cde91 100644--- a/crates/ui-egui/src/i18n/bg.tsv+++ b/crates/ui-egui/src/i18n/bg.tsv@@ -2108,3 +2108,12 @@ action wizard Start СтартFill colour Цвят на запълванеNo fill Без запълванеFill colour: none Цвят на запълване: няма++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Интервалdiff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex a53a439be..2e8d50875 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -147,3 +147,12 @@Import list… Importovat seznam…{n} word(s) or phrase(s) Slova nebo fráze: {n}{name} is too large for a word list (at most 1 MB). {name} je pro seznam slov příliš velký (nejvýše 1 MB).++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Mezerníkdiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex fb5205be0..07796fcee 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -2146,3 +2146,12 @@ action wizard Start StartenFill colour FüllfarbeNo fill Keine FüllungFill colour: none Füllfarbe: keine++# Keyboard key names, distinct from command labels.+key Ctrl Strg+key Shift Umschalt+key Delete Entf+key Esc Esc+key Home Pos1+key End Ende+key Space Leertastediff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 6867503a0..8e46cf81c 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -2062,3 +2062,12 @@Fill colour Color de rellenoNo fill Sin rellenoFill colour: none Color de relleno: ninguno++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Mayús+key Delete Supr+key Esc Esc+key Home Inicio+key End Fin+key Space Espaciodiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex e931cb518..f857b9119 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -2146,3 +2146,12 @@ signature pad Type SaisirFill colour Couleur de fondNo fill Sans fondFill colour: none Couleur de fond : aucune++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Maj+key Delete Suppr+key Esc Échap+key Home Début+key End Fin+key Space Espacediff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 2965a4056..13f85c028 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -2144,3 +2144,12 @@ action wizard Start IndításFill colour KitöltőszínNo fill Nincs kitöltésFill colour: none Kitöltőszín: nincs++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Szóközdiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 21bd12f0c..ead6977a3 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -2155,3 +2155,12 @@ signature pad Type DigitaFill colour Colore riempimentoNo fill Nessun riempimentoFill colour: none Colore riempimento: nessuno++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Maiusc+key Delete Canc+key Esc Esc+key Home Home+key End Fine+key Space Spaziodiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex 3def1d951..4845803e0 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -2146,3 +2146,12 @@ signature pad Type 入力Fill colour 塗りつぶし色No fill 塗りつぶしなしFill colour: none 塗りつぶし色: なし++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space スペースdiff --git a/crates/ui-egui/src/i18n/mod.rs b/crates/ui-egui/src/i18n/mod.rsindex e91926185..cc13a5129 100644--- a/crates/ui-egui/src/i18n/mod.rs+++ b/crates/ui-egui/src/i18n/mod.rs@@ -383,6 +383,12 @@ pub fn t(s: &str) -> &str {tr(current(), s)}+/// The name of a keyboard key, distinct from a command such as Delete. Missing key-name+/// translations use the English key name, never a plain command translation.+pub fn key_name(s: &str) -> &str {+ current().catalog().contextual("key", s).unwrap_or(s)+}+/// Translate an English UI string; unknown strings come back unchanged.pub fn tr(lang: Lang, s: &str) -> &str {lang.catalog().plain(s).unwrap_or(s)@@ -484,6 +490,26 @@ mod tests {use super::*;const JA: fn() -> Lang = || Lang::from_code("ja").expect("ja registered");+ // These physical key-cap names remain English in several keyboard layouts. Only their+ // dedicated key context may use them unchanged; ordinary command labels still translate.+ const KEY_CAP_NAMES: &[&str] = &["Ctrl", "Shift", "Delete", "Esc", "Home", "End"];++ #[test]+ fn keyboard_key_names_have_a_separate_context_and_english_fallback() {+ for lang in Lang::all().filter(|l| *l != Lang::EN) {+ for key in ["Ctrl", "Shift", "Delete", "Esc", "Home", "End", "Space"] {+ assert!(lang.catalog().contextual("key", key).is_some(), "{}: {key}", lang.code());+ }+ }+ let previous = current();+ set_current(Lang::from_code("de").unwrap());+ assert_eq!(key_name("Delete"), "Entf");+ assert_eq!(t("Delete"), "Löschen");+ assert_eq!(key_name("Open"), "Open", "a missing key name must not borrow a command translation");+ set_current(Lang::EN);+ assert_eq!(key_name("Delete"), "Delete");+ set_current(previous);+ }#[test]fn tags_map_to_languages() {@@ -1165,7 +1191,8 @@ mod tests {const KEEP_AS_IS: &[&str] = &["OK"];let (entries, _) = parse_entries(cs.0.source, cs.0.plural_forms());for e in &entries {- assert!(e.source != e.translation || KEEP_AS_IS.contains(&e.source.as_str()), "{:?} is untranslated", e.source);+ let key_cap = e.context == "key" && KEY_CAP_NAMES.contains(&e.source.as_str());+ assert!(e.source != e.translation || KEEP_AS_IS.contains(&e.source.as_str()) || key_cap, "{:?} is untranslated", e.source);assert!(!e.translation.contains("..."), "use … rather than three dots: {:?}", e.translation);assert_eq!(e.translation.trim(), e.translation, "stray whitespace: {:?}", e.translation);}@@ -1990,7 +2017,13 @@ mod tests {"+Bin","−Bin",];- let unchanged: Vec<_> = entries.iter().filter(|e| e.source == e.translation && !keep.contains(&e.source.as_str())).collect();+ let unchanged: Vec<_> = entries+ .iter()+ .filter(|e| {+ let key_cap = e.context == "key" && KEY_CAP_NAMES.contains(&e.source.as_str());+ e.source == e.translation && !keep.contains(&e.source.as_str()) && !key_cap+ })+ .collect();assert!(unchanged.is_empty(), "untranslated Ukrainian catalog entries: {unchanged:#?}");}diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex bdc1cc0cd..ed26ca06a 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -2147,3 +2147,12 @@ comment menu Edit EditarFill colour Cor de preenchimentoNo fill Sem preenchimentoFill colour: none Cor de preenchimento: nenhuma++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Espaçodiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex cd04f07f3..e86e9aaf5 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -2059,3 +2059,12 @@Fill colour Цвет заливкиNo fill Без заливкиFill colour: none Цвет заливки: нет++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Пробелdiff --git a/crates/ui-egui/src/i18n/te.tsv b/crates/ui-egui/src/i18n/te.tsvindex 3a2066aaa..e7e114beb 100644--- a/crates/ui-egui/src/i18n/te.tsv+++ b/crates/ui-egui/src/i18n/te.tsv@@ -2074,3 +2074,12 @@ action wizard Start ప్రారంభించుThe field {name} no longer exists. {name} ఫీల్డ్ ఇకపై లేదు.A selected field has no widget on any page, so the fields can't be edited together. ఎంచుకున్న ఒక ఫీల్డ్కు ఏ పేజీలోనూ విడ్జెట్ లేదు, కాబట్టి ఫీల్డ్లను కలిపి సవరించలేము.({n} at {dpi} dpi, the largest size they can be drawn at) ({n} {dpi} dpi వద్ద, అవి గీయగల అతిపెద్ద పరిమాణం)++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space స్పేస్diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex a35e000de..b294ba470 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -2169,3 +2169,12 @@ certificate Subject Власник сертифікатаFill colour Колір заливкиNo fill Без заливкиFill colour: none Колір заливки: немає++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space Пробілdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 57a690fdf..a7b8f8391 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2110,3 +2110,12 @@Fill colour 填充颜色No fill 无填充Fill colour: none 填充颜色:无++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space 空格diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex db96639cc..f28058ecc 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2032,3 +2032,12 @@Fill colour 填充顏色No fill 無填充Fill colour: none 填充顏色:無++# Keyboard key names, distinct from command labels.+key Ctrl Ctrl+key Shift Shift+key Delete Delete+key Esc Esc+key Home Home+key End End+key Space 空格diff --git a/crates/ui-egui/src/palette.rs b/crates/ui-egui/src/palette.rsindex 4ce90a9e7..f11e1c157 100644--- a/crates/ui-egui/src/palette.rs+++ b/crates/ui-egui/src/palette.rs@@ -50,7 +50,6 @@ pub fn show(app: &mut PdfCraftApp, ctx: &egui::Context) {}let q = app.palette_query.trim().to_lowercase();let mut hits: Vec<(usize, Hit)> = Vec::new();- let mac = cfg!(target_os = "macos") || cfg!(target_arch = "wasm32");let active = app.active_ids().map(|(_, id)| id);for spec in pdfcraft_engine::commands::COMMANDS {let label = pdfcraft_engine::commands::current_label(spec, &app.session, active);@@ -61,7 +60,10 @@ pub fn show(app: &mut PdfCraftApp, ctx: &egui::Context) {Hit {group: None,label: translated,- detail: spec.shortcut.map(|k| k.label(mac)).unwrap_or_else(|| tl!(spec.menu.unwrap_or("Command")).to_string()),+ detail: spec+ .shortcut+ .map(|k| crate::commands::shortcut_label(ctx, k))+ .unwrap_or_else(|| tl!(spec.menu.unwrap_or("Command")).to_string()),icon: spec.icon,command: Some(spec.id),ready: app.command_enabled(spec),diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rsindex 9e45c9275..21448bdc8 100644--- a/crates/ui-egui/src/widgets.rs+++ b/crates/ui-egui/src/widgets.rs@@ -63,7 +63,7 @@ pub fn search_box(ui: &mut egui::Ui, placeholder: &str, width: f32) -> Responselet fill = if resp.hovered() { t.hover } else { t.field };ui.painter().rect(rect, CornerRadius::same(16), fill, Stroke::new(1.0, t.border), egui::StrokeKind::Inside);icons::paint(ui, Rect::from_min_size(rect.min + vec2(10.0, 8.0), vec2(16.0, 16.0)), "search", 15.0, t.text_muted);- let shortcut = ui.ctx().format_shortcut(&egui::KeyboardShortcut::new(egui::Modifiers::COMMAND, egui::Key::K));+ let shortcut = crate::commands::command_shortcut_label(ui.ctx(), "view.palette");let shortcut = ui.painter().layout_no_wrap(shortcut, theme::regular(11.5), t.text_faint);let shortcut_pos = rect.right_center() - vec2(12.0 + shortcut.size().x, shortcut.size().y * 0.5);// Reserve the measured shortcut width in every language; long translations are elided@@ -312,25 +312,32 @@ mod tests {#[test]fn search_placeholder_never_overlaps_the_shortcut() {- for width in [260.0, 160.0, 90.0] {- let ctx = egui::Context::default();- ctx.set_fonts(theme::font_definitions());- let placeholder = "Werkzeuge und Befehle suchen";- let output = ctx.run_ui(egui::RawInput::default(), |ui| {- search_box(ui, placeholder, width);- });- let text_shapes: Vec<_> = output- .shapes- .iter()- .filter_map(|shape| if let egui::Shape::Text(text) = &shape.shape { Some((shape.clip_rect, text)) } else { None })- .collect();- let (clip, hint) = text_shapes.iter().find(|(_, text)| text.galley.job.text == placeholder).unwrap();- let (_, shortcut) = text_shapes.iter().find(|(_, text)| text.galley.job.text.contains('K')).unwrap();- assert!(clip.right() <= shortcut.pos.x - 9.0, "hint must leave a gap before the shortcut at width {width}");- assert!(hint.galley.elided, "the long original German hint must be elided at width {width}");- assert_eq!(hint.galley.rows.len(), 1);- output.drop_without_applying_deltas();+ let previous = crate::i18n::current();+ for (code, expected) in [("en", "Ctrl+K"), ("de", "Strg+K")] {+ crate::i18n::set_current(crate::i18n::Lang::from_code(code).unwrap());+ for width in [260.0, 160.0, 90.0] {+ let ctx = egui::Context::default();+ ctx.set_os(egui::os::OperatingSystem::Nix);+ ctx.set_fonts(theme::font_definitions());+ let placeholder = "Werkzeuge und Befehle suchen";+ let output = ctx.run_ui(egui::RawInput::default(), |ui| {+ search_box(ui, placeholder, width);+ });+ let text_shapes: Vec<_> = output+ .shapes+ .iter()+ .filter_map(|shape| if let egui::Shape::Text(text) = &shape.shape { Some((shape.clip_rect, text)) } else { None })+ .collect();+ let (clip, hint) = text_shapes.iter().find(|(_, text)| text.galley.job.text == placeholder).unwrap();+ let (_, shortcut) = text_shapes.iter().find(|(_, text)| text.galley.job.text.contains('K')).unwrap();+ assert_eq!(shortcut.galley.job.text, expected);+ assert!(clip.right() <= shortcut.pos.x - 9.0, "hint must leave a gap before the shortcut at width {width}");+ assert!(hint.galley.elided, "the long original German hint must be elided at width {width}");+ assert_eq!(hint.galley.rows.len(), 1);+ output.drop_without_applying_deltas();+ }}+ crate::i18n::set_current(previous);}fn toast_rect(app: &mut PdfCraftApp, ctx: &egui::Context, width: f32, now: &mut f64) -> Rect {diff --git a/crates/ui-egui/tests/commands.rs b/crates/ui-egui/tests/commands.rsindex d7677e315..f12a32203 100644--- a/crates/ui-egui/tests/commands.rs+++ b/crates/ui-egui/tests/commands.rs@@ -311,6 +311,38 @@ fn the_shortcuts_dialog_lists_the_real_bindings() {h.get_by_label("Zoom in / out (also pinch or ⌘-scroll)");}+#[test]+fn localized_shortcuts_update_immediately_and_keep_command_ids_and_key_bindings() {+ let mut h = harness();+ h.ctx.set_os(OperatingSystem::Windows);+ h.state_mut().set_option("language", "de").unwrap();+ h.state_mut().execute("help.shortcuts");+ h.run_steps(3);+ h.get_by_label("Strg+Umschalt+S");+ h.state_mut().set_option("language", "en").unwrap();+ h.run_steps(2);+ h.get_by_label("Ctrl+Shift+S");+ h.state_mut().set_option("language", "de").unwrap();+ h.ctx.set_os(OperatingSystem::Mac);+ h.run_steps(2);+ h.get_by_label("⇧⌘S");+ h.key_press(Key::Escape);+ h.run_steps(2);+ h.ctx.set_os(OperatingSystem::Windows);+ h.key_press_modifiers(Modifiers::CTRL | Modifiers::COMMAND, Key::K);+ h.run_steps(3);+ assert!(h.state().palette_open, "the localized Strg+K display still binds Ctrl+K");+ // Searching by the stable command id still works in a translated interface.+ h.state_mut().set_option("palette", "view.read_mode").unwrap();+ h.run_steps(2);+ h.key_press(Key::Enter);+ h.run_steps(3);+ assert_eq!(h.state().mode, pdfcraft_ui_egui::Mode::Read);+ assert!(!h.state().palette_open);+ let doc = h.state().session.get(h.state().views[0].id).unwrap();+ assert!(!doc.dirty);+}+/// Menu ▸ View open, with egui told the app runs on `os`.fn view_menu(os: OperatingSystem) -> Harness<'static, PdfCraftApp> {let mut h = harness();diff --git a/docs/localization.md b/docs/localization.mdindex cdf9163b8..31fec64c1 100644--- a/docs/localization.md+++ b/docs/localization.md@@ -2,6 +2,8 @@Choose **Menu > Edit > Preferences…** (Command-comma on macOS, Ctrl-comma elsewhere) **> Interface language** and select **Auto**, **English**, **日本語**, **简体中文**, **繁體中文**, **Русский**, **Български**, **Čeština**, **Português (Brasil)**, **Deutsch**, **Español**, **Français**, **తెలుగు**, **Magyar**, **Українська**, **Italiano** or **العربية**. The change applies immediately and persists between launches. Command ids, document contents and file names are unchanged.+Displayed keyboard shortcuts use the same active interface language. For example, German shows `Strg+K` and `Strg+Umschalt+S` in the toolbar, menus, command palette, tooltips and Keyboard shortcuts dialog; macOS keeps its modifier symbols (`⌘`, `⇧`, `⌃`). Key names have their own `key` catalog context, so the Delete key can read `Entf` while the command remains `Löschen`. A missing key-name entry falls back to the English key name. Actual bindings and machine-facing command ids remain stable.+**Auto** (the default) follows the system language: `LC_ALL`, `LC_MESSAGES` or `LANG`, then the preferred-languages list on macOS. Any Portuguese locale (`pt_BR`, `pt_PT`) uses the Brazilian catalog, any French locale (`fr`, `fr_FR`, `fr_CA`, `fr_BE`) the French one, any German locale (`de`, `de_DE`, `de_AT`, `de_CH`) the German one, and Chinese locales for Taiwan, Hong Kong and Macau (`zh_TW`, `zh_HK`, `zh_MO`, `zh-Hant`) the Traditional Chinese one; other Chinese locales (`zh`, `zh_CN`, `zh_SG`, `zh-Hans`) the Simplified Chinese one. Telugu locales (`te`, `te_IN`) use the Telugu catalog, Bulgarian locales (`bg`, `bg_BG`) the Bulgarian one, and Hungarian locales (`hu`, `hu_HU`) the Hungarian one, and Ukrainian locales (`uk`, `uk_UA`) the Ukrainian one, and Italian locales (`it`, `it_IT`, `it_CH`) the Italian one, and Arabic locales (`ar`, `ar_MA`, `ar_EG`, `ar_SA`, …) the Arabic one. A system language without a catalog shows English. On Windows, **Auto** uses the Windows display languages, in preference order, when no supported locale is selected by those environment variables. Neutral `C`/`POSIX` locale values (including `C.UTF-8`) inherited from a launcher do not override the Windows display language; explicitly named supported locales such as `fr_FR.UTF-8` still do. The query asks Windows directly (`GetUserPreferredUILanguages`, through the `sys-locale` crate) without starting a process, and is cached for the process. If detection fails or the display language has no catalog, PdfCraft shows English.The control channel exposes the setting through `ui.set`:diff --git a/docs/roadmap.md b/docs/roadmap.mdindex e74bfe1b4..216270a7a 100644--- a/docs/roadmap.md+++ b/docs/roadmap.md@@ -1,6 +1,6 @@# PdfCraft roadmap: milestones and what's next-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** minor (alpha gate added; convert-and-share re-judged with the cross-app rule → alpha) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** minor (localized shortcut labels, #496; alpha gate added; convert-and-share re-judged with the cross-app rule → alpha) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)Forward-looking: the milestones, the current focus and what comes next. The parity numbers behindit are in [target-app-parity.md](target-app-parity.md), the ranked work list in [gaps.md](gaps.md),@@ -78,7 +78,7 @@ total matches the parity estimate.| M11 | Optimize, preflight, PDF/A/X/UA, print production | 200–350 | 18% | 80–140 | Done: new `optimize` crate: Reduce File Size and the PDF Optimizer (images measured where drawn, bicubic downsampling, JPEG/ZIP recompression only when smaller, discard objects and user data, Flate clean-up, resource merging, object streams). Missing: fonts and transparency panels, space audit, preflight, PDF/A/X/UA || M12 | Accessibility, compare, measure, search, XFA | 200–380 | 30% | 90–160 | Done: new `a11y` crate with the Accessibility Checker (all 32 rules, report, Fix/Skip/Explain, options dialog and results panel, agent tools).<br>Done since: 2D distance, perimeter and area measurements with persistent viewport calibration, snapping, live information and CSV export. Missing: autotag, Tags/Order/Content panels, Reading Order tool, alt-text workflow, compare, geospatial/3D measurement, search index, XFA || M13 | Automation (MCP, Action Wizard, CLI) + AI providers | 60–120 | 45% | 25–45 | Done: MCP resources (document info, text, page images); headless tool table (123 tools incl. signing, optimizing, initial view, links, stamps, data exchange, comment review, forms authoring and scripts, redaction, sanitize, print, add content), opt-in MCP server over stdio, CLI `run`/`tools` (closed stdout pipes exit cleanly), UI control channel with drag. Missing: Action Wizard, AI providers |-| M14 | 1.0 polish: performance, localization, installers | 120–250 | 15% | 80–150 | Done: PhotoCraft's translation system (`i18n/`: TSV catalogs, `tl!`, command-id and plural entries, system-language detection, strict catalog tests); every dialog, panel and notice goes through `tl!`. Catalogs of ≈ 2,000–2,140 entries for Japanese, Simplified and Traditional Chinese, Russian, Bulgarian, German, Spanish, French, Telugu, Hungarian, Ukrainian, Italian, Brazilian Portuguese and Arabic (logical-order catalog put into display order; layout not yet mirrored); Czech covers the menus. Signed and notarized macOS builds, signed Windows installers (x64, x86, ARM64), AppImage, deb, rpm, Flatpak and FreeBSD packages. #307 (bounded large-PDF memory): shared resource indexes and parser metadata, lazy inspection, bounded caches; a 9,156-page file inspects in ≈ 1.8 s at ≈ 500 MiB instead of exceeding 10 GiB. Missing: a right-to-left layout, a Chinese UI face in releases, Hindi/Indonesian/Korean/Vietnamese, file-backed input and global memory budgets, performance budgets, keyboard-only operation |+| M14 | 1.0 polish: performance, localization, installers | 120–250 | 15% | 80–150 | Done: PhotoCraft's translation system (`i18n/`: TSV catalogs, `tl!`, command-id and plural entries, system-language detection, strict catalog tests); every dialog, panel and notice goes through `tl!`. Catalogs of ≈ 2,000–2,140 entries for Japanese, Simplified and Traditional Chinese, Russian, Bulgarian, German, Spanish, French, Telugu, Hungarian, Ukrainian, Italian, Brazilian Portuguese and Arabic (logical-order catalog put into display order; layout not yet mirrored); Czech covers the menus. Signed and notarized macOS builds, signed Windows installers (x64, x86, ARM64), AppImage, deb, rpm, Flatpak and FreeBSD packages. #307 (bounded large-PDF memory): shared resource indexes and parser metadata, lazy inspection, bounded caches; a 9,156-page file inspects in ≈ 1.8 s at ≈ 500 MiB instead of exceeding 10 GiB. Shortcut display uses localized modifier/key names across menus, toolbar, palette, Help and tooltips (#496). Missing: a right-to-left layout, a Chinese UI face in releases, Hindi/Indonesian/Korean/Vietnamese, file-backed input and global memory budgets, performance budgets, keyboard-only operation || | **Total** | **2,085–3,840** | **≈ 49% ready** | **≈ 770–1,400** | Area view of the same work: [target-app-parity.md](target-app-parity.md#by-feature-area) |## Upcoming milestones, ranked@@ -121,6 +121,7 @@ M2 (renderer), M7 (content editing), M10 (OCR and Office), M11 (Preflight and st| Date | Change | Summary ||---|---|---|+| 2026-10-10 | minor | M14: localized shortcut key names (#496), including runtime switching and native layout checks. Estimates unchanged. || 2026-10-10 | minor | Re-judged convert and share with the cross-app gate rule (only a workflow that can't be completed at all blocks): partial, not blocking → stage alpha || 2026-10-10 | minor | Added the alpha gate (six core workflows; convert and share fails → pre-alpha, 40–70 h to alpha) and rank 0 in the upcoming milestones || 2026-10-10 | major | Created from ROADMAP.md §Milestones, §Critical path, §Risks and §Where we're lacking. Merged the duplicated M1, M2, M3 and M14 rows, re-measured Done and Remaining, added Current focus and the ranked upcoming milestones |diff --git a/parity/acrobat-features.toml b/parity/acrobat-features.tomlindex 40f9c89aa..4bec08679 100644--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@ -9830,8 +9830,8 @@ milestone = "M14"status = "partial"commands = ["app.preferences"]tools = []-evidence = ["crates/ui-egui/src/i18n/mod.rs::windows_display_language_resolves_chinese_scripts", "crates/ui-egui/src/i18n/mod.rs::neutral_locale_does_not_override_display_language", "crates/ui-egui/src/i18n/mod.rs::windows_display_language_query_returns_a_locale_tag", "crates/ui-egui/src/i18n/mod.rs::language_persists_and_invalid_input_keeps_current_language", "crates/ui-egui/src/i18n/mod.rs::bundled_catalogs_are_consistent", "crates/ui-egui/src/i18n/mod.rs::arabic_is_registered_and_persists", "crates/ui-egui/src/i18n/mod.rs::arabic_lookups_are_in_display_order", "crates/ui-egui/src/i18n/mod.rs::arabic_plurals_follow_the_six_cldr_forms", "crates/ui-egui/src/i18n/mod.rs::arabic_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::arabic_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::arabic_labels_have_glyphs", "crates/ui-egui/src/bidi.rs::rtl_labels_keep_placeholders_whole", "crates/ui-egui/src/i18n/mod.rs::japanese_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_history_and_diagnostics_preserve_user_values", "crates/ui-egui/tests/control.rs::simplified_chinese_signature_prompts_and_errors_keep_document_state", "crates/ui-egui/tests/control.rs::language_switch_preserves_document_and_command_ids", "crates/ui-egui/tests/control.rs::japanese_controls_and_search_keep_command_ids", "crates/ui-egui/tests/control.rs::japanese_dialogs_errors_and_custom_action_names", "crates/ui-egui/src/i18n/mod.rs::french_is_registered", "crates/ui-egui/src/i18n/mod.rs::french_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::french_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::french_history_and_diagnostics_preserve_user_values", "crates/ui-egui/src/i18n/mod.rs::german_certificate_subject_has_a_distinct_context", "crates/ui-egui/src/widgets.rs::search_placeholder_never_overlaps_the_shortcut", "crates/ui-egui/src/home.rs::translated_card_description_leaves_room_for_the_action", "crates/ui-egui/tests/control.rs::german_preferences_and_search_keep_command_ids", "crates/ui-egui/src/i18n/mod.rs::telugu_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::telugu_labels_have_glyphs", "crates/ui-egui/src/i18n/mod.rs::hungarian_is_registered", "crates/ui-egui/src/i18n/mod.rs::hungarian_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::hungarian_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::hungarian_history_and_diagnostics_preserve_user_values", "crates/ui-egui/src/i18n/mod.rs::ukrainian_is_registered_and_persists", "crates/ui-egui/src/i18n/mod.rs::ukrainian_integer_plurals_cover_teens_and_large_counts", "crates/ui-egui/src/i18n/mod.rs::ukrainian_calendar_uses_month_case_for_dates", "crates/ui-egui/src/i18n/mod.rs::ukrainian_catalog_does_not_leave_english_ui_text", "crates/ui-egui/src/i18n/mod.rs::ukrainian_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::ukrainian_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::ukrainian_history_and_diagnostics_preserve_user_values"]-notes = "Preferences switches Auto (system language)/English/Japanese/Simplified Chinese/Traditional Chinese/Czech/Brazilian Portuguese/German/Spanish/French/Telugu/Hungarian/Ukrainian/Italian/Arabic and persists; ui.set language auto|en|ja|zh-hans|zh-hant|cs|pt-br|de|es|fr|te|hu|uk|it|ar and ui.state expose it. TSV catalogs per language (same system as PhotoCraft); every dialog, panel and notice goes through tl!. Japanese, Traditional Chinese, Simplified Chinese, German, Spanish, French and Hungarian cover commands, dialogs, panels, shortcuts and history labels; Czech and Brazilian Portuguese the menus. French locales (fr, fr_FR, fr_CA, fr_BE) select the French catalog, German locales (de, de_DE, de_AT, de_CH) the German one, Hungarian locales (hu, hu_HU) the Hungarian one. German search hints reserve shortcut space, Home cards bound translated text, certificate Subject has its own context, and inserted tool names keep their capitalization. Engine/OS error details stay untranslated. Auto detects the Windows display language after explicitly named supported locale overrides; neutral C/POSIX launcher locales are skipped on Windows, with Chinese script/region mapping and English fallback. Arabic (ar and every ar-* locale) covers commands, dialogs and panels with the six CLDR plural forms; its labels are put into display order when the catalog loads, because egui joins Arabic letters but lays words out left to right. Missing: a right-to-left layout (Arabic labels sit in the left-to-right layout, a wrapped Arabic paragraph breaks at the wrong end, and text typed into a field is not reordered), Czech and Brazilian Portuguese dialogs, Chinese and Telugu font delivery in releases (the pinned craft-fonts revision has an Arabic face; its Noto Sans CJK SC is never embedded, AGENTS.md §1.1), a full localization audit."+evidence = ["crates/ui-egui/src/commands.rs::localized_shortcut_labels_follow_language_and_platform", "crates/ui-egui/src/i18n/mod.rs::keyboard_key_names_have_a_separate_context_and_english_fallback", "crates/ui-egui/tests/commands.rs::localized_shortcuts_update_immediately_and_keep_command_ids_and_key_bindings", "crates/ui-egui/src/i18n/mod.rs::windows_display_language_resolves_chinese_scripts", "crates/ui-egui/src/i18n/mod.rs::neutral_locale_does_not_override_display_language", "crates/ui-egui/src/i18n/mod.rs::windows_display_language_query_returns_a_locale_tag", "crates/ui-egui/src/i18n/mod.rs::language_persists_and_invalid_input_keeps_current_language", "crates/ui-egui/src/i18n/mod.rs::bundled_catalogs_are_consistent", "crates/ui-egui/src/i18n/mod.rs::arabic_is_registered_and_persists", "crates/ui-egui/src/i18n/mod.rs::arabic_lookups_are_in_display_order", "crates/ui-egui/src/i18n/mod.rs::arabic_plurals_follow_the_six_cldr_forms", "crates/ui-egui/src/i18n/mod.rs::arabic_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::arabic_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::arabic_labels_have_glyphs", "crates/ui-egui/src/bidi.rs::rtl_labels_keep_placeholders_whole", "crates/ui-egui/src/i18n/mod.rs::japanese_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::simplified_chinese_history_and_diagnostics_preserve_user_values", "crates/ui-egui/tests/control.rs::simplified_chinese_signature_prompts_and_errors_keep_document_state", "crates/ui-egui/tests/control.rs::language_switch_preserves_document_and_command_ids", "crates/ui-egui/tests/control.rs::japanese_controls_and_search_keep_command_ids", "crates/ui-egui/tests/control.rs::japanese_dialogs_errors_and_custom_action_names", "crates/ui-egui/src/i18n/mod.rs::french_is_registered", "crates/ui-egui/src/i18n/mod.rs::french_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::french_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::french_history_and_diagnostics_preserve_user_values", "crates/ui-egui/src/i18n/mod.rs::german_certificate_subject_has_a_distinct_context", "crates/ui-egui/src/widgets.rs::search_placeholder_never_overlaps_the_shortcut", "crates/ui-egui/src/home.rs::translated_card_description_leaves_room_for_the_action", "crates/ui-egui/tests/control.rs::german_preferences_and_search_keep_command_ids", "crates/ui-egui/src/i18n/mod.rs::telugu_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::telugu_labels_have_glyphs", "crates/ui-egui/src/i18n/mod.rs::hungarian_is_registered", "crates/ui-egui/src/i18n/mod.rs::hungarian_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::hungarian_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::hungarian_history_and_diagnostics_preserve_user_values", "crates/ui-egui/src/i18n/mod.rs::ukrainian_is_registered_and_persists", "crates/ui-egui/src/i18n/mod.rs::ukrainian_integer_plurals_cover_teens_and_large_counts", "crates/ui-egui/src/i18n/mod.rs::ukrainian_calendar_uses_month_case_for_dates", "crates/ui-egui/src/i18n/mod.rs::ukrainian_catalog_does_not_leave_english_ui_text", "crates/ui-egui/src/i18n/mod.rs::ukrainian_covers_commands_and_catalogue", "crates/ui-egui/src/i18n/mod.rs::ukrainian_covers_ui_literals", "crates/ui-egui/src/i18n/mod.rs::ukrainian_history_and_diagnostics_preserve_user_values"]+notes = "Shortcut modifiers and key names use a dedicated catalog context across toolbar, menus, palette, Help and tooltips, with English fallback and macOS symbols preserved. Preferences switches Auto (system language)/English/Japanese/Simplified Chinese/Traditional Chinese/Czech/Brazilian Portuguese/German/Spanish/French/Telugu/Hungarian/Ukrainian/Italian/Arabic and persists; ui.set language auto|en|ja|zh-hans|zh-hant|cs|pt-br|de|es|fr|te|hu|uk|it|ar and ui.state expose it. TSV catalogs per language (same system as PhotoCraft); every dialog, panel and notice goes through tl!. Japanese, Traditional Chinese, Simplified Chinese, German, Spanish, French and Hungarian cover commands, dialogs, panels, shortcuts and history labels; Czech and Brazilian Portuguese the menus. French locales (fr, fr_FR, fr_CA, fr_BE) select the French catalog, German locales (de, de_DE, de_AT, de_CH) the German one, Hungarian locales (hu, hu_HU) the Hungarian one. German search hints reserve shortcut space, Home cards bound translated text, certificate Subject has its own context, and inserted tool names keep their capitalization. Engine/OS error details stay untranslated. Auto detects the Windows display language after explicitly named supported locale overrides; neutral C/POSIX launcher locales are skipped on Windows, with Chinese script/region mapping and English fallback. Arabic (ar and every ar-* locale) covers commands, dialogs and panels with the six CLDR plural forms; its labels are put into display order when the catalog loads, because egui joins Arabic letters but lays words out left to right. Missing: a right-to-left layout (Arabic labels sit in the left-to-right layout, a wrapped Arabic paragraph breaks at the wrong end, and text typed into a field is not reordered), Czech and Brazilian Portuguese dialogs, Chinese and Telugu font delivery in releases (the pinned craft-fonts revision has an Arabic face; its Noto Sans CJK SC is never embedded, AGENTS.md §1.1), a full localization audit."[[feature]]id = "misc.prefs-reading"