11-25-2014, 01:54 PM | #31 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
BTW, given the many updates, it'd be helpful if the plugin launcher files had version numbers in the comments section. Quote:
Anyway after grabbing the latest compatibility_utils.py version from Github the error disappeared. |
||
11-25-2014, 02:08 PM | #32 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Then I see the results, but they are not pushed to Sigil. Last edited by KevinH; 11-25-2014 at 03:12 PM. |
|
Advert | |
|
11-25-2014, 03:15 PM | #33 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi Toxaris,
The second modified launcher.py should have handled that error but I guess it did not. DiapDealer has said he needs other files from the new launcher as well to get anything to work with the Sigil 0.8.1 build. So I will put together a full set when I get home from work tonight and modify them to work with Sigil 0.8.1 so that you have something to continue development with while we wait for Sigil 0.8.2 to officially come out. Take care, KevinH Last edited by KevinH; 11-25-2014 at 04:30 PM. |
11-25-2014, 04:47 PM | #34 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Hi KevinH,
I installed all new files and didn't get any error messages. However, my test case still doesn't fully work. When I add and remove a font with bk.addfile() and bk.deletefile (using the code that I've already posted), the font is added and subsequently removed from the .opf file and the Book View Fonts folder, but when I unzip the saved ePub file, it's still in the Fonts folder. D. |
11-25-2014, 05:05 PM | #35 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi Doitsu,
I am confused. If you use bk.addfile to add a new file to the ebook and then use bk.deletefile to remove that same file, you should net to no change in the underlying epub? Or are you saying that a deletefile on some other file will not work after any addfile? Please post your full testcase so that I can recreate what you are seeing exactly. The only code you had posted previously was mixing addfile and deleteotherfile which is always a mistake. If the file has been added to the manifest with addfile, you should delete it with deletefile NOT deleteotherfile. Thanks, Kevin Quote:
Last edited by KevinH; 11-25-2014 at 05:10 PM. |
|
Advert | |
|
11-25-2014, 05:16 PM | #36 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Hi Kevin,
Quote:
Code:
bk.addfile('doitsu', binary_file, data, 'application/x-font-ttf') Code:
bk.deletefile('doitsu') D. |
|
11-25-2014, 05:56 PM | #37 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi Doitsu!
Yes that is a bug! I can now recreate this when trying to delete any file in the original ebook. It just appears to go away but is still there somehow. Unfortunately this bug is in the Sigil code base and not the launcher code so I can't fix this until the upcoming release, which should be soon but ... I have just now committed a fix for this to my tree so that it is available when user-none does the official Sigil 0.8.2 builds. With this change Sigil will actually do the "physical" removal as well as the "logical" removal of the ebook. There is no workaround I can do from my end. If you work on a Mac, I would be happy to build you a pre-release version of Sigil 0.8.2 so that you can continue to work. If Linux, I could probably get a Linux build done as well. Unfortunately, I do not own a Windows box and so could not make a build for you but perhaps DiapDealer would be willing to share his once he updates from my github tree to get this Sigil fix. Thanks ever so much for catching this bug before the release!!!!!! Take care, Kevin Quote:
|
|
11-25-2014, 06:04 PM | #38 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Hi Kevin,
Actually, all the credit goes to Toxaris who found the bug in the first place. Quote:
D. |
|
11-26-2014, 07:32 AM | #39 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
I will hold up the release of the plugin now and wait for Sigil 0.8.2 for testing. I might build Sigil myself, as I have a windows development machine with VS2010, but I haven't gotten around to reading the build instructions yet. |
|
11-28-2014, 07:54 PM | #40 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi Doitsu and Toxaris,
user-none has just released Sigil 0.8.2 which should now do what you need to get deletefile and your plugins going. Please let me know if you still run into any issues. Thanks, KevinH Last edited by KevinH; 11-29-2014 at 12:53 AM. |
11-29-2014, 04:07 AM | #41 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
@KevinH: I did a quick test and it appears that bk.deletefile() now works as expected; it's also now possible to display print() messages while the plugin is running, which is very helpful for displaying status messages while processing a large number of files.
Thanks for your hard work. You've made the plugin interface even more useful. |
11-29-2014, 10:21 AM | #42 |
Grand Sorcerer
Posts: 28,044
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Adding my thanks for the unbuffered output as well. That makes a big difference on the debugging side of things!
|
11-29-2014, 12:35 PM | #43 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
11-29-2014, 03:59 PM | #44 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
PunctuationSmarten
After installimg Sigil 8.1, I'm getting the following error from PunctuationSmarten.
Changes made to Text/East and West-Poems.htm <?xml version="1.0" encoding="UTF-8"?> <wrapper type="edit"> <result>success</result> <changes> <modified href="OEBPS/Text/East and West-Poems.htm" id="East_and_West-Poems.htm" media-type="application/xhtml+xml" /> </changes> <msg> Changes made to Text/East and West-Poems.htm </msg> </wrapper> |
11-29-2014, 04:32 PM | #45 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. Did you check the epub with epubcheck before you ran the plugin? 2. Did you install PunctuationSmarten_v0.1.0.zip? If you checked the epub with epubcheck (not FlightCrew) and installed PunctuationSmarten_v0.1.0.zip you'll need to attach an epub that generates this error. Last edited by Doitsu; 11-29-2014 at 04:34 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Loading Plugin in development | Sladd | Development | 6 | 06-17-2014 07:57 PM |
Question for plugin development gurus | DiapDealer | Plugins | 2 | 02-05-2012 12:33 AM |
DR800 Plugin development for DR800/DR1000 | yuri_b | iRex Developer's Corner | 0 | 09-18-2010 10:46 AM |
Device plugin development | reader42 | Plugins | 10 | 03-29-2010 01:39 PM |
Calibre plugin development - Newbie problems | minstrel | Plugins | 5 | 04-12-2009 01:44 PM |