String changes

This commit is contained in:
Kovid Goyal 2017-05-18 11:00:18 +05:30
parent 210a532e17
commit 4936c3de21
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 7 additions and 6 deletions

View File

@ -345,7 +345,7 @@ remove all non-breaking-space entities, or may include false positive matches re
:guilabel:`Replace entity indents with CSS indents` :guilabel:`Replace entity indents with CSS indents`
Some documents use a convention of defining text indents using non-breaking space entities. When this option is enabled calibre will Some documents use a convention of defining text indents using non-breaking space entities. When this option is enabled calibre will
attempt to detect this sort of formatting and convert them to a 3% text indent using css. attempt to detect this sort of formatting and convert them to a 3% text indent using CSS.
.. _search-replace: .. _search-replace:

View File

@ -380,7 +380,7 @@ OptionRecommendation(name='expand_css',
recommended_value=False, level=OptionRecommendation.LOW, recommended_value=False, level=OptionRecommendation.LOW,
help=_( help=_(
'By default, calibre will use the shorthand form for various' 'By default, calibre will use the shorthand form for various'
' css properties such as margin, padding, border, etc. This' ' CSS properties such as margin, padding, border, etc. This'
' option will cause it to use the full expanded form instead.' ' option will cause it to use the full expanded form instead.'
' Note that CSS is always expanded when generating EPUB files' ' Note that CSS is always expanded when generating EPUB files'
' with the output profile set to one of the Nook profiles' ' with the output profile set to one of the Nook profiles'

View File

@ -265,7 +265,7 @@
</widget> </widget>
<widget class="QWidget" name="tab_2"> <widget class="QWidget" name="tab_2">
<attribute name="title"> <attribute name="title">
<string>Layout</string> <string>&amp;Layout</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="1" column="1"> <item row="1" column="1">
@ -370,7 +370,7 @@
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>Extra CSS</string> <string>E&amp;xtra CSS</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0"> <item row="0" column="0">

View File

@ -1203,7 +1203,7 @@ not multiple and the destination field is multiple</string>
<item row="8" column="0"> <item row="8" column="0">
<widget class="QLabel" name="label_31"> <widget class="QLabel" name="label_31">
<property name="text"> <property name="text">
<string>Your test:</string> <string>Your &amp;test:</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -40,7 +40,7 @@ def show_font_face_rule_for_font_file(file_data, added_name, parent=None):
QApplication.clipboard().setText(rule) QApplication.clipboard().setText(rule)
QMessageBox.information(parent, _('Font file added'), _( QMessageBox.information(parent, _('Font file added'), _(
'The font file <b>{}</b> has been added. The text for the CSS @font-face rule for this file has been copied' 'The font file <b>{}</b> has been added. The text for the CSS @font-face rule for this file has been copied'
' to the clipboard. You should paste it into whichever css file you want to add this font to.').format(added_name)) ' to the clipboard. You should paste it into whichever CSS file you want to add this font to.').format(added_name))
class EmbeddingData(Dialog): class EmbeddingData(Dialog):
@ -345,6 +345,7 @@ class ManageFonts(Dialog):
def refresh(self): def refresh(self):
self.model.build() self.model.build()
if __name__ == '__main__': if __name__ == '__main__':
from calibre.gui2 import Application from calibre.gui2 import Application
app = Application([]) app = Application([])