PDFSHXTEXT: recognise SHX text geometry as MText

Adds PDFSHXTEXT with the PDF Text Recognition Settings dialog, its
command-line form, the PDFSHXLAYER / PDFSHXBESTFONT / PDFSHXTEXTSETTINGS
variables and the profile settings they are kept in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-15 16:40:19 +03:00
1 parent 39c3e9af58
commit 907e501765
17 files changed
+2140

No files matched your search

+4
View File
@@ -457,6 +457,9 @@ pub struct UserSettings {
/// LAYOUTCREATEVIEWPORT: a layout opened for the first time gets a
/// viewport.
pub layout_create_viewport: bool,
/// PDFSHXTEXT's recognition settings (fonts, threshold, PDFSHXLAYER,
/// PDFSHXBESTFONT, PDFSHXTEXTSETTINGS).
pub pdf_shx_text: crate::modules::insert::pdf_shx_text::ShxTextSettings,
/// Nested-copy symbol handling: false inserts, true binds.
pub ncopy_bind: bool,
/// Last Options page; unknown saved names fall back without rejecting the config.
@@ -928,6 +931,7 @@ impl Default for UserSettings {
ucs_ortho: true,
ucs_view: true,
layout_create_viewport: true,
pdf_shx_text: Default::default(),
ncopy_bind: false,
cursor_type: CursorType::Crosshair,
crosshair_color: None,