01-26-2012, 03:16 AM | #106 |
Calibre Plugins Developer
Posts: 4,654
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Thx for the steer - did you mean os.path.expandvars()?
|
01-26-2012, 05:38 AM | #107 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, I just meant that the OP could add the sigil directory to the PATH environment variable on both his machines, the just use Sigil.exe as the executable in his calibre setup.
|
Advert | |
|
01-26-2012, 05:49 AM | #108 |
Calibre Plugins Developer
Posts: 4,654
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ahhh, that PATH... you had me scrambling into the python docs this morning...
I'll do some experimentation if I get time this weekend with os.path.expandvars since you unintentionally caused me to find that, provided it "works" then it sounds a better solution that useShell. |
01-26-2012, 05:56 AM | #109 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Apologies, I forget that windows users are not as used to manipulating PATH as linux ones.
|
01-26-2012, 06:01 AM | #110 |
Calibre Plugins Developer
Posts: 4,654
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
No probs, I took your uppercase as emphasis rather than twigging you meant the environment variable.
You are absolutely right that modifying the PATH variable is not something your average Windows user fiddles with. Though those of us doing development particularly in corporates with loads of applications/tools installed still end up battling with the stupid one-line text box Microsoft insist is all that is required to manage a variable that is equally stupidly constrained to an inadequate length... |
Advert | |
|
01-26-2012, 06:07 AM | #111 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Rather than manipulating PATH another alternative is to use symlinks, though I don't know what level of support windows has for those. I do vaguely recall that NTFS has them.
|
01-28-2012, 10:55 AM | #112 |
Calibre Plugins Developer
Posts: 4,654
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.5.2 Released
Changes in this release:
@kintrupf - this should let you do what you asked for. As I have the editing of configuration locked down so that double click opens the file chooser dialog, I had to add a new edit menu option on the right click menu to allow people to manually edit the paths. So if you choose you can replace "C:\Program Files" with "%ProgramFiles%" or "%ProgramW6432%" as appropriate for the particular 32/64-bit system/application. |
01-31-2012, 08:24 PM | #113 |
Connoisseur
Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
Disappearing Error?
When I opened Calibre after several days not on it I saw a notice of a new update to "Open With". When I installed it I got the following error:
Spoiler:
I don't know for sure what version of the plugin I had before, but when I opened Calibre again it had the latest version (1.5.2) I can't tell if I have a problem or not. |
02-01-2012, 04:51 AM | #114 |
Calibre Plugins Developer
Posts: 4,654
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@loximuthal - if you can't tell, I sure can't
If the plugin is on your context menu/toolbar and working - then you don't have a problem. If it isn't there (and you definitely have added it via Preferences -> Toolbars), try installing it again. If it still doesn't appear after restarting calibre, restart in debug mode and post the output of that. I have no idea what that error message means (it is not specific to this plugin) but perhaps there was some sort of issue when it tried to download the plugin update (maybe AV or something). |
02-01-2012, 08:21 AM | #115 |
Connoisseur
Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
Well, I still don't know. I tried uninstalling the plugin, restarting calibre, re-installing the plugin, restarting calibre again and then using the plugin. Through all of that I got no error messages. All good.
When I tried using the plugin it works fine for opening with Preview (opens the cover), Gimp (also opens the cover) and Reader (opens books in PDF format). However, when I select Sigil (for books with epub formats) I keep getting the same weird stuff. Sigil opens, but only shows "����". This happens for each book I try. Unfortunately, I don't know if this is new behavior, since I don't remember if I've used that particular choice before. I did try running in debug mode, and got this output: Spoiler:
I can still get a book into Sigil fairly easily, going directly to the directory with the epub file, but still. It would be nice if the plugin did what I wanted. [EDIT] OK. It would help if I actually looked at the plugin configuration. I had Sigil set to open the cover, so of course it didn't open the book. When I switch from "COVER" to "EPUB" all works as it should. Thanks for trying to help. Last edited by loximuthal; 02-01-2012 at 08:23 AM. Reason: found solution |
02-03-2012, 04:09 AM | #116 | |
Member
Posts: 20
Karma: 10
Join Date: Jan 2012
Location: Germany
Device: Energy Sistem eReader Pro (Boyue T62)
|
Quote:
BTW, since that works now, you may want alter the included config.py to use the %programfiles% variable by default. This will make the default configuration valid on many different language-versions of Windows. |
|
02-03-2012, 04:13 AM | #117 | |
Member
Posts: 20
Karma: 10
Join Date: Jan 2012
Location: Germany
Device: Energy Sistem eReader Pro (Boyue T62)
|
Quote:
However, when startet by the link Sigil could not find it's home directory, because the current directory was the directory where the link resides, and not the directory where the link points to. But meanwhile the new version of the plugin supports environment variables, and that works very well! |
|
02-04-2012, 11:04 PM | #118 |
Enthusiast
Posts: 35
Karma: 35544
Join Date: Jan 2012
Location: Northern Victoria, Australia
Device: Kobo
|
Thanks for a very useful plugin.
I don't know if I'm missing something, or even if it is possible, but I'd like to be able to open a .dox, .docx or .rtf file in Word, using the Open With plugin. This would be great for changing the doc and docx files to rtf that Calibre can then convert. Not sure if the MS proprietrary format makes this impossible, but I can Open my Adobe Acrobat 9.0 Pro by altering your AAcr., 10.0 file path and they are a greedy mob too. Am I missing something really simple?? - Probably. Dale |
02-27-2012, 10:26 PM | #119 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle DXg
|
how to open with "zip" file?
Hi, thanks for very cool plugin.
I have a lot of zip archive which has text file (HTML like but different format) and some of iamges. And I have viewer for this format. But in open with setting, there is no file format "zip". how to change "zip" file viewer? |
02-28-2012, 12:29 AM | #120 | |
Well trained by Cats
Posts: 30,002
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Note, this will always send ALL Zips to the external viewer(?) |
|
Tags |
conversion, kepubify |
|
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 |