01-02-2011, 04:24 AM | #181 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
|
01-02-2011, 04:25 AM | #182 | |
Wizard
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Thank you, THANK YOU, THANK YOU!
I was planning to do something like this for a long time. Out of desperation ;-) I have done some limited hacking in Python, but it is way too little experience to be comfortable with such a large project. I was a project manager for an interesting project a few years ago, and I thought that this would be a good opportunity to do some coding in Python. So I selected Python as a language of choice for Linux server part and for Windows client. Choosing Python was a great thing. The only problem was, that the upper management saw to that that I would ONLY do project management, and coding was left to my more fortunate coworkers ... I do some maintenance work, because none of those who did the coding are with the company any more, and I thank my $DEITY for inspiration to choose Python every time I have to change something. Quote:
|
|
Advert | |
|
01-02-2011, 07:46 AM | #183 | |
Zealot
Posts: 146
Karma: 2594
Join Date: May 2009
Device: Kindle PW,Sony 700, Sony 950 (Daily Edition),Nook Color,iPad
|
thanks that helped! Now I can look at a web site and see how the code is built, I changed below to look at all books not just the ebooks.
Quote:
|
|
01-02-2011, 08:41 AM | #184 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Excellent, glad you got it working. I haven't tried the links myself as I don't use B&N but if I did then like you I would scope the search to books and not just ebooks. It depends on the source of your books of course though - if you only had ebooks purchased from B&N then an ebook scope would make perfect sense
|
01-02-2011, 02:06 PM | #185 | |
Zealot
Posts: 146
Karma: 2594
Join Date: May 2009
Device: Kindle PW,Sony 700, Sony 950 (Daily Edition),Nook Color,iPad
|
Quote:
|
|
Advert | |
|
01-02-2011, 08:17 PM | #186 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
Making the "Open with" plugin work on a Mac
First, let me say, "Thank you" for writing the "Open With" plugin. I am trying to use the advantages of calibre to overcome the disadvantages of the Kindle Reader for my Mac (which, I wouldn't even need if it weren't for the drm issue) and I believe "Open With" will help me to do that.
I have tried to customize the script to work on my Mac and I fear that the fact that I am a long time user of MS-DOS/Windows (I only switched to a Mac a few months ago) is contributing to my befouling the code. Here is the latest version of what I have tried so far: from PyQt4.Qt import Qt ofep_open_with_menus = [('Kindle', 'AZW', 'MacintoshHD\/Applications\/Kindle.app', None, None, None)] I tried removing the "escape" backslashes, but to no avail. The good thing is that when I right-click, the "Open With" submenu appears and the default "Sigil" option presents itself. Now, if I could just get it to show "Kindle" (and then, of course, open the book with my Kindle desktop reader), I would be set. Any help you can provide will be greatly appreciated. Last edited by redynstruc; 01-02-2011 at 08:38 PM. |
01-02-2011, 10:02 PM | #187 | |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
[EDIT: I just realised that while the post has the correct tweak name, my manual editing of the readme.txt file was rubbish and no doubt what you copied from. Sorry for the inconvenience, new zip will be pushed to the post] You will need to restart Calibre to get the new menu displayed of course. I may do another version of the plugin in future so it does not require a restart, I've got the whole dynamic menu in Qt thing figured out now with the last plugin I did. Last edited by kiwidude; 01-03-2011 at 12:25 AM. |
|
01-03-2011, 08:12 PM | #188 | |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2010
Location: versailles, france
Device: cybook Opus
|
Quote:
Could you tell me how to do it.... my attempts all lead to "OSError:[Errno 2] No such file or directory" Thank you... |
|
01-03-2011, 08:22 PM | #189 | |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
One other point - did you consider using the "Open with" plugin instead? Not that it will solve this problem (you still need to configure a path for it too!) but it has a lot more features like a keyboard shortcut which you may find useful. You can find it here. |
|
01-03-2011, 08:40 PM | #190 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Search the Internet plugin search URLs
All,
I am in the process of creating a new version of the "Search the Internet" plugin. Oh god, not again you may say. Well this one removes the dependency on using the Tweaks dialog, so you will be able to make changes via a (hopefully slightly more user friendly) configuration dialog within Preferences->Plugins. Also it will mean that you won't have to restart Calibre every time you make a change to your menu items. In addition I am going to introduce the concept of an "Active" checkbox next to each menu item in the configuration dialog. My intent is that I will include a big long list of possible website menu items with icons etc already "pre-configured" in the plugin zip file. So all you have to do as a user is go into the configuration dialog and click the checkbox next to the ones you actually want to use in your menu, rather than reinventing the wheel if it wasn't one I personally included. You will still be able to add your own to this list if needed. Now to make this more useful to everybody I need a list of the website links people would want. Obviously I already have FantasticFiction, Google, Amazon and Wikipedia. Elsewhere on this thread is ISBN, B&N & GoodReads. Could those of you who have added their own search URLs please share them here so that I can add them to the plugin list? Copying the lines from your tweaks file would be ideal, and including the icon as an attachment if you have one is great if you have it. Thanks for your help - the more websites the better for all. As this next plugin version will not use the tweak at all any you have configured will be "lost" by default, so share them here to reduce your upgrade effort. Also if you have a website you would like to see but couldn't figure out the search syntax list that here too and I will see if I can include it. Thanks... Last edited by kiwidude; 01-03-2011 at 08:44 PM. |
01-03-2011, 10:14 PM | #191 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
01-03-2011, 10:46 PM | #192 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
You bet. There are buttons for Add, Delete, Move Up, Move Down, you can edit cells directly in the grid and the checkboxes for setting which menu items are the active ones.
|
01-04-2011, 07:00 AM | #193 | |
Zealot
Posts: 146
Karma: 2594
Join Date: May 2009
Device: Kindle PW,Sony 700, Sony 950 (Daily Edition),Nook Color,iPad
|
Quote:
('Sony for Author',None,'http://ebookstore.sony.com/search?keyword={author}', 'utf-8',None), ('Sony for Title',None,'http://ebookstore.sony.com/search?keyword={author}+{title}', 'utf-8',None), |
|
01-04-2011, 07:20 AM | #194 | |
Zealot
Posts: 146
Karma: 2594
Join Date: May 2009
Device: Kindle PW,Sony 700, Sony 950 (Daily Edition),Nook Color,iPad
|
Quote:
('NYT Book Review',None,'http://query.nytimes.com/search/sitesearch?query={author}+{title}&more=date_all',' utf-8',None), |
|
01-04-2011, 03:29 PM | #195 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2011
Device: Kindle Voyage
|
SearchTheInternet - LibraryThing, ISFDB, Amazon.co.uk
Quote:
('LibraryThing for Book', 'stip_librarything.bmp', 'http://www.librarything.com/search.php?search={title}+{author}', 'utf-8', _('Alt+L')), ('LibraryThing for Title', 'stip_librarything.bmp', 'http://www.librarything.com/search.php?search={title}', 'utf-8', None), ('LibraryThing for Author', 'stip_librarything.bmp', 'http://www.librarything.com/search.php?search={author}', 'utf-8', None), ('LibraryThing for ISBN', 'stip_librarything.bmp', 'http://www.librarything.com/search.php?search={isbn}', 'utf-8', None), The Internet Speculative Fiction Database (ISFDB) is a very good source for information on anything related to Science Fiction and Fantasy. It has less data than LT and only covers a subset of books but the data quality is often better. ('isfdb for Book', 'stip_isfdb.ico', 'http://www.isfdb.org/cgi-bin/edit/tp_search.cgi?TERM_1={title}&USE_1=title&OPERATOR_ 1=AND&TERM_2={author}&USE_2=author&OPERATOR_2=AND' , 'latin-1', None), ('isfdb for Title', 'stip_isfdb.ico', 'http://www.isfdb.org/cgi-bin/se.cgi?type=Fiction+Titles&arg={title}', 'latin-1', None), ('isfdb for Author', 'stip_isfdb.ico', 'http://www.isfdb.org/cgi-bin/se.cgi?type=Name&arg={author}', 'latin-1', None), I would also suggest you add Amazon.co.uk and possibly other localized Amazon stores as options. Amazon.co.uk has different (and sometimes better) covers than Amazon.com and the exact same search path (except replace .com with .co.uk) works fine. I know all these works in the current plugin, they're frequently used here especially Alt-L (LibraryThing title+author lookup). |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom external commands in the GUI | janvanmaar | Calibre | 18 | 11-28-2010 10:35 AM |
Calibre GUI behavior between machines | phenomshel | Calibre | 2 | 08-21-2010 06:28 PM |
Calibre 0.6.10 GUI crashes on startup | Wagenius | Calibre | 1 | 09-03-2009 01:53 AM |
--breadth-first option in calibre GUI | osmo79 | Calibre | 1 | 05-30-2009 11:45 AM |
Calibre GUI crash on convert | aapezzuto | Calibre | 1 | 08-02-2008 06:39 PM |