diff --git a/Makefile b/Makefile index 76141fa079..4c09a911b2 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ PYTHON = python -all : gui2 translations resources pictureflow +all : plugins gui2 translations resources pictureflow + +plugins: + mkdir -p src/calibre/plugins clean : cd src/calibre/gui2 && ${PYTHON} make.py clean diff --git a/src/calibre/ebooks/lrf/web/profiles/dilbert.py b/src/calibre/ebooks/lrf/web/profiles/dilbert.py deleted file mode 100644 index d7a239ec87..0000000000 --- a/src/calibre/ebooks/lrf/web/profiles/dilbert.py +++ /dev/null @@ -1,37 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2008, Kovid Goyal ' - - -''' -Fetch Dilbert. -''' -import os - -from calibre.ebooks.lrf.web.profiles import DefaultProfile - -class Dilbert(DefaultProfile): - - title = 'Dilbert' - timefmt = ' [%d %b %Y]' - max_recursions = 2 - max_articles_per_feed = 6 - html_description = True - no_stylesheets = True - - def get_feeds(self): - return [ ('Dilbert', 'http://feeds.feedburner.com/tapestrydilbert') ] - - def get_article_url(self, item): - return item.find('enclosure')['url'] - - def build_index(self): - index = os.path.join(self.temp_dir, 'index.html') - articles = list(self.parse_feeds(require_url=False).values())[0] - res = '' - for item in articles: - res += '

%s

\n'%(item['title'], item['url']) - res = '

Dilbert

%s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/src/calibre/gui2/images/arrow-up.svg b/src/calibre/gui2/images/arrow-up.svg new file mode 100644 index 0000000000..403cf9e758 --- /dev/null +++ b/src/calibre/gui2/images/arrow-up.svg @@ -0,0 +1,1028 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/src/calibre/translations/__init__.py b/src/calibre/translations/__init__.py index 7dc22e548e..7b0ae0cd36 100644 --- a/src/calibre/translations/__init__.py +++ b/src/calibre/translations/__init__.py @@ -7,8 +7,15 @@ Manage translation of user visible strings. import sys, os, cStringIO, tempfile, subprocess, functools, tarfile, re check_call = functools.partial(subprocess.check_call, shell=True) -from calibre.translations.pygettext import main as pygettext -from calibre.translations.msgfmt import main as msgfmt +try: + from calibre.translations.pygettext import main as pygettext + from calibre.translations.msgfmt import main as msgfmt +except ImportError: + sys.path.insert(1, os.path.abspath('..')) + from calibre.translations.pygettext import main as pygettext + from calibre.translations.msgfmt import main as msgfmt + + TRANSLATIONS = [ 'sl', @@ -78,4 +85,4 @@ def main(args=sys.argv): return 0 if __name__ == '__main__': - sys.exit(main()) \ No newline at end of file + sys.exit(main())