mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #3124: Do not use base font size when disable font rescaling is set in LRF output. Add txt_input files to the tree.
This commit is contained in:
parent
57ace85d3f
commit
89ad939b64
@ -38,7 +38,10 @@ class LRFOptions(object):
|
|||||||
self.use_metadata_cover = True
|
self.use_metadata_cover = True
|
||||||
self.output = output
|
self.output = output
|
||||||
self.ignore_tables = opts.linearize_tables
|
self.ignore_tables = opts.linearize_tables
|
||||||
self.base_font_size = opts.base_font_size
|
if opts.disable_font_rescaling:
|
||||||
|
self.base_font_size = 0
|
||||||
|
else:
|
||||||
|
self.base_font_size = opts.base_font_size
|
||||||
self.blank_after_para = opts.insert_blank_line
|
self.blank_after_para = opts.insert_blank_line
|
||||||
self.use_spine = True
|
self.use_spine = True
|
||||||
self.font_delta = 0
|
self.font_delta = 0
|
||||||
|
19
src/calibre/gui2/convert/txt_input.py
Normal file
19
src/calibre/gui2/convert/txt_input.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
__license__ = 'GPL 3'
|
||||||
|
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
|
||||||
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
from calibre.gui2.convert.txt_input_ui import Ui_Form
|
||||||
|
from calibre.gui2.convert import Widget
|
||||||
|
|
||||||
|
class PluginWidget(Widget, Ui_Form):
|
||||||
|
|
||||||
|
TITLE = _('TXT Input')
|
||||||
|
HELP = _('Options specific to')+' TXT '+_('input')
|
||||||
|
|
||||||
|
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||||
|
Widget.__init__(self, parent, 'pdf_input',
|
||||||
|
['single_line_paras'])
|
||||||
|
self.db, self.book_id = db, book_id
|
||||||
|
self.initialize_options(get_option, get_help, db, book_id)
|
41
src/calibre/gui2/convert/txt_input.ui
Normal file
41
src/calibre/gui2/convert/txt_input.ui
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>Form</class>
|
||||||
|
<widget class="QWidget" name="Form">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>213</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QCheckBox" name="opt_single_line_paras">
|
||||||
|
<property name="text">
|
||||||
|
<string>Single Line Paragraphs</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
x
Reference in New Issue
Block a user