mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-04 21:15:24 -04:00
KG updates 0.7.4
This commit is contained in:
@@ -2,7 +2,7 @@ __license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
__appname__ = 'calibre'
|
||||
__version__ = '0.7.3'
|
||||
__version__ = '0.7.4'
|
||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||
|
||||
import re
|
||||
|
||||
@@ -84,7 +84,7 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
|
||||
OptionRecommendation(name='no_svg_cover', recommended_value=False,
|
||||
help=_('Do not use SVG for the book cover. Use this option if '
|
||||
'your EPUB is going to be used ona device that does not '
|
||||
'your EPUB is going to be used on a device that does not '
|
||||
'support SVG, like the iPhone or the JetBook Lite. '
|
||||
'Without this option, such devices will display the cover '
|
||||
'as a blank page.')
|
||||
|
||||
@@ -93,10 +93,16 @@ class CoverView(QWidget): # {{{
|
||||
self._current_pixmap_size = val
|
||||
|
||||
def do_layout(self):
|
||||
if self.rect().width() == 0 or self.rect().height() == 0:
|
||||
return
|
||||
pixmap = self.pixmap
|
||||
pwidth, pheight = pixmap.width(), pixmap.height()
|
||||
self.pwidth, self.pheight = fit_image(pwidth, pheight,
|
||||
try:
|
||||
self.pwidth, self.pheight = fit_image(pwidth, pheight,
|
||||
self.rect().width(), self.rect().height())[1:]
|
||||
except:
|
||||
self.pwidth, self.pheight = self.rect().width()-1, \
|
||||
self.rect().height()-1
|
||||
self.current_pixmap_size = QSize(self.pwidth, self.pheight)
|
||||
self.animation.setEndValue(self.current_pixmap_size)
|
||||
|
||||
@@ -120,7 +126,8 @@ class CoverView(QWidget): # {{{
|
||||
self.data = {'id':data.get('id', None)}
|
||||
if data.has_key('cover'):
|
||||
self.pixmap = QPixmap.fromImage(data.pop('cover'))
|
||||
if self.pixmap.isNull():
|
||||
if self.pixmap.isNull() or self.pixmap.width() < 5 or \
|
||||
self.pixmap.height() < 5:
|
||||
self.pixmap = self.default_pixmap
|
||||
else:
|
||||
self.pixmap = self.default_pixmap
|
||||
|
||||
@@ -205,8 +205,8 @@ class CoverFlowMixin(object):
|
||||
sm.select(index, sm.ClearAndSelect|sm.Rows)
|
||||
self.library_view.setCurrentIndex(index)
|
||||
except:
|
||||
pass
|
||||
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def sync_listview_to_cf(self, row):
|
||||
self.cf_last_updated_at = time.time()
|
||||
|
||||
@@ -919,8 +919,8 @@ class DeviceBooksModel(BooksModel): # {{{
|
||||
flags = QAbstractTableModel.flags(self, index)
|
||||
if index.isValid() and self.editable:
|
||||
cname = self.column_map[index.column()]
|
||||
if cname in ('title', 'authors') or (cname == 'collection' and \
|
||||
self.db.supports_collections()):
|
||||
if cname in ('title', 'authors') or \
|
||||
(cname == 'collections' and self.db.supports_collections()):
|
||||
flags |= Qt.ItemIsEditable
|
||||
return flags
|
||||
|
||||
|
||||
@@ -496,6 +496,7 @@ int PictureFlowPrivate::currentSlide() const
|
||||
|
||||
void PictureFlowPrivate::setCurrentSlide(int index)
|
||||
{
|
||||
animateTimer.stop();
|
||||
step = 0;
|
||||
centerIndex = qBound(index, 0, slideImages->count()-1);
|
||||
target = centerIndex;
|
||||
|
||||
@@ -467,8 +467,8 @@ class CustomColumns(object):
|
||||
books_ratings_link as bl,
|
||||
ratings as r
|
||||
WHERE {lt}.value={table}.id and bl.book={lt}.book and
|
||||
r.id = bl.rating and r.rating <> 0) avg_rating,
|
||||
value AS sort
|
||||
r.id = bl.rating and r.rating <> 0) avg_rating,
|
||||
value AS sort
|
||||
FROM {table};
|
||||
|
||||
CREATE VIEW tag_browser_filtered_{table} AS SELECT
|
||||
@@ -483,7 +483,7 @@ class CustomColumns(object):
|
||||
WHERE {lt}.value={table}.id AND bl.book={lt}.book AND
|
||||
r.id = bl.rating AND r.rating <> 0 AND
|
||||
books_list_filter(bl.book)) avg_rating,
|
||||
value AS sort
|
||||
value AS sort
|
||||
FROM {table};
|
||||
|
||||
'''.format(lt=lt, table=table),
|
||||
|
||||
+1147
-999
File diff suppressed because it is too large
Load Diff
+728
-602
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: calibre 0.7.3\n"
|
||||
"POT-Creation-Date: 2010-06-18 11:10+MDT\n"
|
||||
"PO-Revision-Date: 2010-06-18 11:10+MDT\n"
|
||||
"Project-Id-Version: calibre 0.7.4\n"
|
||||
"POT-Creation-Date: 2010-06-19 18:08+MDT\n"
|
||||
"PO-Revision-Date: 2010-06-19 18:08+MDT\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: LANGUAGE\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -422,55 +422,55 @@ msgstr ""
|
||||
msgid "Communicate with S60 phones."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:78
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:77
|
||||
msgid "Communicate with iBooks through iTunes."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:84
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:83
|
||||
msgid "Apple device detected, launching iTunes, please wait ..."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:227
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:230
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:226
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:229
|
||||
msgid "Updating device metadata listing..."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:301
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:338
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:842
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:876
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:300
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:337
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:841
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:875
|
||||
msgid "%d of %d"
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:345
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:881
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:344
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:880
|
||||
msgid "finished"
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:519
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:518
|
||||
msgid ""
|
||||
"Some books not found in iTunes database.\n"
|
||||
"Delete using the iBooks app.\n"
|
||||
"Click 'Show Details' for a list."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:742
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:741
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/usbms/deviceconfig.py:28
|
||||
msgid "settings for device drivers"
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:744
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:743
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/usbms/deviceconfig.py:30
|
||||
msgid "Ordered list of formats the device will accept"
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:813
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:812
|
||||
msgid ""
|
||||
"Some cover art could not be converted.\n"
|
||||
"Click 'Show Details' for a list."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:2168
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:2178
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/usbms/device.py:810
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/usbms/device.py:816
|
||||
#: /home/kovid/work/calibre/src/calibre/devices/usbms/device.py:844
|
||||
@@ -1269,7 +1269,7 @@ msgid "Normally, if the input file has no cover and you don't specify one, a def
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/ebooks/epub/output.py:86
|
||||
msgid "Do not use SVG for the book cover. Use this option if your EPUB is going to be used ona device that does not support SVG, like the iPhone or the JetBook Lite. Without this option, such devices will display the cover as a blank page."
|
||||
msgid "Do not use SVG for the book cover. Use this option if your EPUB is going to be used on a device that does not support SVG, like the iPhone or the JetBook Lite. Without this option, such devices will display the cover as a blank page."
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/ebooks/epub/output.py:94
|
||||
@@ -1547,10 +1547,10 @@ msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/__init__.py:385
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:34
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:201
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:202
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:207
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:208
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:209
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:214
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:215
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/convert/metadata_ui.py:184
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:99
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info_ui.py:67
|
||||
@@ -2886,7 +2886,7 @@ msgstr ""
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:22
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:44
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:53
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:302
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:309
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:114
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:115
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:116
|
||||
@@ -2931,7 +2931,7 @@ msgstr ""
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:301
|
||||
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:308
|
||||
msgid "Click to open Book Details window"
|
||||
msgstr ""
|
||||
|
||||
|
||||
+1184
-1018
File diff suppressed because it is too large
Load Diff
+726
-585
File diff suppressed because it is too large
Load Diff
+726
-585
File diff suppressed because it is too large
Load Diff
+1140
-998
File diff suppressed because it is too large
Load Diff
+1209
-1032
File diff suppressed because it is too large
Load Diff
+1139
-997
File diff suppressed because it is too large
Load Diff
+1139
-997
File diff suppressed because it is too large
Load Diff
+1141
-999
File diff suppressed because it is too large
Load Diff
+1145
-1000
File diff suppressed because it is too large
Load Diff
+1144
-993
File diff suppressed because it is too large
Load Diff
+711
-582
File diff suppressed because it is too large
Load Diff
+1171
-1005
File diff suppressed because it is too large
Load Diff
+1140
-998
File diff suppressed because it is too large
Load Diff
+727
-584
File diff suppressed because it is too large
Load Diff
+726
-585
File diff suppressed because it is too large
Load Diff
+1139
-997
File diff suppressed because it is too large
Load Diff
+728
-602
File diff suppressed because it is too large
Load Diff
+1164
-998
File diff suppressed because it is too large
Load Diff
+1164
-998
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user