07-27-2014, 10:20 AM | #76 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Am I missing something on the debugging side of things? I can't get print commands to show up in the calibre-debug -g console (Windows). Nor can I get them to print to a console when launching ebook-edit as a stand-alone. The plugins are working, though. I'm sure I'm missing something obvious. There has to be a way to quickly debug without popping up Qt messageboxes everywhere, right?
|
07-27-2014, 01:24 PM | #77 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-debug --edit-book
|
07-27-2014, 03:53 PM | #78 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks a bunch!
|
07-27-2014, 04:21 PM | #79 | |
Grand Sorcerer
Posts: 6,234
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Spoiler:
And I only have an option: SortCss, which applies only to a current file. BTW, if the styles are defined as p.tx1 instead of .tx1 into the css file, there's an error too at the plugin. Last edited by Terisa de morgan; 07-27-2014 at 04:35 PM. |
|
07-27-2014, 09:09 PM | #80 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
07-28-2014, 12:49 AM | #81 | ||
Grand Sorcerer
Posts: 6,234
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Quote:
Spoiler:
|
||
07-28-2014, 03:50 AM | #82 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
I am working on a better sort methods. The first pass will be to sort those that can be sorted by selector and put them after all the ones that can't be sorted. Then, I'll look at something a little more intelligent. |
||
07-28-2014, 03:53 AM | #83 | ||
Grand Sorcerer
Posts: 6,234
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Quote:
|
||
08-01-2014, 04:38 PM | #84 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Just noticed that something isn't getting cleaned up when uninstalling editor plugins. I only noticed it when I changed one of my "Tool" class names in main.py and reinstalled the plugin. Same thing happens on a simple uninstall though, too.
When running calibre-debug --edit-book, I get warnings about those missing "Tool" names. like: Code:
Unknown action for toolbar u'plugins-bar': u'Diaps Editing ToolbagSpanDivEdittoolbar' Last edited by DiapDealer; 08-01-2014 at 05:46 PM. |
08-01-2014, 11:48 PM | #85 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those messages are harmless. Uninstalling does not remove the entries for the toolbar so that if you re-install they are still there, in the chosen location. The editor simply ignores missing actions.
|
08-03-2014, 11:02 AM | #86 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
This has made me think a little bit about plugins in the Editor.
I believe Editor plugins should really have their own management, from the Editor preferences. Not only does it allow you to handle the entire Editor workflow directly through the Editor, I know there are people who only use calibre for the editor and do not touch the library GUI at all. I don't think it makes sense to force them into the library so they can add plugins to the editor. Ideally, each standalone component of calibre should handle all its settings internally, rather than tying back to the library for some things -- that is why all the rest of Preferences is internal to the editor component already. Kovid, when you get a chance, can you separate this? |
08-03-2014, 11:08 AM | #87 | |
Well trained by Cats
Posts: 29,810
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
But, then Kovid is also inconsistent in that you don't see 'Editor' settings in the Main Preferences (A user was confused because they could not find the setting we were saying to change, which is why I mention it). Kovid, can we have Editor (and Viewer, to be consistent) preference setting Icons in the Miscellaneous ??? section of Preferences? Last edited by theducks; 08-03-2014 at 11:47 AM. Reason: was not a section |
|
08-03-2014, 11:15 AM | #88 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
I am an optimist -- perhaps it is simply not a priority but he would agree to get around to it when he gets a chance. I am not sure what the argument against it as a good thing would be, although I can see it not being very critical and perhaps being too much work ATM. I do think it should be all or nothing. Inconsistency . Last edited by eschwartz; 08-03-2014 at 11:17 AM. |
|
08-03-2014, 11:22 AM | #89 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@eschwartz: Patches welcome.
|
08-03-2014, 11:54 AM | #90 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I guess I just don't see the issue. You have to download and install all of calibre to use any of these addons, so why would it be such a hardship for someone to use the main gui to install these addons? It's just the one time (per plugin) and then you can go back to ignoring main program if you like.
It's no real skin off my nose either way, but it just seems sort of pointless to me to focus on plugin framework isolation when the various pieces (library, converter, viewer, editor) share way too many resource to ever be truly independent of each other anyway. Not to mention the inefficiency of maintaining separate plugin frameworks from a code-base perspective. The way I figure it: if you just want to just use some of calibre's features independently ... have at it. But when it comes time to extend those features with third party tools ... it's not that outrageous that we're expected to return to "home base" to do so. *shrug* |