Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2017, 06:10 PM   #76
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by explorabeth View Post
Does this plug in save a copy of all jpegs and a folder in the local temp folder?
I've had a great semester using this so far, but now i have 300,000 jpegs in my temp folder.
No. Not that I know of. Not unless something crashes, anyway. The temp folders that are created to build the epub are automatically deleted after a successful plugin run. It certainly doesn't store any files in the root of the Temp folder.

I just verified that the temp folder this plugin creates gets deleted on my machines after a successful run.

Sigil itself will also leave a temp folder behind if there's a crash. But if you're not experiencing any crashes, then Sigil (and this plugin) should definitely be cleaning up their own temp folders after successful runs.

I can't vouch for all Sigil plugins, though. Temp folders that plugin devs create manually with their plugins won't clean themselves up. They have to make sure to clean up before returning control to Sigil. Perhaps you use other image-related plugins that are leaving strays behind?

Last edited by DiapDealer; 07-15-2017 at 08:08 AM.
DiapDealer is offline   Reply With Quote
Old 07-20-2017, 07:05 PM   #77
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Released version 0.2.4. Please let me know if I broke anything in the process.
  • Update mammoth/cobble modules to latest upstream
  • Tweak mammoth to create a "title" attribute for images if the title property is defined in the docx
  • Remove extraneous parsimonious module
DiapDealer is offline   Reply With Quote
Advert
Old 07-20-2017, 07:54 PM   #78
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,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
  • Remove extraneous parsimonious module
Meany. BTW it just worked fine on 7 Docxies

BR
BetterRed is online now   Reply With Quote
Old 07-20-2017, 08:28 PM   #79
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
Meany. BTW it just worked fine on 7 Docxies

BR
For the life of me, I can't figure out why I'd included it in the first place! I could have sworn one of the other modules was dependent on it when I first created the plugin, but nothing needs it now. I'm beginning to suspect nothing ever did--in this plugin, anyway. I'm sure Parsimonious is a wonderful module in its own right, though.

Thanks for testing the plugin and getting back.
DiapDealer is offline   Reply With Quote
Old 03-03-2018, 02:03 PM   #80
gingerbeardman
Zealot
gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.
 
gingerbeardman's Avatar
 
Posts: 129
Karma: 1001024
Join Date: Apr 2010
Location: Cornwall, UK
Device: Various Sony Readers, Kobo Touch Edition, iPhone
Quote:
Originally Posted by DiapDealer View Post
One thing I might be willing to do is to have the plugin (after the conversion is complete) automatically insert Sigil split markers in front of tags with certain user designatable attributes (hx tags of class "xxx" or just hx for that matter). Would that be useful to anyone?
This would be really useful. I have 40 docx (one per short story) and each is split into pages as you might expect. I need to find a sane way of processing them all.
gingerbeardman is offline   Reply With Quote
Advert
Old 06-20-2018, 08:11 AM   #81
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Hmm, I have used this excellent plugin every now and then for some years (it's my favorit when converting docx to epub, albeit I haven't done many). It has always worked but now I tried to import a docx I just got from a friend.

I have searched but not found anything about this.


TypeError: _read_image() missing 1 required positional argument: 'title_text'
Error: _read_image() missing 1 required positional argument: 'title_text'

(I'm using libreoffice in case there is a difference if editing is needed. I do believe the docx itself was created by word.)
patrik is offline   Reply With Quote
Old 06-20-2018, 10:20 AM   #82
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If it was a Word docx document that you converted to LibreOffice docx, there may be some discrepancies. Try saving the docx (after backing it up of course) as a LibreOffice docx document -- meaning don't try to preserve the Word formatting. Also look at the properties of all images in the document. Make sure the title_text attribute is filled.

I'll look into seeing how that attribute gets filled across the different WP applications and see if there's a way to avoid the error when it's missing.

Looks like it probably has something to do with the changes to the last version of the plugin (v0.2.4). If that's the case, you could always try v0.2.3 and see if the issue goes away. That would actually help me narrow it down.

Last edited by DiapDealer; 06-20-2018 at 10:25 AM.
DiapDealer is offline   Reply With Quote
Old 06-20-2018, 10:36 AM   #83
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
I have tried with the original document (which I'm guessing was created with Word) and just opening it and re-saving it (as docx) from libreoffice. No difference.

Not sure how to find and enter a value for "title_text". I can't find anything with that name in libreoffice.

Checking properties for all images, all had an entry for "Name" (which I would guess it the title?). All had empty fields for "Alternative (text only)". I entered values for all those , no difference.

(I could add it to Calibre and convert to epub, if that gives any information?)

When saving it as an odt-file, I could use the plugin ODTImport and import it.)

Thanks,
patrik is offline   Reply With Quote
Old 06-20-2018, 11:05 AM   #84
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Did you try v0.2.3 of the plugin to see if it made a difference. I may have added that to my post after you'd seen it.
DiapDealer is offline   Reply With Quote
Old 06-20-2018, 11:24 AM   #85
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Yes, with 0.2.3 it worked! (I was using 0.2.4.)
patrik is offline   Reply With Quote
Old 06-20-2018, 11:33 AM   #86
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks for checking. That will give me a great idea of where to start looking to fix the v0.2.4 version!
DiapDealer is offline   Reply With Quote
Old 06-20-2018, 11:38 AM   #87
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Please let me know if you want me to test anything.

Thanks.
patrik is offline   Reply With Quote
Old 06-22-2018, 07:34 AM   #88
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Hmm, I noticed several of the images in the docx file was not transfered to the epub, some was.
patrik is offline   Reply With Quote
Old 06-22-2018, 08:13 AM   #89
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Yeah, I can tell by the errors/code that something is rare-ish about some of the pictures in your docx. I think some of them must be stored as binary image data or something.

Can you get me a copy of the document without violating copyright? Even if you have to strip out the text and leave some of the problematic images, it would probably be helpful.

Just make sure you don't post copyrighted material to MobileRead, please.
DiapDealer is offline   Reply With Quote
Old 06-22-2018, 11:56 AM   #90
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Mammoth doesn't officially support the conversion of WMF/EMF graphics in docx documents. The images that are being skipped when using this plugin are, in fact, EMF graphics. So there will likely be no "fix" for this (though I will fix the error received in v0.2.4).

There's some code that might be able to be used to convert the EMF graphics to something usable, but it would never work on all of the supported platforms. So I probably won't pursue it.

I'll add a notice to the first post concerning the unsuitability of WMF/EMF graphics for use with this plugin.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 27 01-16-2023 01:25 AM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 187 07-04-2022 10:11 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 05:38 AM.


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