mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
74d8de937b
commit
6608c79f2a
@ -11,7 +11,6 @@ class AssociatedPress(BasicNewsRecipe):
|
|||||||
language = 'en'
|
language = 'en'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
max_articles_per_feed = 15
|
max_articles_per_feed = 15
|
||||||
html2lrf_options = ['--force-page-break-before-tag="chapter"']
|
|
||||||
|
|
||||||
|
|
||||||
preprocess_regexps = [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
|
preprocess_regexps = [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
|
||||||
|
@ -77,7 +77,7 @@ def get_google_data():
|
|||||||
'path_map_location':'/var/www/status.calibre-ebook.com/googlepaths',
|
'path_map_location':'/var/www/status.calibre-ebook.com/googlepaths',
|
||||||
# If you change this remember to change it in the
|
# If you change this remember to change it in the
|
||||||
# status.calibre-ebook.com server as well
|
# status.calibre-ebook.com server as well
|
||||||
'project':'calibre-ebook-ii'
|
'project':'calibre-ebook'
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_sourceforge_data():
|
def get_sourceforge_data():
|
||||||
|
@ -5,13 +5,18 @@
|
|||||||
Copyright 2011, Kovid Goyal <kovid@kovidgoyal.net>
|
Copyright 2011, Kovid Goyal <kovid@kovidgoyal.net>
|
||||||
Released under the GPLv3 License
|
Released under the GPLv3 License
|
||||||
Based on code originally written by Peter Sorotkin
|
Based on code originally written by Peter Sorotkin
|
||||||
(http://code.google.com/p/epub-revision/source/browse/trunk/src/samples/cfi/epubcfi.js)
|
http://code.google.com/p/epub-revision/source/browse/trunk/src/samples/cfi/epubcfi.js
|
||||||
|
|
||||||
Improvements with respect to that code:
|
Improvements with respect to that code:
|
||||||
1. Works on all browsers (WebKit, Firefox and IE >= 8)
|
1. Works on all browsers (WebKit, Firefox and IE >= 8)
|
||||||
2. Works for elements that are scrollable (i.e. have their own scrollbars)
|
2. Works for content in elements that are scrollable (i.e. have their own scrollbars)
|
||||||
|
3. Much more comprehensive testing/error handling
|
||||||
|
4. Properly encodes/decodes assertions
|
||||||
|
|
||||||
To check if this script is compatible with the current browser, call
|
To check if this script is compatible with the current browser, call
|
||||||
window.cfi.is_compatible() it will throw an exception if not compatible.
|
window.cfi.is_compatible() it will throw an exception if not compatible.
|
||||||
|
|
||||||
|
Tested on: Firefox 9, IE 9, Chromium 16, Qt WebKit 2.1
|
||||||
###
|
###
|
||||||
|
|
||||||
log = (error) -> # {{{
|
log = (error) -> # {{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user