From eb8841452725530ba2ca7dd55b85af677386dcff Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 30 Nov 2026 18:40:42 +0100 Subject: [PATCH] Restore original Unicode in launcher help and comments --- apps/pdfcraft/src/main.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/pdfcraft/src/main.rs b/apps/pdfcraft/src/main.rs index 46097a1f49..096efc60b5 100644 --- a/apps/pdfcraft/src/main.rs +++ b/apps/pdfcraft/src/main.rs @@ -1,9 +1,9 @@ //! PdfCraft desktop app. //! -//! Usage: `pdfcraft [options] [files…]` (`-h` / `--help` prints a short version of this, [`USAGE`]). +//! Usage: `pdfcraft [options] [files…]` (`-h` / `--help` prints a short version of this, [`USAGE`]). //! `--two-paged` opens each command-line PDF in noncontinuous two-page view, without changing defaults. //! An explicit `--layout` takes precedence for the active document, regardless of argument order. -//! `--create-images [images…]` stages the images in one PDF and asks for the page DPI. +//! `--create-images [images…]` stages the images in one PDF and asks for the page DPI. //! //! View options (applied after the files open; also the seed of the UI control channel): //! `--page N --zoom 150 --layout single|continuous|two-up|two-page --continuous on|off --panel comments|bookmarks|pages|fields|layers|attachments|none @@ -12,7 +12,7 @@ //! --cover on|off --default-layout single|continuous|two-up|two-page --default-continuous on|off --default-zoom fit-width|fit-page| --always-default-view on|off //! --page-gaps on|off --default-page-gaps on|off --recent-files 0..50 //! --combine-view grid|list --combine-zoom 60..200` -//! `--combine files…` adds the files to the Combine files tab (File Explorer's "Combine files in +//! `--combine files…` adds the files to the Combine files tab (File Explorer's "Combine files in //! PdfCraft", #585), of the PdfCraft already running when there is one. //! //! `--new-window` opens a window of its own. Without it, on Windows, a launch that only names files @@ -22,7 +22,7 @@ //! 127.0.0.1: (`0` picks a free one) and asks for the token `--control-token ` or //! `--control-token-file ` gives (or `PDFCRAFT_CONTROL_PORT`, `PDFCRAFT_CONTROL_TOKEN`, //! `PDFCRAFT_CONTROL_TOKEN_FILE`). The app doesn't start if it can't listen. -//! Agents then drive it with `pdfcraft-cli ui …`. +//! Agents then drive it with `pdfcraft-cli ui …`. //! // PLAN: apps/pdfcraft/Cargo.toml needs `craft = { workspace = true, features = ["automation", "window", "platform", "settings", "host", "ui"] }`; the manifest is not in this set's Files table. // PLAN: forms-02's `reorder_keys` wiring names no signature this set can call; its owner wires it here. @@ -157,18 +157,18 @@ fn prepare_launch() -> Option> { /// What `-h` / `--help` prints (#4076): a hint, not the full option list (that is this file's /// doc comment and the README). Scripts want `pdfcraft-cli`, which never opens a window. const USAGE: &str = "\ -Usage: pdfcraft [options] [files…] +Usage: pdfcraft [options] [files…] Opens the files in the PdfCraft desktop app. Options: --two-paged open command-line PDFs in noncontinuous two-page view --new-window open a window of its own instead of passing the files to a running PdfCraft - --create-images [images…] put the images in one PDF and ask for the page DPI - --combine files… add the files to the Combine files tab, of a running PdfCraft if there is one + --create-images [images…] put the images in one PDF and ask for the page DPI + --combine files… add the files to the Combine files tab, of a running PdfCraft if there is one --control enable the UI control channel on 127.0.0.1: (0: a free port) --control-token-file the control channel's token, from FILE (or --control-token ) - --page N, --zoom 150, --layout continuous, --theme dark, … + --page N, --zoom 150, --layout continuous, --theme dark, … view settings applied once the files are open -h, --help print this and exit --version print the version and exit @@ -359,7 +359,7 @@ fn main() -> eframe::Result { if previous_unclean { log::warn!("the previous PdfCraft Nightly ended without finishing its session record"); } - // Who draws the window frame: the platform and Preferences â–¸ Use system title bar decide, + // Who draws the window frame: the platform and Preferences ▸ Use system title bar decide, // unless `PDFCRAFT_TITLEBAR` overrides them. The store is read here and opened again by the // app (each window attempt opens its own: the OpenGL retry runs the creator again). // The interface language is read the same way, for the fonts the runtime installs with. @@ -460,7 +460,7 @@ fn renderer_choice(value: Option<&str>) -> RendererChoice { /// The control server's port and token from `--control `, `--control-token`, /// `--control-token-file` and their `PDFCRAFT_CONTROL_*` variables; `None` leaves the server off. -/// A port needs a token or a token file, so the token is never printed (AGENTS.md §3). +/// A port needs a token or a token file, so the token is never printed (AGENTS.md §3). fn control_options(port: Option, token: Option, token_file: Option) -> Result, String> { use craft::automation::args::{ControlOptions, EnvNames, FlagNames, OptionsError, Source, Sources, control_port}; let names = EnvNames::for_app("PDFCRAFT"); @@ -698,7 +698,7 @@ fn app_creator<'a>( app.printer_source = Some(pdfcraft_ui_egui::system_printers()); app.two_sided_source = Some(pdfcraft_ui_egui::system_two_sided()); app.os_key_store_ids = cfg!(any(target_os = "macos", target_os = "windows")); - // The native menu bar. Its Quit (⌘Q) closes the window rather than ending the process as + // The native menu bar. Its Quit (⌘Q) closes the window rather than ending the process as // winit's does (#1136), so the close path asks about unsaved changes, as for the close // button. #[cfg(target_os = "macos")]