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 03-29-2019, 10:43 AM   #121
elenderg
Member
elenderg began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2015
Location: Altamira,PA - Brazil
Device: Kindle PaperWhite 3 White (2015) WiFi
Would you be able to make mammoth recognize ruby text?

Warnings/errors from Mammoth conversion:
Message(type='warning', message='An unrecognised element was ignored: w:ruby')
elenderg is offline   Reply With Quote
Old 03-29-2019, 11:14 AM   #122
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That would probably be better tackled upstream at Mammoth itself, I think. A tweak here, or there doesn't trouble me, but I have no plans to add major feature updates to the version of Mammoth I maintain for this plugin. That would make it too difficult for me pull in updates from upstream.
DiapDealer is offline   Reply With Quote
Old 04-12-2019, 02:07 AM   #123
najgori
Klak
najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.
 
najgori's Avatar
 
Posts: 156
Karma: 148812
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
is there a reason why beckys edit is not part of current plugin version?
najgori is offline   Reply With Quote
Old 04-12-2019, 05:58 AM   #124
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by najgori View Post
is there a reason why beckys edit is not part of current plugin version?
Yes there is. It's just not a very interesting or convincing reason.
DiapDealer is offline   Reply With Quote
Old 04-12-2019, 07:33 AM   #125
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't have the first post updated yet, but the new version (with Becky's fix) is available on github.

https://github.com/dougmassay/docxim...eleases/latest
DiapDealer is offline   Reply With Quote
Old 04-12-2019, 07:56 AM   #126
najgori
Klak
najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.
 
najgori's Avatar
 
Posts: 156
Karma: 148812
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
"it's in your reach..." (relevant placebo song)
najgori is offline   Reply With Quote
Old 07-03-2019, 08:44 AM   #127
No027
Junior Member
No027 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2019
Device: none
Is there any plan to add an option to import documents not as a book but as a section (or importing after adding a blank html) in a file? Might help with compiling separate documents to one ebook
No027 is offline   Reply With Quote
Old 07-03-2019, 09:09 AM   #128
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No there's not. The plugin is designed as an Input Plugin. Which by definition results in a brand-new epub each time it's run. I have no plans to change it into an Edit plugin. Nor to support the combination of multiple docx documents into one epub.
DiapDealer is offline   Reply With Quote
Old 06-30-2020, 02:36 PM   #129
dcsj
Junior Member
dcsj began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Is this the appropriate place to ask questions about how the import works? I am testing with a few small files to understand the process.

The import picked up all my header styles, also bold and italic, but it didn't pick up Book Title or Subtitle. Also, I had some block text that I'd like to come out as blockquote in Sigil, I am assuming that would have to be tagged with a specific style.

If it would be better to ask this question elsewhere, please advise.
dcsj is offline   Reply With Quote
Old 06-30-2020, 04:01 PM   #130
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This would be the right place. I just don't have any great answers. The plugin should come with a 'samples' directory that has a docx, a custom style map file for it, and a css file that will give you an idea of how it all works together.

The plugin was created with the expectation that a user would develop a consistent docx style habit and then create a custom style map, and a css file that could be used with those docx styles (for many different documents).

It's definitely not a turn-key solution for the conversion of any docx to epub, but if you're a writer who makes consistent use of docx styles, then a workflow can usually be developed.

Not sure what you mean about picking up the book title/subtitle. Unless you're talking about a styled title page in the ebook itself, epub titles are metadata. This plugin doesn't create any epub metadata from the docx. I should probably look into adding that ability though!

And yes, if you create your block text with a particular style in Word (or LibreOffice) you can map that style to a blockquote element in your custom mapping. Examples of mapping Word styles to html elements/classes are in the included samples.

The easiest way to get at the samples is probably to extract the contents of the plugin zip file after you've successfully installed the plugin in Sigil.
DiapDealer is offline   Reply With Quote
Old Yesterday, 02:23 PM   #131
dcsj
Junior Member
dcsj began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Hi, thanks for the reply.
Ok, I am just trying to wrap my head around the process. I use styles constantly in Word. So with my test document, working on how to understand, I found a style called "Book Title" and applied that to the title, then applied "Subtitle" style to the next line. When imported, both of these just came through as <p></p> tags.

So I think I am missing something. I looked in the sample.zip and the sample css file and the style map file. I guess I need to tell the plugin what styles to look for. When I import the file "straight out of the box", I end up with a "dummy.epub" that has no styles in the css file, but it does pick up my Heading 1 styles, etc., as I mentioned above.

If I want it to pick up other styles, is there a way to do that?

I found a DOCXimport.json file, but didn't look at it. Would that be where this is done?

I am afraid I am a bit of an enthusiastic amateur!

Thanks for your reply.
dcsj is offline   Reply With Quote
Old Yesterday, 05:43 PM   #132
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You have to create a style map that maps your style names to the elements you want them to be when importing. Then when you import, you select the correct style map used to map things correctly.

Mammoth is incapable of guessing which styles should be imported as paragraphs and which should be headers. You have to explicitly tell it (via the map file). Otherwise, everything will be a standard paragraph.

The json file just stores the plugin preferences. You make things work by creating your OWN style map and css files. Similar to the ones in the samples folder, but tailored to your own preferences. Then you select those two files (along with your docx file) when running the plugin.

Last edited by DiapDealer; Yesterday at 05:50 PM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 06:31 PM   #133
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: 16,194
Karma: 18817784
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@dcsj - if you use styles in Word then an alternative way to get to an EPUB and preserve style names might be to use Toxaris' eBook Tools MS Word add-in.

BR
BetterRed is offline   Reply With Quote
Old Yesterday, 07:45 PM   #134
dcsj
Junior Member
dcsj began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Quote:
Originally Posted by DiapDealer View Post
You have to create a style map that maps your style names to the elements you want them to be when importing. Then when you import, you select the correct style map used to map things correctly.

...

The json file just stores the plugin preferences. You make things work by creating your OWN style map and css files. Similar to the ones in the samples folder, but tailored to your own preferences. Then you select those two files (along with your docx file) when running the plugin.
Oh, Ok, thanks very much. I totally missed that when running the import, didn't figure out what those "custom" files would be. That makes good sense.

Like I said, "enthusiastic amateur"!! Thanks again.
dcsj is offline   Reply With Quote
Old Today, 09:34 AM   #135
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: 22,487
Karma: 124707766
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No problem. And don't be afraid to take @BetterRed's advice as well. Toxaris' Word add-in is a quality alternative. I use it from time-to-time myself.
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 25 10-12-2019 11:32 PM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 151 09-27-2017 05:05 PM
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 01:00 PM.


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