PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Merge r2 track t17: choice-pass takes
aionggad0476890632
diff --cc ATTRIBUTION.tomlindex c1f67bfd9,711bebe3e..2ad3c5dfd--- a/ATTRIBUTION.toml+++ b/ATTRIBUTION.toml@@@ -69,7 -69,7 +69,7 @@@ sha256 = "60a49a50f21d711deb636a8dd415cpath = "crates/ui-egui/src/i18n/es.tsv"title = "Spanish interface translation catalog"author = "PdfCraft contributors"- source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; the 2026-10-20 coverage additions are AI-assisted and not separately native-reviewed"-source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; 2026-10-18 page-gap labels are contributor-original AI-assisted translations from English, not separately native-reviewed"++source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; the 2026-10-20 coverage additions are AI-assisted and not separately native-reviewed; 2026-10-18 page-gap labels are contributor-original AI-assisted translations from English, not separately native-reviewed"licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "translation"@@@ -250,30 -228,39 +250,61 @@@ licence = "MIT OR Apache-2.0licence_file = "LICENSE-MIT"kind = "translation"usage = "Lithuanian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"-sha256 = "0dfdf4992c98317de76673e95f63d99c1e330a0f640abfcf23dcd97650396178"+sha256 = "c3f85494bc13d6a9a82429e074b79d28ef71f97eb4e40edc3dd4b8fa4bd223c6"+ [[asset]]+ path = "crates/ui-egui/src/i18n/hi.tsv"+ title = "Hindi interface translation catalog"+ author = "PdfCraft contributors"+ source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; 2026-10-22 page-gap labels are contributor-original AI-assisted translations from English, not separately native-reviewed"+ licence = "MIT OR Apache-2.0"+ licence_file = "LICENSE-MIT"+ kind = "translation"+ usage = "Hindi UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"+ sha256 = "e91cfde1fa084b1bf65983e0d4af903bd3c1aa0a269cf0734876c1550667001c"+ [[asset]]+ path = "crates/ui-egui/src/i18n/id.tsv"+ title = "Indonesian interface translation catalog"+ author = "PdfCraft contributors"+ source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; 2026-10-22 page-gap labels are contributor-original AI-assisted translations from English, not separately native-reviewed"+ licence = "MIT OR Apache-2.0"+ licence_file = "LICENSE-MIT"+ kind = "translation"+ usage = "Indonesian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"+ sha256 = "a0a58a0d5b930973141e4dcd37b55ad0173f5c2cc12e24776b082e601e0a2bb5"+ [[asset]]+ path = "crates/ui-egui/src/i18n/ko.tsv"+ title = "Korean interface translation catalog"+ author = "PdfCraft contributors"+ source = "Contributor-original: clean-room translations of PdfCraft's English UI labels, no proprietary localisation resources; 2026-10-22 page-gap labels are contributor-original AI-assisted translations from English, not separately native-reviewed"+ licence = "MIT OR Apache-2.0"+ licence_file = "LICENSE-MIT"+ kind = "translation"+ usage = "Korean UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"+ sha256 = "5d7f568741e091a30e0f94abc8841feacd85a738330f8ea9ea458cff469d9698"++[[asset]]+path = "crates/ui-egui/src/i18n/ro.tsv"+title = "Romanian interface translation catalog"+author = "PdfCraft contributors"+source = "Contributor-original: clean-room translations of PdfCraft's English UI labels and user-facing messages; AI-assisted and not yet reviewed line by line by a native Romanian speaker"+licence = "MIT OR Apache-2.0"+licence_file = "LICENSE-MIT"+kind = "translation"+usage = "Romanian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"+sha256 = "19d949a60f8ade450b8e1ef594aa5f6a6c0e95f7dc6538b338680d38ac599b42"+++[[asset]]+path = "crates/ui-egui/src/i18n/fi.tsv"+title = "Finnish interface translation catalog"+author = "PdfCraft contributors"+source = "Contributor-original: AI-assisted (Claude Code) clean-room translations of PdfCraft's English UI labels and user-facing messages; not yet proofread by a native Finnish speaker"+licence = "MIT OR Apache-2.0"+licence_file = "LICENSE-MIT"+kind = "translation"+usage = "Finnish UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"+sha256 = "15f86d82e5ac6f65f8cf3ca50ba2b4116cc7f5c8e70f9ad5d9e48ed4a9082eb0"[[asset]]path = "assets/icons/accessibility.svg"diff --cc apps/pdfcraft/src/main.rsindex 9bf6ad4df,da9d9fe27..83923fbe5--- a/apps/pdfcraft/src/main.rs+++ b/apps/pdfcraft/src/main.rs@@@ -7,7 -7,8 +7,8 @@@//! `--page N --zoom 150 --layout single|continuous|two-up|two-page --continuous on|off --panel comments|bookmarks|pages|fields|layers|attachments|none//! --theme light|dark|system --language auto|<code> --mode all|read|edit|convert|sign --tool <catalogue id> --left open|closed//! --organize on --fields on --dialog properties|shortcuts|about --palette <query> --home on-//! --cover on|off --default-layout single|continuous|two-up|two-page --default-continuous on|off --default-zoom fit-width|fit-page|<percent>+//! --cover on|off --default-layout single|continuous|two-up|two-page --default-continuous on|off --default-zoom fit-width|fit-page|<percent> --always-default-view on|off+ //! --page-gaps on|off --default-page-gaps on|off//! --combine-view grid|list --combine-zoom 60..200`//!//! `--new-window` opens a window of its own. Without it, on Windows, a launch that only names filesdiff --cc crates/engine/src/dates.rsindex 11d09dec2,6c5acfeac..e46a1ef6f--- a/crates/engine/src/dates.rs+++ b/crates/engine/src/dates.rs@@@ -57,13 -54,9 +57,13 @@@ const ZH_DAYS: [&str; 7] = ["星期日"const AR_MONTHS: [&str; 12] = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];const AR_DAYS: [&str; 7] = ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"];+const CKB_MONTHS: [&str; 12] =+ ["کانوونی دووەم", "شوبات", "ئازار", "نیسان", "ئایار", "حوزەیران", "تەممووز", "ئاب", "ئەیلوول", "تشرینی یەکەم", "تشرینی دووەم", "کانوونی یەکەم"];+const CKB_DAYS: [&str; 7] = ["یەکشەممە", "دووشەممە", "سێشەممە", "چوارشەممە", "پێنجشەممە", "هەینی", "شەممە"];+/// The languages month and weekday names can be written in (Preferences ▸ Date format ▸ Language):/// the interface languages, in the same order and with the same names.- pub static DATE_LANGUAGES: [DateLanguage; 30] = [-pub static DATE_LANGUAGES: [DateLanguage; 26] = [++pub static DATE_LANGUAGES: [DateLanguage; 33] = [DateLanguage {code: "en",name: "English",@@@ -415,115 -409,26 +426,135 @@@days: ["Chủ Nhật", "Thứ Hai", "Thứ Ba", "Thứ Tư", "Thứ Năm", "Thứ Sáu", "Thứ Bảy"],days_short: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],},+ DateLanguage {+ code: "fi",+ name: "Suomi",+ months: [+ "tammikuu",+ "helmikuu",+ "maaliskuu",+ "huhtikuu",+ "toukokuu",+ "kesäkuu",+ "heinäkuu",+ "elokuu",+ "syyskuu",+ "lokakuu",+ "marraskuu",+ "joulukuu",+ ],+ // After a day number the month takes the partitive: `14. lokakuuta 2026`.+ months_with_day: Some([+ "tammikuuta",+ "helmikuuta",+ "maaliskuuta",+ "huhtikuuta",+ "toukokuuta",+ "kesäkuuta",+ "heinäkuuta",+ "elokuuta",+ "syyskuuta",+ "lokakuuta",+ "marraskuuta",+ "joulukuuta",+ ]),+ months_short: ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu"],+ days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"],+ days_short: ["su", "ma", "ti", "ke", "to", "pe", "la"],+ },+ DateLanguage {+ code: "sq",+ name: "Shqip",+ months: ["janar", "shkurt", "mars", "prill", "maj", "qershor", "korrik", "gusht", "shtator", "tetor", "nëntor", "dhjetor"],+ months_with_day: None,+ months_short: ["jan", "shk", "mar", "pri", "maj", "qer", "korr", "gush", "sht", "tet", "nën", "dhj"],+ days: ["e diel", "e hënë", "e martë", "e mërkurë", "e enjte", "e premte", "e shtunë"],+ days_short: ["die", "hën", "mar", "mër", "enj", "pre", "sht"],+ },+ DateLanguage {+ code: "th",+ name: "ไทย",+ months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],+ months_with_day: None,+ months_short: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],+ days: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์"],+ days_short: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],+ },+ DateLanguage {+ code: "ca",+ name: "Català",+ months: ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre"],+ // After a day the month carries its own preposition, elided before a vowel: `7 d'abril`.+ months_with_day: Some([+ "de gener",+ "de febrer",+ "de març",+ "d'abril",+ "de maig",+ "de juny",+ "de juliol",+ "d'agost",+ "de setembre",+ "d'octubre",+ "de novembre",+ "de desembre",+ ]),+ months_short: ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des."],+ days: ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"],+ days_short: ["dg.", "dl.", "dt.", "dx.", "dj.", "dv.", "ds."],+ },+ // Romanian: month and weekday names are lowercase, also standing alone (`noiembrie 2023`).+ DateLanguage {+ code: "ro",+ name: "Română",+ months: [+ "ianuarie",+ "februarie",+ "martie",+ "aprilie",+ "mai",+ "iunie",+ "iulie",+ "august",+ "septembrie",+ "octombrie",+ "noiembrie",+ "decembrie",+ ],+ months_with_day: None,+ months_short: ["ian.", "feb.", "mar.", "apr.", "mai", "iun.", "iul.", "aug.", "sept.", "oct.", "nov.", "dec."],+ days: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"],+ days_short: ["dum.", "lun.", "mar.", "mie.", "joi", "vin.", "sâm."],+ },+ DateLanguage {+ code: "lo",+ name: "ພາສາລາວ",+ months: ["ມັງກອນ", "ກຸມພາ", "ມີນາ", "ເມສາ", "ພຶດສະພາ", "ມິຖຸນາ", "ກໍລະກົດ", "ສິງຫາ", "ກັນຍາ", "ຕຸລາ", "ພະຈິກ", "ທັນວາ"],+ months_with_day: None,+ months_short: ["ມ.ກ.", "ກ.ພ.", "ມ.ນ.", "ມ.ສ.", "ພ.ພ.", "ມິ.ຖ.", "ກ.ລ.", "ສ.ຫ.", "ກ.ຍ.", "ຕ.ລ.", "ພ.ຈ.", "ທ.ວ."],+ days: ["ວັນອາທິດ", "ວັນຈັນ", "ວັນອັງຄານ", "ວັນພຸດ", "ວັນພະຫັດ", "ວັນສຸກ", "ວັນເສົາ"],+ days_short: ["ອາທິດ", "ຈັນ", "ອັງຄານ", "ພຸດ", "ພະຫັດ", "ສຸກ", "ເສົາ"],+ },+ // Hindi (Devanagari). Month and weekday names are the same with and after a day number.+ DateLanguage {+ code: "hi",+ name: "हिन्दी",+ months: ["जनवरी", "फ़रवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्तूबर", "नवंबर", "दिसंबर"],+ months_with_day: None,+ months_short: ["जन॰", "फ़र॰", "मार्च", "अप्रैल", "मई", "जून", "जुला॰", "अग॰", "सित॰", "अक्तू॰", "नव॰", "दिस॰"],+ days: ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"],+ days_short: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"],+ },+ // Korean: months are numbered (`3월`) and weekdays end in 요일; no names change after a day.+ DateLanguage {+ code: "ko",+ name: "한국어",+ months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],+ months_with_day: None,+ months_short: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],+ days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],+ days_short: ["일", "월", "화", "수", "목", "금", "토"],+ },];/// The date language for `code` (any case), or `None` when there's none.@@@ -848,17 -749,35 +879,46 @@@ mod testsassert_eq!(in_lang("dddd, mmmm", "cs"), "sobota, březen");}+ /// Indonesian month and weekday names are the same with and after a day number. (Vietnamese+ /// has its own test upstream: its numeric month forms are writable, weekday names are not.)+ #[test]+ fn indonesian_month_and_weekday_names() {+ assert_eq!(in_lang("d mmmm yyyy", "id"), "7 Maret 2026");+ assert_eq!(in_lang("mmmm yyyy", "id"), "Maret 2026");+ assert_eq!(in_lang("dddd, d mmmm yyyy", "id"), "Sabtu, 7 Maret 2026");+ // Indonesian month names are Latin, so they reach a PDF.+ let mut s = Session::new().with_clock(|| 1_700_000_000);+ s.set_date_language(Some("id")).unwrap();+ assert_eq!(s.today_text_for_pdf(Some("d mmmm yyyy"), None).as_deref(), Ok("14 November 2023"));+ }++ /// Hindi and Korean names are the same with and after a day number. Neither is Western+ /// European, so the date-text path refuses them with what to use instead.+ #[test]+ fn hindi_and_korean_month_and_weekday_names() {+ assert_eq!(in_lang("d mmmm yyyy", "hi"), "7 मार्च 2026");+ assert_eq!(in_lang("dddd, mmmm", "hi"), "शनिवार, मार्च");+ assert_eq!(in_lang("ddd, d mmm", "hi"), "शनि, 7 मार्च");+ assert_eq!(in_lang("yyyy\\년 mmmm d\\일 dddd", "ko"), "2026년 3월 7일 토요일");+ assert_eq!(in_lang("ddd", "ko"), "토");+ let mut s = Session::new().with_clock(|| 1_700_000_000);+ for code in ["hi", "ko"] {+ s.set_date_language(Some(code)).unwrap();+ assert!(s.today_text_for_pdf(Some("d mmmm yyyy"), None).unwrap_err().contains("dd.mm.yyyy"), "{code}");+ }+ }++ #[test]+ fn catalan_months_elide_the_preposition_after_a_day() {+ assert_eq!(in_lang("dddd d mmmm \\de yyyy", "ca"), "dissabte 7 de març de 2026");+ assert_eq!(in_lang("mmmm yyyy", "ca"), "març 2026");+ let ca = date_language("ca").unwrap();+ assert_eq!(format_day("d mmmm \\de yyyy", (2026, 4, 23), ca), "23 d'abril de 2026");+ assert_eq!(format_day("d mmmm", (2026, 8, 1), ca), "1 d'agost");+ assert_eq!(format_day("d mmmm", (2026, 10, 8), ca), "8 d'octubre");+ assert_eq!(format_day("mmmm", (2026, 10, 8), ca), "octubre", "no preposition without a day");+ }+#[test]fn the_session_writes_names_in_its_date_language() {let mut s = Session::new().with_clock(|| 1_700_000_000);diff --cc crates/fonts/src/lib.rsindex 5433e4257,5fbb07a9a..d1d0b49e5--- a/crates/fonts/src/lib.rs+++ b/crates/fonts/src/lib.rs@@@ -18,9 -18,9 +18,7 @@@ pub mod source_shapingmod std14;mod std14_metrics;pub use craft::{- CRAFT_FONTS, CraftFont, SHIPPORI_MINCHO, document_arabic_font, document_hebrew_font, document_japanese_font, document_japanese_font_for_style,- document_japanese_fonts_for_style, document_latin_fonts, document_thai_font, ui_arabic_fonts, ui_chinese_fonts, ui_cjk_fonts, ui_hebrew_fonts,- ui_japanese_fonts, ui_telugu_fonts, ui_thai_fonts,- CRAFT_FONTS, CraftFont, SHIPPORI_MINCHO, document_arabic_font, document_devanagari_font, document_hebrew_font, document_japanese_font,- document_japanese_font_for_style, document_japanese_fonts_for_style, document_thai_font, ui_arabic_fonts, ui_chinese_fonts, ui_cjk_fonts,- ui_devanagari_fonts, ui_hebrew_fonts, ui_japanese_fonts, ui_telugu_fonts, ui_thai_fonts,++ CRAFT_FONTS, CraftFont, SHIPPORI_MINCHO, document_arabic_font, document_devanagari_font, document_hebrew_font, document_japanese_font, document_japanese_font_for_style, document_japanese_fonts_for_style, document_latin_fonts, document_thai_font, ui_arabic_fonts, ui_chinese_fonts, ui_cjk_fonts, ui_devanagari_fonts, ui_hebrew_fonts, ui_japanese_fonts, ui_telugu_fonts, ui_thai_fonts,};pub use script::{GlyphError, GlyphOutline, INTER_REGULAR, MAX_SIGNATURE_CHARS, ScriptOutline, japanese_glyph, japanese_glyph_from, script_missing, script_outline,diff --cc crates/ui-egui/src/canvas.rsindex 055d9f1f2,166a19287..9cda984a0--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@@ -194,7 -183,7 +196,7 @@@ pub struct ViewDefaultsimpl Default for ViewDefaults {fn default() -> Self {// Single page, scrolling continuously at fit width: the earlier "continuous" default.- Self { layout: PageLayout::Single, continuous: true, fit: Fit::Width, zoom: 1.0, highlight_fields: true }- Self { layout: PageLayout::Single, continuous: true, show_page_gaps: true, fit: Fit::Width, zoom: 1.0, highlight_fields: false }++ Self { layout: PageLayout::Single, continuous: true, show_page_gaps: true, fit: Fit::Width, zoom: 1.0, highlight_fields: true }}}@@@ -3147,9 -2966,11 +3187,11 @@@ pub fn document_area(app: &mut PdfCraftcurrent = i;}let xf = PageXform { rect: r, rot: view.rotation, pw: info.pages[i].width.max(1.0), ph: info.pages[i].height.max(1.0) };- // Soft shadow + paper.- painter.add(egui::epaint::Shadow { offset: [0, 3], blur: 14, spread: 0, color: t.page_shadow }.as_shape(r, CornerRadius::ZERO));+ // Shadows would darken the preceding page when pages touch.+ if view.show_page_gaps {+ painter.add(egui::epaint::Shadow { offset: [0, 3], blur: 14, spread: 0, color: t.page_shadow }.as_shape(r, CornerRadius::ZERO));+ }- painter.rect_filled(r, CornerRadius::ZERO, Color32::WHITE);+ painter.rect_filled(r, CornerRadius::ZERO, paper);if let Some(err) = view.errors.get(&i) {painter.rect_filled(r, CornerRadius::ZERO, Color32::from_rgb(0xFB, 0xF4, 0xF4));icons::paint(diff --cc crates/ui-egui/src/control.rsindex fa5d32c40,aa8cd66d5..1550d446c--- a/crates/ui-egui/src/control.rs+++ b/crates/ui-egui/src/control.rs@@@ -679,9 -678,10 +679,11 @@@ impl Host for crate::PdfCraftApp"zoom_percent": (v.zoom * 100.0).round(),"fit": format!("{:?}", v.fit),"layout": format!("{:?}", v.layout),+ "continuous": v.continuous(),+ "page_gaps": v.show_page_gaps,"organize": v.organize,"grid_zoom": v.grid_zoom(),+ "thumbnail_zoom": v.thumbnail_zoom(),// Pages picked in the organize grid or the Pages panel (empty: the current page)."selected_pages": v.selected.iter().map(|p| p + 1).collect::<Vec<_>>(),"auto_scrolling": v.auto_scrolling(),diff --cc crates/ui-egui/src/i18n/mod.rsindex d54fd7a9c,9da0d44db..936f73623--- a/crates/ui-egui/src/i18n/mod.rs+++ b/crates/ui-egui/src/i18n/mod.rs@@@ -159,7 -147,7 +159,7 @@@ fn plural_sl(n: u64) -> usize}/// The registry. English first: it is the fallback and the source language.- pub static LANGUAGES: [LangInfo; 30] = [-pub static LANGUAGES: [LangInfo; 26] = [++pub static LANGUAGES: [LangInfo; 33] = [LangInfo { code: "en", name: "English", source: "", plural: plural_one_other, rtl: false, catalog: OnceLock::new() },LangInfo { code: "ja", name: "日本語", source: include_str!("ja.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },// Simplified Chinese; `zh`, `zh-CN`, `zh-SG` and `zh-Hans-*` locales resolve here (see `candidates`).@@@ -227,19 -213,13 +230,26 @@@// Vietnamese; every `vi-*` locale (`vi-VN`, `vi_VN.UTF-8`) resolves here. CLDR `vi` counts have// one form ("other"), so `@plural` entries list a single form.LangInfo { code: "vi", name: "Tiếng Việt", source: include_str!("vi.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },+ // Finnish; every `fi-*` locale (`fi-FI`, `fi_FI.UTF-8`) resolves here. Two plural forms (one, other):+ // the partitive singular follows any number but 1 (`1 sivu`, `2 sivua`).+ LangInfo { code: "fi", name: "Suomi", source: include_str!("fi.tsv"), plural: plural_one_other, rtl: false, catalog: OnceLock::new() },+ // Albanian; every `sq-*` locale (`sq-AL`, `sq_AL.UTF-8`, `sq-XK`) resolves here. One/other plural, like English.+ LangInfo { code: "sq", name: "Shqip", source: include_str!("sq.tsv"), plural: plural_one_other, rtl: false, catalog: OnceLock::new() },+ // Thai; every `th-*` locale (`th-TH`, `th_TH.UTF-8`) resolves here. No grammatical plural.+ LangInfo { code: "th", name: "ไทย", source: include_str!("th.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },+ // Catalan; every `ca-*` locale (`ca-ES`, `ca_ES.UTF-8`, `ca_ES@valencia`) resolves here.+ LangInfo { code: "ca", name: "Català", source: include_str!("ca.tsv"), plural: plural_one_other, rtl: false, catalog: OnceLock::new() },+ // Romanian; every `ro-*` locale (`ro-RO`, `ro_RO.UTF-8`, `ro-MD`) resolves here. Three plural forms (one, few, other).+ LangInfo { code: "ro", name: "Română", source: include_str!("ro.tsv"), plural: plural_ro, rtl: false, catalog: OnceLock::new() },+ // Lao; every `lo-*` locale (`lo-LA`, `lo_LA.UTF-8` ...) resolves here.+ LangInfo { code: "lo", name: "ພາສາລາວ", source: include_str!("lo.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },+ // Hindi; every `hi-*` locale (`hi-IN`, `hi_IN.UTF-8`) resolves here. CLDR `hi` has "one"+ // (0 and 1) and "other", but the catalog's nouns are the same in both ("{n} पृष्ठ"), so+ // `@plural` entries list a single form.+ LangInfo { code: "hi", name: "हिन्दी", source: include_str!("hi.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },+ // Korean; every `ko-*` locale (`ko-KR`, `ko_KR.UTF-8`) resolves here. CLDR `ko` counts have+ // one form ("other"), so `@plural` entries list a single form.+ LangInfo { code: "ko", name: "한국어", source: include_str!("ko.tsv"), plural: plural_none, rtl: false, catalog: OnceLock::new() },];impl LangInfo {diff --cc crates/ui-egui/src/system_fonts.rsindex effb050fb,04b30548e..da31e338e--- a/crates/ui-egui/src/system_fonts.rs+++ b/crates/ui-egui/src/system_fonts.rs@@@ -4,9 -4,10 +4,9 @@@//! only draws characters none of them has, such as an Arabic file name in a build without//! craft-fonts, or the Simplified Chinese interface in a build without a `Hans` face (#826). A//! few more installed faces, [`devanagari_fallback`], [`telugu_fallback`], [`sinhala_fallback`],- //! [`tamil_fallback`] and [`hebrew_fallback`], draw Hindi, Telugu, Sinhala, Tamil and Hebrew when- //! one is installed. It is read at runtime and never embedded or shipped (AGENTS.md §1.4), and- //! `PDFCRAFT_SYSTEM_FONTS=0` turns it off (published screenshots do).-//! [`tamil_fallback`] and [`hangul_fallback`], draw Hindi, Telugu, Sinhala, Tamil and Korean when-//! one is installed. It is-//! read at runtime and never embedded or shipped (AGENTS.md §1.4), and `PDFCRAFT_SYSTEM_FONTS=0`-//! turns it off (published screenshots do).++//! [`tamil_fallback`], [`hebrew_fallback`] and [`hangul_fallback`], draw Hindi, Telugu, Sinhala,++//! Tamil, Hebrew and Korean when one is installed. It is read at runtime and never embedded or++//! shipped (AGENTS.md §1.4), and `PDFCRAFT_SYSTEM_FONTS=0` turns it off (published screenshots do).use std::path::{Path, PathBuf};use std::sync::{Arc, OnceLock};@@@ -32,8 -33,9 +32,11 @@@ const TELUGU_PROBE: char = '\u{0C15}'const SINHALA_PROBE: char = '\u{0D9A}';/// Tamil letter ka (க): the face must have it to cover Tamil.const TAMIL_PROBE: char = '\u{0B95}';+/// Hebrew letter alef: the face must have it to cover Hebrew.+const HEBREW_PROBE: char = '\u{05D0}';+ /// Hangul syllable hih (힣, U+D7A3), the last of the 11,172 modern syllables: a face with it has+ /// the whole block. Droid Sans Fallback, for one, has 가 but few other syllables.+ const HANGUL_PROBE: char = '\u{D7A3}';/// 欢 (U+6B22): Simplified only, absent from the Japanese craft-fonts faces.const HANS_PROBE: char = '\u{6B22}';/// 說 (U+8AAA): Traditional only, absent from the Japanese craft-fonts faces.@@@ -105,13 -107,13 +108,20 @@@ pub fn tamil_fallback() -> Option<Arc<FCACHE.get_or_init(|| script_fallback(&tamil_candidates(), TAMIL_PROBE)).clone()}+/// The installed fallback face for Hebrew, read once. `None` when it is turned off or no+/// candidate is installed; the interface then draws what the embedded faces can.+pub fn hebrew_fallback() -> Option<Arc<FontData>> {+ static CACHE: OnceLock<Option<Arc<FontData>>> = OnceLock::new();+ CACHE.get_or_init(|| script_fallback(&hebrew_candidates(), HEBREW_PROBE)).clone()+}++ /// The installed fallback face for Hangul (Korean), read once. `None` when it is turned off or no+ /// candidate is installed; the interface then draws what the embedded faces can.+ pub fn hangul_fallback() -> Option<Arc<FontData>> {+ static CACHE: OnceLock<Option<Arc<FontData>>> = OnceLock::new();+ CACHE.get_or_init(|| script_fallback(&hangul_candidates(), HANGUL_PROBE)).clone()+ }+fn script_fallback(candidates: &[PathBuf], probe: char) -> Option<Arc<FontData>> {if std::env::var_os("PDFCRAFT_SYSTEM_FONTS").is_some_and(|v| v == "0") {return None;@@@ -503,14 -440,14 +537,15 @@@ mod testsassert!(script_fallback(&candidates, 'A').is_some());assert!(script_fallback(&candidates, TELUGU_PROBE).is_none());assert!(script_fallback(&candidates, DEVANAGARI_PROBE).is_none());+ assert!(script_fallback(&candidates, HANGUL_PROBE).is_none());assert!(script_fallback(&candidates, SINHALA_PROBE).is_none());assert!(script_fallback(&candidates, TAMIL_PROBE).is_none());+ assert!(script_fallback(&candidates, HEBREW_PROBE).is_none());}#[test]fn script_candidates_are_absolute_font_files() {- for list in [devanagari_candidates(), telugu_candidates(), sinhala_candidates(), tamil_candidates(), hebrew_candidates()] {- for list in [devanagari_candidates(), telugu_candidates(), sinhala_candidates(), tamil_candidates(), hangul_candidates()] {++ for list in [devanagari_candidates(), telugu_candidates(), sinhala_candidates(), tamil_candidates(), hebrew_candidates(), hangul_candidates()] {assert!(!list.is_empty());assert!(list.iter().all(|p| p.is_absolute() || cfg!(windows)), "{list:?}");assert!(list.iter().all(|p| p.extension().is_some_and(|e| e == "ttf" || e == "ttc")), "{list:?}");diff --cc crates/ui-egui/src/theme.rsindex 2023124d4,bc0d9b26a..2cd232425--- a/crates/ui-egui/src/theme.rs+++ b/crates/ui-egui/src/theme.rs@@@ -224,8 -224,8 +224,10 @@@ pub const SYSTEM_TELUGU_FALLBACK: &strpub const SYSTEM_SINHALA_FALLBACK: &str = "system-sinhala-fallback";/// The name of the installed Tamil face [`installed_font_definitions`] may add.pub const SYSTEM_TAMIL_FALLBACK: &str = "system-tamil-fallback";+/// The name of the installed Hebrew face [`installed_font_definitions`] may add.+pub const SYSTEM_HEBREW_FALLBACK: &str = "system-hebrew-fallback";+ /// The name of the installed Hangul (Korean) face [`installed_font_definitions`] may add.+ pub const SYSTEM_HANGUL_FALLBACK: &str = "system-hangul-fallback";/// What [`install_fonts_for`] installs: [`font_definitions_for`], then, on desktop, one face/// already installed on this machine. It only draws characters no embedded face has.@@@ -238,9 -238,9 +240,10 @@@/// - Otherwise it is the last fallback of every family (an Arabic file name in a build without/// craft-fonts).///- /// Installed Devanagari, Telugu, Sinhala, Tamil and Hebrew faces, when there are, end every- /// family just before that one, so Hindi, Telugu (#1531), Sinhala and Tamil (#1688) text, such as- /// a file name, and Hebrew file names (#586) draw in a build without such faces.-/// Installed Devanagari, Telugu, Sinhala, Tamil and Hangul faces, when there are, end every family-/// just before that one, so Hindi, Telugu (#1531), Sinhala and Tamil (#1688) and Korean text, such-/// as a file name or a tab title, draws in a build without such faces.++/// Installed Devanagari, Telugu, Sinhala, Tamil, Hebrew and Hangul faces, when there are, end++/// every family just before that one, so Hindi, Telugu (#1531), Sinhala and Tamil (#1688) and++/// Korean text, such as a file name or a tab title, and Hebrew file names (#586) draw in a build++/// without such faces.////// `PDFCRAFT_SYSTEM_FONTS=0` leaves them out.pub fn installed_font_definitions(cjk: CjkPreference) -> FontDefinitions {@@@ -255,7 -255,7 +258,8 @@@(SYSTEM_TELUGU_FALLBACK, crate::system_fonts::telugu_fallback()),(SYSTEM_SINHALA_FALLBACK, crate::system_fonts::sinhala_fallback()),(SYSTEM_TAMIL_FALLBACK, crate::system_fonts::tamil_fallback()),+ (SYSTEM_HEBREW_FALLBACK, crate::system_fonts::hebrew_fallback()),+ (SYSTEM_HANGUL_FALLBACK, crate::system_fonts::hangul_fallback()),] {let Some(data) = data else { continue };fonts.font_data.insert(name.to_owned(), data);diff --cc crates/ui-egui/tests/content.rsindex 79b1cdae0,84e0f8459..2c2ad4c6b--- a/crates/ui-egui/tests/content.rs+++ b/crates/ui-egui/tests/content.rs@@@ -707,74 -643,77 +707,149 @@@ fn format_text_panel_sets_alignment_andassert!(h.state().text_style.bold);}+/// Where a mode bar tab is, by its label.+fn mode_tab(h: &Harness<'static, PdfCraftApp>, label: &str) -> egui::Rect {+ h.get_all_by_role_and_label(egui::accesskit::Role::Button, label).map(|n| n.rect()).find(|r| r.bottom() < 120.0).expect("a mode tab")+}++/// Scroll the page until `what` (on screen) lies across the mode bar, then the cursor over each+/// tab it lies under: with the All tools panel closed, Read, Edit, Convert and E-Sign.+fn mode_tab_cursors(+ h: &mut Harness<'static, PdfCraftApp>,+ what: impl Fn(&Harness<'static, PdfCraftApp>) -> egui::Rect,+) -> [(&'static str, egui::CursorIcon); 4] {+ let page = |h: &Harness<'static, PdfCraftApp>| h.state().views[0].page_screen_rect(0).expect("on screen");+ let y = what(h).center().y - page(h).top();+ let tabs = mode_tab(h, "Convert").center().y;+ h.state_mut().views[0].goto = Some((0, 0.0));+ h.run_steps(4);+ let top = page(h).top();+ h.state_mut().views[0].goto = Some((0, (top - (tabs - y)) / page(h).height()));+ h.run_steps(4);+ let under = what(h);+ ["Read", "Edit", "Convert", "E-Sign"].map(|label| {+ let at = mode_tab(h, label).center();+ assert!(under.contains(at), "{under:?} lies under {label} at {at:?}");+ h.hover_at(at);+ h.run_steps(2);+ (label, h.output().platform_output.cursor_icon)+ })+}++const HAND_ON_EVERY_TAB: [(&str, egui::CursorIcon); 4] = [+ ("Read", egui::CursorIcon::PointingHand),+ ("Edit", egui::CursorIcon::PointingHand),+ ("Convert", egui::CursorIcon::PointingHand),+ ("E-Sign", egui::CursorIcon::PointingHand),+];++/// Add text, with the page scrolled up under the mode bar, leaves its tabs the hand (#2755): the+/// tool gave them its I-beam, added text its four-way arrow, and the open editor floated over+/// them and took their clicks.+#[test]+fn mode_tabs_keep_the_hand_over_added_text_scrolled_under_them() {+ let mut h = harness();+ assert!(h.state_mut().execute("edit.text"));+ h.state_mut().set_option("left", "closed").unwrap();+ // The page across the window, so text placed at its left edge reaches under the tabs.+ h.state_mut().views[0].fit = pdfcraft_ui_egui::canvas::Fit::Width;+ h.run_steps(4);+ assert_eq!(h.state().quick_tool, QuickTool::AddText);+ // The empty page, ready for text.+ assert_eq!(mode_tab_cursors(&mut h, |h| item_on_screen(h, [10.0, 290.0, 210.0, 305.0])), HAND_ON_EVERY_TAB, "the page under the tabs");+ // Text kept by a click lower down, which starts a second box (#74).+ h.state_mut().views[0].goto = Some((0, 0.0));+ h.run_steps(4);+ let p = at(&h, 10.0, 40.0);+ click(&mut h, p);+ h.event(egui::Event::Text("Reviewed".into()));+ h.run_steps(2);+ let p = at(&h, 10.0, 120.0);+ click(&mut h, p);+ h.event(egui::Event::Text("Approved".into()));+ h.run_steps(2);+ assert_eq!(texts(&h), ["Reviewed"]);+ let kept = added(&h)[0].content.rect();+ assert_eq!(mode_tab_cursors(&mut h, |h| item_on_screen(h, kept)), HAND_ON_EVERY_TAB, "added text under the tabs");+ // The second box, still being typed.+ let draft = |h: &Harness<'static, PdfCraftApp>| item_on_screen(h, h.state().views[0].content.draft.as_ref().expect("the open box").rect);+ assert_eq!(mode_tab_cursors(&mut h, draft), HAND_ON_EVERY_TAB, "the open box under the tabs");+ let convert = mode_tab(&h, "Convert").center();+ click(&mut h, convert);+ assert_eq!(h.state().mode, pdfcraft_ui_egui::Mode::Convert, "the tab takes the click, not the box");+}+++ /// Red pixels in `r`: the test picture.+ fn red(pixels: &image::RgbaImage, r: egui::Rect) -> usize {+ let (x0, y0, x1, y1) = (r.left().max(0.0) as u32, r.top().max(0.0) as u32, r.right() as u32, r.bottom() as u32);+ (y0..y1.min(pixels.height()))+ .flat_map(|y| (x0..x1.min(pixels.width())).map(move |x| (x, y)))+ .filter(|(x, y)| matches!(pixels.get_pixel(*x, *y).0, [r, g, b, _] if r > 150 && g < 90 && b < 90))+ .count()+ }++ /// Steps until no render is pending.+ fn settle(h: &mut Harness<'static, PdfCraftApp>) {+ for _ in 0..200 {+ h.run_steps(1);+ if !h.state().render_pending() {+ return;+ }+ std::thread::sleep(std::time::Duration::from_millis(5));+ }+ panic!("the page did not finish rendering");+ }++ /// An added picture resized by a corner is drawn at its new size while dragged and after the+ /// release until the page is rendered again. It used to stay at its old size under the outline for+ /// the whole drag, and to show there again after the release.+ #[test]+ fn a_resized_added_picture_shows_only_at_its_new_size() {+ let mut h = harness();+ assert!(h.state_mut().execute("edit.edit_text"));+ h.run_steps(2);+ let mut png = Vec::new();+ {+ let mut enc = png::Encoder::new(&mut png, 60, 60);+ enc.set_color(png::ColorType::Rgb);+ let mut w = enc.write_header().unwrap();+ w.write_image_data(&[200u8, 30, 30].repeat(3600)).unwrap();+ }+ h.state_mut().add_image("red.png".into(), png);+ h.run_steps(3);+ assert_eq!(h.state().views[0].content.selected, Some((0, 0)), "the picture is selected");+ settle(&mut h);+ let rect = added(&h)[0].content.rect();+ let r = item_on_screen(&h, rect);+ // The lower right corner to the middle: half the size, the upper left corner kept.+ let (grip, to) = (r.expand(1.0).right_bottom(), r.center());+ let kept = egui::Rect::from_min_max(r.min, r.center()).shrink(3.0);+ let gone = egui::Rect::from_min_max(r.center() + egui::vec2(4.0, 4.0), r.max - egui::vec2(3.0, 3.0));+ h.hover_at(grip);+ h.run_steps(1);+ h.drag_at(grip);+ h.run_steps(1);+ for k in 1..=4 {+ h.hover_at(grip + (to - grip) * (k as f32 / 4.0));+ h.run_steps(1);+ }+ settle(&mut h);+ let pixels = h.render().unwrap();+ assert!(red(&pixels, kept) > 100, "while dragged, the picture is drawn at its new size");+ assert_eq!(red(&pixels, gone), 0, "while dragged, the picture shows at its old size");+ assert_eq!(added(&h)[0].content.rect(), rect, "nothing is applied before release");+ h.state_mut().views[0].hold_rasters = true;+ h.drop_at(to);+ for frame in 0..4 {+ h.step();+ let pixels = h.render().unwrap();+ assert!(red(&pixels, kept) > 100, "frame {frame} after the release: the picture is not at its new size");+ assert_eq!(red(&pixels, gone), 0, "frame {frame} after the release: the picture shows at its old size");+ }+ assert_ne!(added(&h)[0].content.rect(), rect, "the resize is applied");+ h.state_mut().views[0].hold_rasters = false;+ settle(&mut h);+ h.run_steps(2);+ let pixels = h.render().unwrap();+ assert!(red(&pixels, kept) > 100 && red(&pixels, gone) == 0, "the page raster has the picture at its new size");+ }diff --cc crates/ui-egui/tests/fonts.rsindex b08c3ddc1,6169763d3..6d8ed58bd--- a/crates/ui-egui/tests/fonts.rs+++ b/crates/ui-egui/tests/fonts.rs@@@ -8,7 -8,7 +8,8 @@@ const JAPANESE: &str = "日本語の文const CHINESE: &str = "简体中文欢迎";const ARABIC: &str = "واحد اثنين";const TELUGU: &str = "తెలుగు ఫైల్";+const HEBREW: &str = "ייפוי כח.pdf";+ const DEVANAGARI: &str = "हिंदी पाठ सम्पादन";fn families() -> Vec<FontId> {vec![FontId::proportional(13.0), FontId::monospace(13.0), theme::medium(13.0), theme::semibold(17.0)]@@@ -314,7 -315,7 +339,7 @@@ fn ui_fonts_work_without_craft_fonts()theme::install_fonts(&ctx);}- /// Latin- and Cyrillic-script catalogs (Czech, Brazilian Portuguese, German, Spanish, French, Russian, Bulgarian, Hungarian, Ukrainian, Italian, Slovene, Albanian, Catalan) are drawn entirely by the app's own faces-/// Latin- and Cyrillic-script catalogs (Czech, Brazilian Portuguese, German, Spanish, French, Russian, Bulgarian, Kazakh, Hungarian, Ukrainian, Italian, Slovene, Lithuanian, Greek, Turkish, Indonesian, Vietnamese) are drawn entirely by the app's own faces++/// Latin- and Cyrillic-script catalogs (Czech, Brazilian Portuguese, German, Spanish, French, Russian, Bulgarian, Kazakh, Hungarian, Ukrainian, Italian, Slovene, Lithuanian, Greek, Turkish, Indonesian, Vietnamese, Albanian, Catalan) are drawn entirely by the app's own faces/// (Inter, JetBrains Mono with Inter fallback): no letter falls through to egui's defaults or a CJK fallback. (egui's/// `has_glyphs` can't answer this: with only the primary face it is also the replacement face.)#[test]@@@ -341,13 -342,14 +366,18 @@@ fn primary_ui_fonts_cover_latin_and_cyr("tr", include_str!("../src/i18n/tr.tsv")),("sl", include_str!("../src/i18n/sl.tsv")),("lt", include_str!("../src/i18n/lt.tsv")),+ ("id", include_str!("../src/i18n/id.tsv")),("vi", include_str!("../src/i18n/vi.tsv")),+ ("fi", include_str!("../src/i18n/fi.tsv")),+ ("sq", include_str!("../src/i18n/sq.tsv")),+ ("ca", include_str!("../src/i18n/ca.tsv")),+ ("ro", include_str!("../src/i18n/ro.tsv")),] {- let mut text = String::from("áčďéěíňóřšťúůýžÁČĎÉĚÍŇÓŘŠŤÚŮÝŽãõçâêôàÃÕÇÂÊÔÀñÑüÜäÄöÖőűß„“¿¡«»…ґҐєЄіІїЇәғқңөұүһӘҒҚҢӨҰҮҺ");+ // Vietnamese stacks its diacritics: the precomposed letters and the base letters they+ // combine with, including `đ` and the tone marks `ạ ả ấ ầ ẩ ẫ ậ ắ ằ ẳ ẵ ặ ế ề ể ễ ệ`.+ let mut text = String::from(+ "áčďéěíňóřšťúůýžÁČĎÉĚÍŇÓŘŠŤÚŮÝŽãõçâêôàÃÕÇÂÊÔÀñÑüÜäÄöÖőűß„“¿¡«»…ґҐєЄіІїЇәғқңөұүһӘҒҚҢӨҰҮҺđĐạảấầẩẫậắằẳẵặếềểễệọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹ",+ );for line in catalog.lines().filter(|l| !l.starts_with('#')) {if let Some(translation) = line.split('\t').nth(2) {text.extend(translation.chars().filter(|c| !c.is_whitespace()));diff --cc docs/roadmap.mdindex 172fb9205,033d468f6..591d53f1e--- a/docs/roadmap.md+++ b/docs/roadmap.md@@@ -1,24 -1,8 +1,25 @@@# PdfCraft roadmap: milestones and what's next+> **Last reviewed:** 2026-10-20 · **Last updated:** 2026-10-20 · **Change:** minor (M4: initial-view options resolve indirect boolean preferences; estimates unchanged)+> **Last reviewed:** 2026-10-21 · **Last updated:** 2026-10-21 · **Change:** minor (M3, #3808: the Pages inspector has an independent 50–150% thumbnail size slider and buttons; selection and current-page following are retained, with headless ui.set coverage. Estimates unchanged.)+> **Last reviewed:** 2026-10-20 | **Last updated:** 2026-10-20 | **Change:** minor (M2, #3574: named form properties retain page origin and own dictionary boundaries; estimates unchanged)++> **Last reviewed:** 2026-10-20 · **Last updated:** 2026-10-20 · **Change:** minor (M3, #3541/#3620: comment hover follows individual marked lines and original annotation paint order; estimates unchanged)+> **Last reviewed:** 2026-10-20 · **Last updated:** 2026-10-20 · **Change:** patch (PR #3348 review: retain short tracked punctuation in gap estimates; estimates unchanged)++> **Last reviewed:** 2026-10-20 · **Last updated:** 2026-10-20 · **Change:** minor (M2, #3601: missing spacing glyphs in non-embedded Japanese CID substitutes draw as blanks while PDF widths and Unicode stay unchanged; estimates unchanged)+> **Last reviewed:** 2026-10-20 | **Last updated:** 2026-10-20 | **Change:** minor (M10, #3532 partial: vector printing retains existing appearances with absent Subtype; estimates unchanged)+> **Last reviewed:** 2026-10-20 · **Last updated:** 2026-10-20 · **Change:** minor (M12 #3673: Character encoding accepts Identity-H/V with Adobe CJK collections; estimates unchanged)++> **Last reviewed:** 2026-10-20 | **Last updated:** 2026-10-20 | **Change:** minor (M11 #3507: image merging preserves content stream boundaries; estimates unchanged)+> **Last reviewed:** 2026-10-17 · **Last updated:** 2026-10-17 · **Change:** minor (M8, gap 6 #2662: the redaction audit counts a cover over one word of a long line; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-13 · **Last updated:** 2026-10-13 · **Change:** minor (M10: dotted-leader contents entries export as complete paragraphs; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-18 · **Last updated:** 2026-10-18 · **Change:** minor (M5, PR #1971: bounded nested FDF export excludes source page/page-tree dictionaries; refreshed against upstream 4db6ac4a; estimates unchanged)+> **Last reviewed:** 2026-10-18 · **Last updated:** 2026-10-18 · **Change:** patch (M2 #3086: dotted TOC leaders no longer hide word spaces; estimates unchanged)++ > **Last reviewed:** 2026-10-18 · **Last updated:** 2026-10-18 · **Change:** minor (M3, PR #3101: optional gapless page display with translations in all 22 catalogs; organizer and comparison toggles corrected; estimates unchanged)> **Last reviewed:** 2026-10-15 · **Last updated:** 2026-10-15 · **Change:** minor (M14/#2383 GPU-limit candidate; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)+> **Last reviewed:** 2026-10-20 - **Last updated:** 2026-10-20 - **Change:** minor (M6, #3502: form detection uses the existing content-stream boundary policy; estimates unchanged)> **Last reviewed:** 2026-10-15 · **Last updated:** 2026-10-15 · **Change:** minor (M7: the Edit text caret is as tall as the row it is on; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)> **Last reviewed:** 2026-10-15 · **Last updated:** 2026-10-15 · **Change:** minor (M6: CSV tab-containing headers; estimates unchanged)> **Last reviewed:** 2026-10-15 · **Last updated:** 2026-10-18 · **Change:** minor (M4, #1919: repeated page indices accumulate rotations; M4: indirect page rotations refreshed upstream; M13: CLI check visits each directory once through aliases and cycles; estimates unchanged) · **Target:** Adobe Acrobat Pro (Acrobat DC, continuous track 26.002.21931, macOS)@@@ -152,8 -117,7 +153,9 @@@ total matches the parity estimate| M2 | Model, render, text | 200–350 | 15% | 130–230 | 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. Short same-line redraws split before placement rather than interleaving. Missing: model crate, fonts, DisplayList, renderer independent of hayro. Inspector page-label traversal and output are resource-bounded, with physical-number fallback warnings. Packed TIFF-predictor RGB rows retain later rows in decoding and rendering. Page marks, added content and print output retain small page-unit transform coefficients when serialized. || M2 | Model, render, text | 200–350 | 15% | 130–230 | 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. Short same-line redraws split before placement rather than interleaving. Missing: model crate, fonts, DisplayList, renderer independent of hayro. Inspector page-label traversal and output are resource-bounded, with physical-number fallback warnings. Packed TIFF-predictor RGB rows retain later rows in decoding and rendering. The renderer keeps its one-point crop-size floor in physical points after UserUnit scaling, with regression coverage for crop origins, rotations and f32 reciprocal rounding. Existing unit policy and nearly-zero fallback are retained. || M2 | Model, render, text | 200–350 | 15% | 130–230 | 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. Short same-line redraws split before placement rather than interleaving. 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 | 90% | 10–20 | Acrobat-style shell, find, select, panels, tiles, web build, UI control channel for agents (opt-in). #3808: the Pages inspector offers a 50–150% thumbnail slider and buttons, also available through `ui.set`. Missing: 60 fps test on a 500-page document, snapshot tests of every panel<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). Selected-text Copy in Edit and the canvas context menu is covered by focused regressions and native clipboard checks (#1225); document copy restrictions apply to the floating action too. #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. Page-label navigation displays logical labels, retains the current page on unchanged submission and refreshes focused same-document replacements; clean file-watcher reload preserves the chosen scrolling mode, preventing a Single Page reader from jumping to page 1 during replacement. Synthetic control regressions cover these behaviors. #3149: page-list changes discard render demand based on old geometry; actual raster dimensions are checked against the GPU limit before upload. Synthetic crash and continued-rendering regressions cover the replacement path. Save-prompt shortcuts yield to dialogs above them; stacked link-consent UI regression covers Escape and Return. |+| M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | 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<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). Selected-text Copy in Edit and the canvas context menu is covered by focused regressions and native clipboard checks (#1225); document copy restrictions apply to the floating action too. #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. Page-label navigation displays logical labels, retains the current page on unchanged submission and refreshes focused same-document replacements; clean file-watcher reload preserves the chosen scrolling mode, preventing a Single Page reader from jumping to page 1 during replacement. Synthetic control regressions cover these behaviors. #3149: page-list changes discard render demand based on old geometry; actual raster dimensions are checked against the GPU limit before upload. Synthetic crash and continued-rendering regressions cover the replacement path. Save-prompt shortcuts yield to dialogs above them; stacked link-consent UI regression covers Escape and Return. Comment hover follows individual marked lines and original annotation paint order (#3541/#3620), independently of spatial inspection sorting; synthetic rotation, differing-upper-edge overlap and unchanged-document regressions. |+ | M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | 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<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). Selected-text Copy in Edit and the canvas context menu is covered by focused regressions and native clipboard checks (#1225); document copy restrictions apply to the floating action too. #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. Page-label navigation displays logical labels, retains the current page on unchanged submission and refreshes focused same-document replacements; clean file-watcher reload preserves the chosen scrolling mode, preventing a Single Page reader from jumping to page 1 during replacement. Synthetic control regressions cover these behaviors. #3149: page-list changes discard render demand based on old geometry; actual raster dimensions are checked against the GPU limit before upload. Synthetic crash and continued-rendering regressions cover the replacement path. Save-prompt shortcuts yield to dialogs above them; stacked link-consent UI regression covers Escape and Return. Optional page gaps join page edges without cropping PDF margins; current-document toggle, persisted default and UI control options are covered by viewer tests. Gap changes in Organize Pages preserve document scroll position, and both comparison panes follow menu and control choices. || M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | 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<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). Selected-text Copy in Edit and the canvas context menu is covered by focused regressions and native clipboard checks (#1225); document copy restrictions apply to the floating action too. #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. Page-label navigation displays logical labels, retains the current page on unchanged submission and refreshes focused same-document replacements; clean file-watcher reload preserves the chosen scrolling mode, preventing a Single Page reader from jumping to page 1 during replacement. Synthetic control regressions cover these behaviors. Wrapped revision buttons stay above Binding in Document Properties (#2739); a synthetic UI test checks layout and saved revision content. || M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | 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<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. Later native-open replies stay queued while a modal or picker owns the foreground; regressions cover recipient ownership, completion/cancellation and one-shot wakes. || M3 | Viewer app (native + web) | 80–150 | 90% | 10–20 | 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<br>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; numeric Linux portal events and idle wakeups completing #881, with native appearance inheritance retained (#446); late browser startup downloads preserve the current document and Save target (#171). #1364 candidate: absolute local GoToR links ask before target access; headless callers explicitly opt in. Native-opening candidate: chosen tools survive preparation and password retries; startup intake waits for pending preparation. #1980: exact quit modifiers preserve Ctrl+Alt+Q email input; Ctrl+Q/Cmd+Q asks before discarding unsaved documents. |