Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2020, 10:51 AM   #346
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Sam Sahara View Post
It is known that the plugin does not work in some cases where an incompatibility occurs between some components and the operating system. You must use the "Open With" feature that has been added to calibre base. It is much easier to use.
The problem with that is that you cannot pass in options to the command. It would probably work if wrap in a batch file.
davidfor is offline   Reply With Quote
Old 07-07-2020, 12:09 PM   #347
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by davidfor View Post
The problem with that is that you cannot pass in options to the command. It would probably work if wrap in a batch file.
I pass a lot of options to the command and it works.
Sam Sahara is offline   Reply With Quote
Advert
Old 07-07-2020, 12:24 PM   #348
7dau253mrwry4spf
Banned
7dau253mrwry4spf began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by davidfor View Post
Can you run calibre in debug mode and try again and post the log? To do that, right-click the preferences button and choose the option there. Calibre will restart and display a message. Then try running kepubify. Afterwards, close calibre and the log will be displayed. Post the log or PM it to me and I'll have a look.
You have a PM.
7dau253mrwry4spf is offline   Reply With Quote
Old 07-08-2020, 11:24 PM   #349
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Sam Sahara View Post
I pass a lot of options to the command and it works.
How? I haven't needed to use the built-in Open With and it took me a little bit to find it (right-click the format in the details panel rather than the book in the list). But, I don't see any way to provide parameters to the selected program. Is there a configuration for it somewhere else?
davidfor is offline   Reply With Quote
Old 07-09-2020, 02:01 AM   #350
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by 7dau253mrwry4spf View Post
You have a PM.
The problem is actually covered in the help:
Quote:
Optional command line arguments that are to be passed along with the filename to the application. Multiple arguments should be comma separated. E.g. an application requiring command line switches of “-foo 100 –bar” on the command line should have “–foo 100,-bar” specified in this column (without quotes). Args specified here will be insert before the filename i.e. {Path to application} [args] {Path to book format or cover}
You need to put a comma in between each parameter, so it needs to look like:

Code:
--inplace,--hyphenate,--calibre
davidfor is offline   Reply With Quote
Advert
Old 09-17-2020, 08:48 PM   #351
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,541
Karma: 61120499
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is there any option in Open With to open the book path with an external program?
ownedbycats is offline   Reply With Quote
Old 09-17-2020, 08:55 PM   #352
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
'o' opens the books FOLDER
from there, you can use the OS context menu on any item
theducks is offline   Reply With Quote
Old 09-18-2020, 07:25 AM   #353
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Is there any option in Open With to open the book path with an external program?
If you mean by that you want to open the parent folder with a file manager other than the default one, you have two possible solutions:
  • Write a script (shell or python) that gets the dir path from the file path, and then opens the directory with your preferred program. In the plugin config window, add the path to this script to the Application path field.
  • Use the template function added by davidfor in the plugin. It allows you to define a template, and pass its output in place of the book path to whatever external program you want. Here is an example of a template that gets the parent directory path:

    Code:
    program: paths = formats_paths();
    fmt_path = re(paths, ',[A-Z0-9_]+:.*', '');
    path = list_item(fmt_path, 1, ':');
    dir_path = re(path, '(.+)[/\\].*', '\1')
    This is the best I can come up with. Maybe someone can come up with a simpler template.

Note that both approaches will not work for books with no formats. You must have at least one format.

The template approach has another problem, because the plugin passes an extra empty string, which will make your file manager open another instance (pointing to you home directory). I think this is a bug in the template feature.


@davidfor: As I understand, the purpose of the template feature is to pass the template output in place of the file path. If so, I think lines 178,179 in the file action.py should be modified to prevent the behavior described above:

from:

Code:
            app_args = SafeFormat().safe_format(app_args, mi, 'Open With template error', mi)
            self.launch_app(external_app_path, app_args, '', wrap_args=False)
to:

Code:
            path_to_file = SafeFormat().safe_format(app_args, mi, 'Open With template error', mi)
            self.launch_app(external_app_path, '', path_to_file, wrap_args=False)
capink is offline   Reply With Quote
Old 09-18-2020, 08:39 AM   #354
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,543
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ownedbycats View Post
Is there any option in Open With to open the book path with an external program?
Perhaps you could use the built in Open With, right click a format in Book Details, select Open XXXX with, and follow your nose.

Easiest way to use is a) via right click a format in Book Details, b) the View Specific format tool, or c) a shortcut, e.g. I have assigned Shift+S to EPUB Open with Sigil, Shift+W to DOCX Open with Word, Shift+Q to EPUB Open with Quicklook… etc.

BR

Last edited by BetterRed; 09-19-2020 at 07:50 AM.
BetterRed is online now   Reply With Quote
Old 10-19-2020, 08:46 AM   #355
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Note that the next release of calibre is no longer bundling pywin32 so you cant use win32com/win32process in the plugin anymore. To add to recent documents simply use

from calibre.gui2 import add_to_recent_docs
add_to_recent_docs(path_fo_file)

