mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge from trunk
This commit is contained in:
commit
7b61c80aa0
@ -373,13 +373,18 @@ class BrowseServer(object):
|
|||||||
script='toplevel();', main=main)
|
script='toplevel();', main=main)
|
||||||
|
|
||||||
def browse_sort_categories(self, items, sort):
|
def browse_sort_categories(self, items, sort):
|
||||||
if sort not in ('rating', 'name', 'popularity'):
|
def keyg(x):
|
||||||
sort = 'name'
|
x = getattr(x, 'sort', x.name)
|
||||||
items.sort(key=lambda x: sort_key(getattr(x, 'sort', x.name)))
|
if isinstance(x, unicode):
|
||||||
|
return sort_key(x)
|
||||||
|
return x
|
||||||
|
|
||||||
if sort == 'popularity':
|
if sort == 'popularity':
|
||||||
items.sort(key=operator.attrgetter('count'), reverse=True)
|
items.sort(key=operator.attrgetter('count'), reverse=True)
|
||||||
elif sort == 'rating':
|
elif sort == 'rating':
|
||||||
items.sort(key=operator.attrgetter('avg_rating'), reverse=True)
|
items.sort(key=operator.attrgetter('avg_rating'), reverse=True)
|
||||||
|
else:
|
||||||
|
items.sort(key=keyg)
|
||||||
return sort
|
return sort
|
||||||
|
|
||||||
def browse_category(self, category, sort):
|
def browse_category(self, category, sort):
|
||||||
|
@ -541,7 +541,9 @@ Use the options to remove headers and footers to mitigate this issue. If the hea
|
|||||||
removed from the text it can throw off the paragraph unwrapping.
|
removed from the text it can throw off the paragraph unwrapping.
|
||||||
|
|
||||||
Some limitations of PDF input is complex, multi-column, and image based documents are not supported.
|
Some limitations of PDF input is complex, multi-column, and image based documents are not supported.
|
||||||
Extraction of vector images and tables from within the document is also not supported.
|
Extraction of vector images and tables from within the document is also not supported. Some PDFs use special glyphs to
|
||||||
|
represent double ll or doubfle ff or fi,etc. Conversion of these may or may not work depending on jusy how they are
|
||||||
|
represented internally in the PDF.
|
||||||
|
|
||||||
Comic Book Collections
|
Comic Book Collections
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user