diff --git a/src/calibre/devices/kindle/driver.py b/src/calibre/devices/kindle/driver.py index c739f9572b..1c84c42e90 100644 --- a/src/calibre/devices/kindle/driver.py +++ b/src/calibre/devices/kindle/driver.py @@ -214,13 +214,13 @@ class KINDLE(USBMS): spanTag = Tag(ka_soup, 'span') spanTag['style'] = 'font-weight:bold' if bookmark.book_format == 'pdf': - spanTag.insert(0,NavigableString( + spanTag.insert(0,BeautifulSoup( _("%(time)s
Last page read: %(loc)d (%(pr)d%%)") % dict( time=strftime(u'%x', timestamp.timetuple()), loc=last_read_location, pr=percent_read))) else: - spanTag.insert(0,NavigableString( + spanTag.insert(0,BeautifulSoup( _("%(time)s
Last page read: Location %(loc)d (%(pr)d%%)") % dict( time=strftime(u'%x', timestamp.timetuple()), loc=last_read_location, @@ -259,7 +259,7 @@ class KINDLE(USBMS): typ=user_notes[location]['type'])) for annotation in annotations: - divTag.insert(dtc, annotation) + divTag.insert(dtc, BeautifulSoup(annotation)) dtc += 1 ka_soup.insert(0,divTag) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 2c1f853181..629f1bd755 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -76,7 +76,7 @@ class KOBO(USBMS): dbversion = 0 fwversion = (0,0,0) - supported_dbversion = 146 + supported_dbversion = 147 has_kepubs = False supported_platforms = ['windows', 'osx', 'linux'] @@ -1201,13 +1201,13 @@ class KOBO(USBMS): spanTag = Tag(ka_soup, 'span') spanTag['style'] = 'font-weight:normal' if bookmark.book_format == 'epub': - spanTag.insert(0,NavigableString( + spanTag.insert(0,BeautifulSoup( _("
Book last read: %(time)s
Percentage read: %(pr)d%%
") % dict( time=last_read, # loc=last_read_location, pr=percent_read))) else: - spanTag.insert(0,NavigableString( + spanTag.insert(0,BeautifulSoup( _("
Book last read: %(time)s
Percentage read: %(pr)d%%
") % dict( time=last_read, # loc=last_read_location, @@ -1270,7 +1270,7 @@ class KOBO(USBMS): annotation=user_notes[location]['annotation'])) for annotation in annotations: - divTag.insert(dtc, annotation) + divTag.insert(dtc, BeautifulSoup(annotation)) dtc += 1 ka_soup.insert(0,divTag) @@ -1322,7 +1322,7 @@ class KOBOTOUCH(KOBO): ' Based on the existing Kobo driver by %s.') % KOBO.author # icon = I('devices/kobotouch.jpg') - supported_dbversion = 146 + supported_dbversion = 147 min_supported_dbversion = 53 min_dbversion_series = 65 min_dbversion_externalid = 65 @@ -1334,7 +1334,7 @@ class KOBOTOUCH(KOBO): # Starting with firmware version 3.19.x, the last number appears to be is a # build number. A number will be recorded here but it can be safely ignored # when testing the firmware version. - max_supported_fwversion = (4, 8, 11073) + max_supported_fwversion = (4, 9, 11314) # The following document firwmare versions where new function or devices were added. # Not all are used, but this feels a good place to record it. min_fwversion_shelves = (2, 0, 0)