as for running subprocesses, there is no longer any issue with unicode paths and the python subprocess module, so just use that.
kovidgoyal is online now   Reply With Quote
Old 10-23-2020, 07:55 PM   #356
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,541
Karma: 61120499
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
If anyone is maintaining this:

This plugin stopped working entirely in the beta - see Kovid's post above. An Open With plugin that errors when trying to open a file isn't very useful Here's the error log:

Code:
calibre 5.3 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (1, 6, 0) && Clean Comments (0, 1, 0) && Comments Cleaner (1, 2, 1) && Count Pages (1, 10, 0) && Drop Search Results (1, 0, 10) && Embed Comic Metadata (1, 5, 0) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && Extract ISBN (1, 5, 0) && FanFicFare (3, 24, 5) && Fantastic Fiction (1, 4, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 8, 3) && Generate Cover (1, 5, 25) && Goodreads (1, 5, 1) && Import List (1, 5, 1) && Job Spy (1, 0, 187) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 8) && KoboTouchExtended (3, 4, 1) && Library Codes (1, 0, 47) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 85) && Open With (1, 5, 12) && Quality Check (1, 10, 1) && Reading List (1, 6, 17) && Save To Format (0, 0, 6) && SmartEject (2, 3, 0) && View Manager (1, 5, 8)
Traceback (most recent call last):
  File "calibre_plugins.open_with.action", line 198, in open_with
  File "calibre_plugins.open_with.action", line 223, in launch_app
ModuleNotFoundError: No module named 'win32com
Will be glad to to test any new versions.

Last edited by ownedbycats; 10-24-2020 at 01:04 AM.
ownedbycats is offline   Reply With Quote
Old 10-24-2020, 01:54 AM   #357
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
If anyone is maintaining this:

This plugin stopped working entirely in the beta - see Kovid's post above. An Open With plugin that errors when trying to open a file isn't very useful Here's the error log:

Code:
calibre 5.3 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (1, 6, 0) && Clean Comments (0, 1, 0) && Comments Cleaner (1, 2, 1) && Count Pages (1, 10, 0) && Drop Search Results (1, 0, 10) && Embed Comic Metadata (1, 5, 0) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && Extract ISBN (1, 5, 0) && FanFicFare (3, 24, 5) && Fantastic Fiction (1, 4, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 8, 3) && Generate Cover (1, 5, 25) && Goodreads (1, 5, 1) && Import List (1, 5, 1) && Job Spy (1, 0, 187) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 8) && KoboTouchExtended (3, 4, 1) && Library Codes (1, 0, 47) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 85) && Open With (1, 5, 12) && Quality Check (1, 10, 1) && Reading List (1, 6, 17) && Save To Format (0, 0, 6) && SmartEject (2, 3, 0) && View Manager (1, 5, 8)
Traceback (most recent call last):
  File "calibre_plugins.open_with.action", line 198, in open_with
  File "calibre_plugins.open_with.action", line 223, in launch_app
ModuleNotFoundError: No module named 'win32com
Will be glad to to test any new versions.
Yes, that is to be expected based on Kovid's earlier post. I'll look at it, but, I'm not sure when. If someone else wants to...
davidfor is offline   Reply With Quote
Old 10-24-2020, 02:15 AM   #358
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,541
Karma: 61120499
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I managed to get Calibre's built-in open-with set up with all my programs for the time being (sadly the icon_data garbage problem still exists in the beta, but I fixed the json). Though I keep pressing C to open the full-size cover in Honeyview and having that error pop up.
ownedbycats is offline   Reply With Quote
Old 10-30-2020, 07:17 AM   #359
jaad34
Junior Member
jaad34 began at the beginning.
 
jaad34's Avatar
 
Posts: 2
Karma: 10
Join Date: Oct 2020
Location: Somewhere in Spain
Device: iPad
Game over?

Plugin does not work on Caliber 5.4.1 64bits

The following error message appears: "ModuleNotFoundError: No module named 'Win32com' "

Thanks in advance.
jaad34 is offline   Reply With Quote
Old 10-30-2020, 07:47 AM   #360
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jaad34 View Post
Plugin does not work on Caliber 5.4.1 64bits

The following error message appears: "ModuleNotFoundError: No module named 'Win32com' "
I intend to fix this. But, I've been busy with other things and haven't had a chance to do so. I hope to have time in the next week.

If someone else wants to do it...
davidfor is offline   Reply With Quote
Reply

Tags
conversion, kepubify

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 433 04-01-2024 05:48 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM
Gui confusements. brewt Calibre 8 12-30-2008 12:16 PM
Reference Open eBook Forum: Open eBook Publication Structure. IMP. V1.0.1 14 September 2007 DaleDe IMP Books 0 09-14-2007 05:06 PM
iLiad GUI for the iLiad tribble iRex Developer's Corner 1 06-01-2007 02:29 PM


All times are GMT -4. The time now is 10:25 PM.


MobileRead.com is a privately owned, operated and funded community.