This commit is contained in:
Kovid Goyal 2013-04-08 09:19:21 +05:30
parent f024af31b0
commit 5e28991c17
2 changed files with 11 additions and 5 deletions

View File

@ -43,8 +43,8 @@ sizes, adjust margins, etc. Every action performs only the minimum set of
changes needed for the desired effect.</p> changes needed for the desired effect.</p>
<p>You should use this tool as the last step in your ebook creation process.</p> <p>You should use this tool as the last step in your ebook creation process.</p>
{0}
<p>Note that polishing only works on files in the %s formats.</p> <p>Note that polishing only works on files in the %s formats.</p>\
''')%_(' or ').join('<b>%s</b>'%x for x in SUPPORTED), ''')%_(' or ').join('<b>%s</b>'%x for x in SUPPORTED),
'subset': _('''\ 'subset': _('''\
@ -69,7 +69,7 @@ text might not be covered by the subset font.</p>
'jacket': _('''\ 'jacket': _('''\
<p>Insert a "book jacket" page at the start of the book that contains <p>Insert a "book jacket" page at the start of the book that contains
all the book metadata such as title, tags, authors, series, comments, all the book metadata such as title, tags, authors, series, comments,
etc.</p>'''), etc. Any previous book jacket will be replaced.</p>'''),
'remove_jacket': _('''\ 'remove_jacket': _('''\
<p>Remove a previous inserted book jacket page.</p> <p>Remove a previous inserted book jacket page.</p>
@ -85,7 +85,7 @@ when single quotes at the start of contractions are involved.</p>
def hfix(name, raw): def hfix(name, raw):
if name == 'about': if name == 'about':
return raw return raw.format('')
raw = raw.replace('\n\n', '__XX__') raw = raw.replace('\n\n', '__XX__')
raw = raw.replace('\n', ' ') raw = raw.replace('\n', ' ')
raw = raw.replace('__XX__', '\n') raw = raw.replace('__XX__', '\n')

View File

@ -37,7 +37,13 @@ class Polish(QDialog): # {{{
self.setWindowTitle(title) self.setWindowTitle(title)
self.help_text = { self.help_text = {
'polish': _('<h3>About Polishing books</h3>%s')%HELP['about'], 'polish': _('<h3>About Polishing books</h3>%s')%HELP['about'].format(
_('''<p>If you have both EPUB and ORIGINAL_EPUB in your book,
then polishing will run on ORIGINAL_EPUB (the same for other
ORIGINAL_* formats). So if you
want Polishing to not run on the ORIGINAL_* format, delete the
ORIGINAL_* format before running it.</p>''')
),
'subset':_('<h3>Subsetting fonts</h3>%s')%HELP['subset'], 'subset':_('<h3>Subsetting fonts</h3>%s')%HELP['subset'],