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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2016, 03:08 PM   #16
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 674
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by DiapDealer View Post
My plan is to leave it entirely up to the user through Mammoth's style mappings and the users's own css templates.

I'm not really envisioning this plugin being used by user A to convert user B, C, D, and E's docx files automagically. I envision it being used by a writer/user who's adapted a standard for styling all their docx documents. That way, they create a custom Mammoth style-map (or a few) and an associated stylesheet. Once they have that in place, they can focus on creating their Word/LibreOffice documents. The style-map will take care of mapping all standard and custom docx styles/headings to specific html/class-names (with associated css).
Sounds reasonable to me. That approach is what we do, using writer2latex.jar, though of course in the case of converting user B, C, D, and E's files, I have to re-style them with our (standardized) custom styles. Also, all direct formatting for bold, italic, etc. within a paragraph is converted to custom character styles, so instead of getting <b> and </b>, we get a <span class="bold"> instead. (not necessary, but it makes it easier to work on the epub down the line.)

Quote:
In other words ... documents will be created that conform with a pre-existing style-map/css, rather than creating a style-map/css to accommodate each particular document (though the latter is still doable provided the user doesn't mind the extra work).
Indeed. Though the former is much easier than the latter, so that's the way I'd go.

"Begin with the end in mind." Although it's been my experience that talented authors are not necessarily also talented book designers, no matter what many of them assume.
st_albert is offline   Reply With Quote
Old 05-21-2016, 05:07 PM   #17
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by st_albert View Post
Although it's been my experience that talented authors are not necessarily also talented book designers, no matter what many of them assume.
Oh, I've no doubt.
But hopefully a tiny portion of the smart ones will consult a geek at some point along the way, in order to get set straight!
DiapDealer is offline   Reply With Quote
Advert
Old 05-31-2016, 04:02 PM   #18
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Updated to version 0.2.0.

Big overhaul. Added a gui to allow the selection of custom style maps and custom css files.
An example of a style map (as well as a sample docx and css file file it will work with) are in the samples.zip attached to the first post. More info on writing custom style maps can be found in the "Writing Style maps" section of Mammoth's README.

EDIT: Also got tired of trying to keep everything compatible with Python 2 and Python 3, so this plugin is now Python 3 only.

Last edited by DiapDealer; 05-31-2016 at 04:15 PM.
DiapDealer is offline   Reply With Quote
Old 05-31-2016, 06:49 PM   #19
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Bumped to version 0.2.1.

Mostly cosmetic changes, but recommended to update to latest.
DiapDealer is offline   Reply With Quote
Old 06-02-2016, 12:08 PM   #20
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There's a few, small spec-compliancy issues my plugin is introducing when choosing to import as an EPUB3. I hope to have this fixed in version 0.2.2
DiapDealer is offline   Reply With Quote
Advert
Old 06-02-2016, 06:13 PM   #21
Auramazda
Member
Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.
 
Posts: 16
Karma: 1422
Join Date: Mar 2016
Device: none
Great plugin, I used it for a pair of books and was almost perfect. There will be also and export docx?
Auramazda is offline   Reply With Quote
Old 06-03-2016, 08:16 AM   #22
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Auramazda View Post
There will be also and export docx?
I hadn't really thought about it, to tell the truth. I figured turning it into an epub would be the last step of a finished document. Going the other way is never going to result in the same docx document that one started with, though. Would there be any real advantage to working back and forth like that? With new "baseline" documents being created both ways (each import and export)?

Last edited by DiapDealer; 06-03-2016 at 09:27 AM.
DiapDealer is offline   Reply With Quote
Old 06-03-2016, 02:20 PM   #23
Auramazda
Member
Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.
 
Posts: 16
Karma: 1422
Join Date: Mar 2016
Device: none
It was just for curiosity, but maybe think that you recive a epub from a third part and you want to create a pdf and you need editing it in a word contest then it's usefull
Auramazda is offline   Reply With Quote
Old 06-03-2016, 03:19 PM   #24
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,255
Karma: 83049305
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If it isn't a big enough need to inspire a Sigil plugin, do note that calibre already supports DOCX as a Conversion Input/Output. So you could always use calibre to convert to DOCX.

(Granted that it could replace this plugin too, except it is nice to have an alternative that doesn't require yet more software. Still, a DOCX Export plugin doesn't seem nearly as useful, so who's going to make it? At a certain point, we are getting beyond the purview of Sigil.)
eschwartz is offline   Reply With Quote
Old 06-03-2016, 06:43 PM   #25
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,497
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Auramazda View Post
It was just for curiosity, but maybe think that you recive a epub from a third part and you want to create a pdf and you need editing it in a word contest then it's usefull
You could also import an ePUB (version 2) directly into Word with my add-in.
Toxaris is offline   Reply With Quote
Old 06-03-2016, 07:38 PM   #26
BetterRed
null operator
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: 12,187
Karma: 10633638
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Auramazda View Post
There will be also and export docx?
I occasionally need to convert EPUB to something Word can open.

In most instances converting the EPUB to RTF with calibre gives me a 'better' result than converting EPUB to DOCX with calibre or Toxaris' EPUBTools. Of course my 'better' is inevitably another person's 'worst'. Sometimes, especially if the EPUB is chock full of redundant, superfluous XHTML tags, I convert to plain or markup text and import that into Word.

An important factor in my 'better' is consistency, whilst the EPUB->DOCX converters are sometimes a bit better, they're often a lot worse. Eliminating the consistent idiosyncrasies of EPUB->RTF conversions is less effort overall via some simple macros.

I do EPUB->RTF calibre conversions via a script.

I very much doubt I would use a DOCX output plugin in Sigil.

BR
BetterRed is offline   Reply With Quote
Old 06-05-2016, 02:49 PM   #27
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DiapDealer View Post
There's a few, small spec-compliancy issues my plugin is introducing when choosing to import as an EPUB3. I hope to have this fixed in version 0.2.2
Released v0.2.2 to correct these issues.
DiapDealer is offline   Reply With Quote
Old 08-13-2016, 05:39 PM   #28
Auramazda
Member
Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.Auramazda is no ebook tyro.
 
Posts: 16
Karma: 1422
Join Date: Mar 2016
Device: none
DiapDealer you don't know how much I love this plugin! I imported the romance of the three kindom and was starting editing when I find that he put all the note in a separate chapter and create all the link, 388 double link that I dont need to edit, cut and paste! Just some minor aesthetic change and was perfect.
Auramazda is offline   Reply With Quote
Old 08-13-2016, 06:04 PM   #29
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks! I'm glad it's useful to you.

Last edited by DiapDealer; 08-13-2016 at 06:06 PM.
DiapDealer is offline   Reply With Quote
Old 03-24-2017, 04:15 PM   #30
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: 19,635
Karma: 100081276
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Released version 0.2.3. Mostly cosmetic changes (PyQt5 where possible), but also integrated some upstream changes to the mammoth module. Please let me know if you run into any problems.
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 08:27 AM.


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