mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
KG changes
This commit is contained in:
commit
bb8985c6d5
@ -1013,12 +1013,14 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
spanTag = Tag(ka_soup, 'span')
|
spanTag = Tag(ka_soup, 'span')
|
||||||
spanTag['style'] = 'font-weight:bold'
|
spanTag['style'] = 'font-weight:bold'
|
||||||
if bookmark.book_format == 'pdf':
|
if bookmark.book_format == 'pdf':
|
||||||
spanTag.insert(0,NavigableString("%s<br />Last Page Read: %d (%d%%)" % \
|
spanTag.insert(0,NavigableString(
|
||||||
|
_("%s<br />Last Page Read: %d (%d%%)") % \
|
||||||
(strftime(u'%x', timestamp.timetuple()),
|
(strftime(u'%x', timestamp.timetuple()),
|
||||||
last_read_location,
|
last_read_location,
|
||||||
percent_read)))
|
percent_read)))
|
||||||
else:
|
else:
|
||||||
spanTag.insert(0,NavigableString("%s<br />Last Page Read: Location %d (%d%%)" % \
|
spanTag.insert(0,NavigableString(
|
||||||
|
_("%s<br />Last Page Read: Location %d (%d%%)") % \
|
||||||
(strftime(u'%x', timestamp.timetuple()),
|
(strftime(u'%x', timestamp.timetuple()),
|
||||||
last_read_location,
|
last_read_location,
|
||||||
percent_read)))
|
percent_read)))
|
||||||
@ -1036,7 +1038,8 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
# Italicize highlighted text
|
# Italicize highlighted text
|
||||||
for location in sorted(user_notes):
|
for location in sorted(user_notes):
|
||||||
if user_notes[location]['text']:
|
if user_notes[location]['text']:
|
||||||
annotations.append('<b>Location %d • %s</b><br />%s<br />' % \
|
annotations.append(
|
||||||
|
_('<b>Location %d • %s</b><br />%s<br />') % \
|
||||||
(user_notes[location]['displayed_location'],
|
(user_notes[location]['displayed_location'],
|
||||||
user_notes[location]['type'],
|
user_notes[location]['type'],
|
||||||
user_notes[location]['text'] if \
|
user_notes[location]['text'] if \
|
||||||
@ -1044,11 +1047,13 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
'<i>%s</i>' % user_notes[location]['text']))
|
'<i>%s</i>' % user_notes[location]['text']))
|
||||||
else:
|
else:
|
||||||
if bookmark.book_format == 'pdf':
|
if bookmark.book_format == 'pdf':
|
||||||
annotations.append('<b>Page %d • %s</b><br />' % \
|
annotations.append(
|
||||||
|
_('<b>Page %d • %s</b><br />') % \
|
||||||
(user_notes[location]['displayed_location'],
|
(user_notes[location]['displayed_location'],
|
||||||
user_notes[location]['type']))
|
user_notes[location]['type']))
|
||||||
else:
|
else:
|
||||||
annotations.append('<b>Location %d • %s</b><br />' % \
|
annotations.append(
|
||||||
|
_('<b>Location %d • %s</b><br />') % \
|
||||||
(user_notes[location]['displayed_location'],
|
(user_notes[location]['displayed_location'],
|
||||||
user_notes[location]['type']))
|
user_notes[location]['type']))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user