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 08-09-2020, 03:47 PM   #31
philja
Enthusiast
philja began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
Quote:
Originally Posted by roger64 View Post
Hi

As a -nearly - daily user of both writer2xhtml.oxt on LO 6.4.5.2. and of writer2latex.jar with Sigil 1.3. and odtImport plugin 0.3.1. (both of them use in fact writer2xhtml 1.6.1.), I just can say that they both work nicely today. I'll try it asap with LO 7.
I'm interested that you get writer2xhtml to run well with LO 6.4.5.2. I'm using 6.3.5.2 and I couldn't get any of the writer2xhtml options to run to completion when launched from the File > Export menu. Every time the export failed with some sort of general import/export error.

This was disappointing because I rather liked the gui interface with all the options that writer2xhtml presented.

The one case which did work ok was from the Publish button on writer2xhtml's small toolbar. Because it didn't allow me to select a file name, care was needed to avoid overwriting a previous version.

Quote:
- Images in the odt file (including cover) are processed without problem.
In the case I tried, I didn't have a cover image in the odt file because I normally use Sigil to add it to the epub file. So I was somewhat surprised to see that the ODTimport plugin hijacked my first image to build a cover page - especially since it didn't reuse the image in its proper place.

Over the weekend, I loaded an odt file into Calibre and then converted it to epub. The result wasn't too bad but the epub did need some cleaning up.

Perhaps the worst was Calibre's production of unwanted and useless <span>'s. One short paragraph was more than doubled in size by what seemed to me to be useless <span>'s calling up CSS "classes" to apply to a single letter. The original odt paragraph was a two liner in Text Body style with no manual formatting applied.

Calibre did not hijack any image to produce a cover page but instead created the page with a text based svg image.

At present, I'm unable to decide which workflow is going to require the least cleaning up.
philja is offline   Reply With Quote
Old 08-09-2020, 08:21 PM   #32
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,499
Karma: 2879999
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by philja View Post
In the case I tried, I didn't have a cover image in the odt file because I normally use Sigil to add it to the epub file. So I was somewhat surprised to see that the ODTimport plugin hijacked my first image to build a cover page - especially since it didn't reuse the image in its proper place.
.
Hi.

There is no "hijacking" in writer2xhtml but only user selected options.
1. - for the writer2xhtml GUI (for LO) you have to check or uncheck this one
Quote:
"Use first image as cover image".
2. - for odtImport, you must look at your config.xml file, and check the value of
Quote:
<option name="cover_image" value="true" />
and set it according to your need.

As you can see, the wording of the config.xml options can be slightly different from the one of the GUI, but if you go carefully and slowly through all the options of the config.xml , you'll find similar ones to the GUI.

The purpose of each option is given in the writer2xhtml documentation online.

Last edited by roger64; 08-09-2020 at 08:50 PM. Reason: similar
roger64 is offline   Reply With Quote
Old 08-10-2020, 11:37 AM   #33
philja
Enthusiast
philja began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
Quote:
Originally Posted by roger64 View Post
Hi.

2. - for odtImport, you must look at your config.xml file, and check the value of

and set it according to your need.

As you can see, the wording of the config.xml options can be slightly different from the one of the GUI, but if you go carefully and slowly through all the options of the config.xml , you'll find similar ones to the GUI.

The purpose of each option is given in the writer2xhtml documentation online.
Thanks for that, Roger. Complete ignorance on my part. I had not even investigated under the hood on the ODTimport plugin.

I see I've got some reading up to do to optimise my settings for the plugin. And I should think that once I've taken that step, it will probably be as easy as the LO Writer Extension.
philja is offline   Reply With Quote
Old 08-11-2020, 12:09 AM   #34
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,499
Karma: 2879999
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by philja View Post

I see I've got some reading up to do to optimise my settings for the plugin. And I should think that once I've taken that step, it will probably be as easy as the LO Writer Extension.
You're welcome.

Yes, it's worth it if you plan to use odtImport regularly. You need to do it only once.
The same goes for the epub.css file (if you wish to append one).
roger64 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
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 445 09-26-2020 09:11 PM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 25 10-12-2019 11:32 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 11:01 AM.


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