mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String changes
This commit is contained in:
parent
114074c2fd
commit
40684801db
@ -102,7 +102,7 @@ After creating the saved search, you can use it as a restriction.
|
|||||||
.. image:: images/sg_restrict2.jpg
|
.. image:: images/sg_restrict2.jpg
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
Useful Template Functions
|
Useful template functions
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
You might want to use the genre information in a template, such as with save to disk or send to device. The question might then be "How do I get the outermost genre name or names?" A calibre template function, subitems, is provided to make doing this easier.
|
You might want to use the genre information in a template, such as with save to disk or send to device. The question might then be "How do I get the outermost genre name or names?" A calibre template function, subitems, is provided to make doing this easier.
|
||||||
|
@ -438,10 +438,10 @@ The following program produces the same results as the original recipe, using on
|
|||||||
It would be possible to do the above with no custom columns by putting the program into the template box of the plugboard. However, to do so, all comments must be removed because the plugboard text box does not support multi-line editing. It is debatable whether the gain of not having the custom column is worth the vast increase in difficulty caused by the program being one giant line.
|
It would be possible to do the above with no custom columns by putting the program into the template box of the plugboard. However, to do so, all comments must be removed because the plugboard text box does not support multi-line editing. It is debatable whether the gain of not having the custom column is worth the vast increase in difficulty caused by the program being one giant line.
|
||||||
|
|
||||||
|
|
||||||
User-defined Template Functions
|
User-defined template functions
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
You can add your own functions to the template processor. Such functions are written in python, and can be used in any of the three template programming modes. The functions are added by going to Preferences -> Advanced -> Template Functions. Instructions are shown in that dialog.
|
You can add your own functions to the template processor. Such functions are written in python, and can be used in any of the three template programming modes. The functions are added by going to Preferences -> Advanced -> Template functions. Instructions are shown in that dialog.
|
||||||
|
|
||||||
Special notes for save/send templates
|
Special notes for save/send templates
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
@ -28,7 +28,7 @@ class SortAction(QAction):
|
|||||||
class SortByAction(InterfaceAction):
|
class SortByAction(InterfaceAction):
|
||||||
|
|
||||||
name = 'Sort By'
|
name = 'Sort By'
|
||||||
action_spec = (_('Sort By'), 'arrow-up.png', _('Sort the list of books'), None)
|
action_spec = (_('Sort by'), 'arrow-up.png', _('Sort the list of books'), None)
|
||||||
action_type = 'current'
|
action_type = 'current'
|
||||||
popup_type = QToolButton.InstantPopup
|
popup_type = QToolButton.InstantPopup
|
||||||
action_add_menu = True
|
action_add_menu = True
|
||||||
|
@ -115,7 +115,7 @@ class EditorWidget(QWebView): # {{{
|
|||||||
('Paste', 'paste', 'edit-paste', _('Paste'), False),
|
('Paste', 'paste', 'edit-paste', _('Paste'), False),
|
||||||
('Cut', 'cut', 'edit-cut', _('Cut'), False),
|
('Cut', 'cut', 'edit-cut', _('Cut'), False),
|
||||||
('Indent', 'indent', 'format-indent-more',
|
('Indent', 'indent', 'format-indent-more',
|
||||||
_('Increase Indentation'), False),
|
_('Increase indentation'), False),
|
||||||
('Outdent', 'outdent', 'format-indent-less',
|
('Outdent', 'outdent', 'format-indent-less',
|
||||||
_('Decrease Indentation'), False),
|
_('Decrease Indentation'), False),
|
||||||
('SelectAll', 'select_all', 'edit-select-all',
|
('SelectAll', 'select_all', 'edit-select-all',
|
||||||
@ -665,7 +665,7 @@ class Editor(QWidget): # {{{
|
|||||||
l.addWidget(self.editor)
|
l.addWidget(self.editor)
|
||||||
self._layout.addWidget(self.tabs)
|
self._layout.addWidget(self.tabs)
|
||||||
self.tabs.addTab(self.wyswyg, _('N&ormal view'))
|
self.tabs.addTab(self.wyswyg, _('N&ormal view'))
|
||||||
self.tabs.addTab(self.code_edit, _('&HTML Source'))
|
self.tabs.addTab(self.code_edit, _('&HTML source'))
|
||||||
self.tabs.currentChanged[int].connect(self.change_tab)
|
self.tabs.currentChanged[int].connect(self.change_tab)
|
||||||
self.highlighter = Highlighter(self.code_edit.document())
|
self.highlighter = Highlighter(self.code_edit.document())
|
||||||
self.layout().setContentsMargins(0, 0, 0, 0)
|
self.layout().setContentsMargins(0, 0, 0, 0)
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_4">
|
<widget class="QGroupBox" name="groupBox_4">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Book Cover</string>
|
<string>Book cover</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="_2">
|
<layout class="QGridLayout" name="_2">
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
@ -551,7 +551,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
|
|
||||||
def change_cover_grid_color(self):
|
def change_cover_grid_color(self):
|
||||||
col = QColorDialog.getColor(self.cg_bg_widget.bcol,
|
col = QColorDialog.getColor(self.cg_bg_widget.bcol,
|
||||||
self.gui, _('Choose background color for cover grid'))
|
self.gui, _('Choose background color for the cover grid'))
|
||||||
if col.isValid():
|
if col.isValid():
|
||||||
col = tuple(col.getRgb())[:3]
|
col = tuple(col.getRgb())[:3]
|
||||||
self.set_cg_color(col)
|
self.set_cg_color(col)
|
||||||
|
@ -368,7 +368,7 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_11">
|
<widget class="QLabel" name="label_11">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Cover &Width: </string>
|
<string>Cover &width: </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_cover_grid_width</cstring>
|
<cstring>opt_cover_grid_width</cstring>
|
||||||
@ -409,7 +409,7 @@ A value of zero means calculate automatically.</string>
|
|||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_12">
|
<widget class="QLabel" name="label_12">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Cover &Height: </string>
|
<string>Cover &height: </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_cover_grid_height</cstring>
|
<cstring>opt_cover_grid_height</cstring>
|
||||||
|
@ -71,9 +71,9 @@
|
|||||||
<item row="1" column="0" colspan="3">
|
<item row="1" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="label_41">
|
<widget class="QLabel" name="label_41">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><li><b>Manual management</b>: Calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.</li>
|
<string><li><b>Manual management</b>: calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.</li>
|
||||||
<li><b>Only on send</b>: Calibre updates metadata and adds/removes collections for a book only when it is sent to the device. </li>
|
<li><b>Only on send</b>: calibre updates metadata and adds/removes collections for a book only when it is sent to the device. </li>
|
||||||
<li><b>Automatic management</b>: Calibre automatically keeps metadata on the device in sync with the calibre library, on every connect</li></ul></string>
|
<li><b>Automatic management</b>: calibre automatically keeps metadata on the device in sync with the calibre library, on every connect</li></ul></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Program Code: (be sure to follow python indenting rules)</string>
|
<string>&Program code: (be sure to follow python indenting rules)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>program</cstring>
|
<cstring>program</cstring>
|
||||||
|
@ -309,7 +309,7 @@ class Main(MainWindow):
|
|||||||
return self.central.editor_tabs
|
return self.central.editor_tabs
|
||||||
|
|
||||||
def create_actions(self):
|
def create_actions(self):
|
||||||
group = _('Global Actions')
|
group = _('Global actions')
|
||||||
|
|
||||||
def reg(icon, text, target, sid, keys, description, toolbar_allowed=False):
|
def reg(icon, text, target, sid, keys, description, toolbar_allowed=False):
|
||||||
if not isinstance(icon, QIcon):
|
if not isinstance(icon, QIcon):
|
||||||
@ -410,7 +410,7 @@ class Main(MainWindow):
|
|||||||
register_text_editor_actions(ereg, self.palette())
|
register_text_editor_actions(ereg, self.palette())
|
||||||
|
|
||||||
# Polish actions
|
# Polish actions
|
||||||
group = _('Polish Book')
|
group = _('Polish book')
|
||||||
self.action_subset_fonts = treg(
|
self.action_subset_fonts = treg(
|
||||||
'subset-fonts.png', _('&Subset embedded fonts'), partial(
|
'subset-fonts.png', _('&Subset embedded fonts'), partial(
|
||||||
self.boss.polish, 'subset', _('Subset fonts')), 'subset-fonts', (), _('Subset embedded fonts'))
|
self.boss.polish, 'subset', _('Subset fonts')), 'subset-fonts', (), _('Subset embedded fonts'))
|
||||||
@ -465,7 +465,7 @@ class Main(MainWindow):
|
|||||||
self.boss.show_text_search, 'text-search', (), _('Show the text search panel'))
|
self.boss.show_text_search, 'text-search', (), _('Show the text search panel'))
|
||||||
|
|
||||||
# Check Book actions
|
# Check Book actions
|
||||||
group = _('Check Book')
|
group = _('Check book')
|
||||||
self.action_check_book = treg('debug.png', _('&Check book'), self.boss.check_requested, 'check-book', ('F7'), _('Check book for errors'))
|
self.action_check_book = treg('debug.png', _('&Check book'), self.boss.check_requested, 'check-book', ('F7'), _('Check book for errors'))
|
||||||
self.action_spell_check_book = treg('spell-check.png', _('Check &spelling'), self.boss.spell_check_requested, 'spell-check-book', ('Alt+F7'), _(
|
self.action_spell_check_book = treg('spell-check.png', _('Check &spelling'), self.boss.spell_check_requested, 'spell-check-book', ('Alt+F7'), _(
|
||||||
'Check book for spelling errors'))
|
'Check book for spelling errors'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user