From 16c9343bcf2792f219486e627cfda376f77308c2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Nov 2024 13:25:09 +0530 Subject: [PATCH] Fix #2087520 [[Enhancement] Make the output settings look nice](https://bugs.launchpad.net/calibre/+bug/2087520) --- src/calibre/gui2/convert/lrf_output.ui | 222 +++++++++++------------- src/calibre/gui2/convert/mobi_output.ui | 117 ++++++++----- src/calibre/gui2/convert/pdb_output.ui | 42 ++--- src/calibre/gui2/convert/pmlz_output.ui | 70 ++++---- src/calibre/gui2/convert/txt_output.ui | 20 +-- 5 files changed, 238 insertions(+), 233 deletions(-) diff --git a/src/calibre/gui2/convert/lrf_output.ui b/src/calibre/gui2/convert/lrf_output.ui index 7ba724ca58..f00fa907b2 100644 --- a/src/calibre/gui2/convert/lrf_output.ui +++ b/src/calibre/gui2/convert/lrf_output.ui @@ -13,137 +13,88 @@ Form - - + + Enable &auto-rotation of wide images - - - - - - &Wordspace: - - - opt_wordspace - - - - - - - pt - - - 1 - - - 1.000000000000000 - - - 20.000000000000000 - - - 2.500000000000000 - - - - - - - Minimum para. &indent: - - - opt_minimum_indent - - - - - - - pt - - - 1 - - - - + + + + pt + + + 1 + + + 1.000000000000000 + + + 20.000000000000000 + + + 2.500000000000000 + + - + + + + pt + + + 1 + + + + Render &tables as images - - - - - - Text size multiplier for text in rendered tables: - - - - - - - + + - - - - - - Add &header - - - - - - - Header &separation: - - - opt_header_separation - - - - - - - pt - - - 1 - - - - - - - Header &format: - - - opt_header_format - - - - - - - true - - - - + + + + Add &header + + - + + + + pt + + + 1 + + + + + + + Header &format: + + + opt_header_format + + + + + + + true + + + + &Embed fonts @@ -191,7 +142,7 @@ - + Qt::Vertical @@ -204,6 +155,43 @@ + + + + Header &separation: + + + opt_header_separation + + + + + + + Text size multiplier for text in rendered tables: + + + + + + + &Wordspace: + + + opt_wordspace + + + + + + + Minimum para. &indent: + + + opt_minimum_indent + + + diff --git a/src/calibre/gui2/convert/mobi_output.ui b/src/calibre/gui2/convert/mobi_output.ui index 93e4e6afd4..f74c52489c 100644 --- a/src/calibre/gui2/convert/mobi_output.ui +++ b/src/calibre/gui2/convert/mobi_output.ui @@ -13,75 +13,76 @@ Form - - + + Do not add &Table of Contents to book - - - - &Title for Table of Contents: - - - opt_toc_title - - + + + + + + &Title for Table of Contents: + + + opt_toc_title + + + + + + + true + + + + - - - - true - - - - + Put generated Table of Contents at &start of book instead of end - + Ignore &margins - + Use author &sort for author - + Do not convert all images to &JPEG (may result in images not working in older viewers) - + Disable &compression of the file contents - + Kindle options - - QFormLayout::ExpandingFieldsGrow - @@ -93,30 +94,16 @@ - - - - - - Personal Doc tag: + + + + 0 + 0 + - - - - true - - - - - - - Enable &sharing of book content via Facebook, etc. WARNING: Disables last read syncing - - - - + <b>WARNING:</b> Various Kindle devices have trouble displaying the new or both MOBI filetypes. If you wish to use the new format on your device, convert to AZW3 instead of MOBI. @@ -126,9 +113,43 @@ + + + + Personal Doc tag: + + + + + + + true + + + + + + + Enable &sharing of book content via Facebook, etc. WARNING: Disables last read syncing + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/src/calibre/gui2/convert/pdb_output.ui b/src/calibre/gui2/convert/pdb_output.ui index cdaca79c8d..9524a421bd 100644 --- a/src/calibre/gui2/convert/pdb_output.ui +++ b/src/calibre/gui2/convert/pdb_output.ui @@ -13,7 +13,7 @@ Form - + @@ -27,26 +27,6 @@ - - - - Qt::Vertical - - - - 148 - 246 - - - - - - - - &Inline TOC - - - @@ -64,6 +44,26 @@ + + + + &Inline TOC + + + + + + + Qt::Vertical + + + + 148 + 246 + + + + diff --git a/src/calibre/gui2/convert/pmlz_output.ui b/src/calibre/gui2/convert/pmlz_output.ui index 85b6d12777..5cbe2e22ce 100644 --- a/src/calibre/gui2/convert/pmlz_output.ui +++ b/src/calibre/gui2/convert/pmlz_output.ui @@ -13,8 +13,39 @@ Form - - + + + + + Output &encoding: + + + opt_pml_output_encoding + + + + + + + true + + + + + + + &Inline TOC + + + + + + + Do not &reduce image size and depth + + + + Qt::Vertical @@ -27,41 +58,6 @@ - - - - &Inline TOC - - - - - - - Do not &reduce image size and depth - - - - - - - - - Output &encoding: - - - opt_pml_output_encoding - - - - - - - true - - - - - diff --git a/src/calibre/gui2/convert/txt_output.ui b/src/calibre/gui2/convert/txt_output.ui index 560d501d45..035a019c4f 100644 --- a/src/calibre/gui2/convert/txt_output.ui +++ b/src/calibre/gui2/convert/txt_output.ui @@ -19,7 +19,7 @@ General - + @@ -71,7 +71,14 @@ Plain - + + + + + &Inline TOC + + + @@ -85,20 +92,13 @@ - + Force maximum line &length - - - - &Inline TOC - - -