DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge main into feat/file-info
dotCooCoo0f037cb67ee8
diff --cc crates/epub/src/lib.rsindex caec9527b,e3514d079..cd367df67--- a/crates/epub/src/lib.rs+++ b/crates/epub/src/lib.rs@@@ -1370,10 -1391,10 +1391,10 @@@ pub struct HtmlOptions/// File › Export › HTML: one self-contained page (styles inline, images as data URIs) with the/// document's stories and graphics in reading order.pub fn export_html(doc: &Document, opts: &HtmlOptions) -> String {- let title = opts.title.clone().unwrap_or_else(|| doc.title.clone());+ let title = opts.title.clone().unwrap_or_else(|| doc.metadata_title().to_string());let language = opts.language.as_deref().unwrap_or("en");let lang = language_tag(language);- let body = body_html(doc, false, &|_, mime, data| format!("data:{mime};base64,{}", base64(data))).html;+ let body = body_html(doc, false, None, &|_, mime, data| format!("data:{mime};base64,{}", base64(data))).html;format!("<!DOCTYPE html>\n<html lang=\"{lang}\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"generator\" content=\"DesignCraft\">\n<title>{}</title>\n<style>\nbody {{ max-width: 40em; margin: 2em auto; padding: 0 1em; }}\nfigure {{ margin: 1em 0; }} figure img {{ max-width: 100%; height: auto; }}\n{}</style>\n</head>\n<body>\n{body}</body>\n</html>\n",xml_text(&title),@@@ -1395,12 -1416,12 +1416,12 @@@ fn base64(data: &[u8]) -> String/// Export the document as a reflowable EPUB 3.pub fn export_epub(doc: &Document, opts: &EpubOptions) -> Result<Vec<u8>, EpubError> {- let title = opts.title.clone().unwrap_or_else(|| doc.title.clone());+ let title = opts.title.clone().unwrap_or_else(|| doc.metadata_title().to_string());let id = identifier(doc, opts, &title);let modified = modified(doc, opts);- let Body { html: body, images, toc, .. } = body_html(doc, true, &|name, _, _| name.to_string());+ let Body { html: body, images, toc, .. } = body_html(doc, true, opts.split.as_ref(), &|name, _, _| name.to_string());let lang = language_tag(&opts.language);- // One file per chapter (split before each h1), so e-readers needn't load the whole book.+ // One file per chapter (see `starts_chapter`); one file in all when Split Document is off.let chapters: Vec<String> = split_chapters(&body).into_iter().map(|part| {diff --cc crates/ui-egui/src/dialogs.rsindex fa9f245fa,20a0c58c5..5f87769dd--- a/crates/ui-egui/src/dialogs.rs+++ b/crates/ui-egui/src/dialogs.rs@@@ -2969,9 -2942,9 +3028,10 @@@ pub fn show(app: &mut DesignApp, ctx: &result = Some(true);}}+ "fileInfo" => file_info_dialog(app, ui, &mut d),"numberingSection" => crate::section_options::body(app, ui, &mut d),"pdfExport" => pdf_export(app, ui, &mut d),+ "epubExport" => epub_export(app, ui, &mut d),"alert" => {let file = d.s("file");if !file.is_empty() {diff --cc docs/gaps.mdindex 54e1b04af,f4d01d3b5..d872b8dda--- a/docs/gaps.md+++ b/docs/gaps.md@@@ -1,6 -1,6 +1,6 @@@# Where DesignCraft falls short of InDesign- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (gap 16 shrunk: File › File Info; gap 16: Convert Variable to Text; gap 28 added: placed-PDF font repair remains after visible unembedded font detection, #909; gap 26 shrunk: autoflow fills the following pages before it adds pages at the end; gap 6 shrunk: Type › Reload Fonts reads fonts installed, edited or removed while running (#328); gap 3: Package links are relative, #340; gap 27 closed: the loaded text cursor threads into a frame inside a group (#1075); .indd and .indt open through indd-utils; gap 0 shrunk: text threads by hand; threading gaps added; Optical kerning from outlines (#181); gap 6: macOS lists fonts that font services and managers activate; shared print spooler; image clipping paths from IDML; Tabs panel listed as present (#343); book chapter update safety; gap 16: Based on Parent leftovers; bounded control click/drag input; swatches on placed greyscale and bitmap images) · **Target:** Adobe InDesign 2026 (21.6)-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-24 · **Change:** minor (placed graphic layer-option preservation and explicit rendering warnings; gap 16: Convert Variable to Text; gap 28 added: placed-PDF font repair remains after visible unembedded font detection, #909; gap 26 shrunk: autoflow fills the following pages before it adds pages at the end; gap 6 shrunk: Type › Reload Fonts reads fonts installed, edited or removed while running (#328); gap 3: Package links are relative, #340; gap 27 closed: the loaded text cursor threads into a frame inside a group (#1075); .indd and .indt open through indd-utils; gap 0 shrunk: text threads by hand; threading gaps added; Optical kerning from outlines (#181); gap 6: macOS lists fonts that font services and managers activate; shared print spooler; image clipping paths from IDML; Tabs panel listed as present (#343); book chapter update safety; gap 16: Based on Parent leftovers; bounded control click/drag input; swatches on placed greyscale and bitmap images) · **Target:** Adobe InDesign 2026 (21.6)++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-24 · **Change:** minor (placed graphic layer-option preservation and explicit rendering warnings; gap 16 shrunk: File › File Info; gap 16: Convert Variable to Text; gap 28 added: placed-PDF font repair remains after visible unembedded font detection, #909; gap 26 shrunk: autoflow fills the following pages before it adds pages at the end; gap 6 shrunk: Type › Reload Fonts reads fonts installed, edited or removed while running (#328); gap 3: Package links are relative, #340; gap 27 closed: the loaded text cursor threads into a frame inside a group (#1075); .indd and .indt open through indd-utils; gap 0 shrunk: text threads by hand; threading gaps added; Optical kerning from outlines (#181); gap 6: macOS lists fonts that font services and managers activate; shared print spooler; image clipping paths from IDML; Tabs panel listed as present (#343); book chapter update safety; gap 16: Based on Parent leftovers; bounded control click/drag input; swatches on placed greyscale and bitmap images) · **Target:** Adobe InDesign 2026 (21.6)Every known shortfall against InDesign 2026, one entry each, ranked by how much it stops anInDesign professional from doing real work. This is the work list: agents pick from the top.