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

Go Back   MobileRead Forums > E-Book General > Writers' Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2013, 09:06 AM   #61
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
Quote:
Originally Posted by VydorScope View Post
Just make sure you run your result through the epub validator

http://validator.idpf.org/

and make sure you have no warnings or errors when done.


Also, I am pretty sure using <i> </i> is not valid in EPUB, that you need to us CSS for that.
<i></i> is valid, as is <b></b>, in EPUB 2 at least. There is an ongoing argument that people should prefer to use <em></em> (emphasis) rather than italics, and <strong></strong> rather than bold, but either should be acceptable to epub compliant software.

And it had better be. Sigil uses it, and I've seen Smashwords/Calibre generate this element, and it even (redundantly as far as I know) assigns a CSS style as well - eg: <i class="calibre2">some text</i> where the calibre2 style says the text should be italic. (Note that I am NOT holding this up as a good example, just an example of what has - in the past at least - come out of the meatgrinder.)

Elements that are not valid are things like <center></center>. Restrictions that have software like Sigil implement as : <p style="text-align: center;">Some text.</p> (I image Scrivener probably generates something similar if you explicitly centre any paragraphs, but have not checked.) Which just goes to show you that without style-aware editors your epubs may still not end up being as neat and tidy as intended by the standard.

Last edited by gmw; 07-18-2013 at 09:09 AM.
gmw is offline   Reply With Quote
Old 07-18-2013, 01:57 PM   #62
VydorScope
Wizard
VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.
 
VydorScope's Avatar
 
Posts: 3,418
Karma: 35207650
Join Date: Jun 2011
Device: iPad
I thought that <i></i> flagged an error in the official validater the last time I used it. I could be remembering wrong though.
VydorScope is offline   Reply With Quote
Advert
Old 07-18-2013, 09:20 PM   #63
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
EPUB 3 is a more difficult to standard to read, but as far as I can tell it supports most of HTML5 (with some limitations on MathML). As such <i> should work there too (see this). Note that HTML5 subtly changes the definition of elements like <i> and <b>. Also note that <i class="somestyle"> is valid (in case I gave the wrong impression above), but does mean that the text may not be rendered in italics - if the style says differently). I just think it is a strange thing to do, to say here's some italic text that may not be italic.
gmw is offline   Reply With Quote
Old 07-19-2013, 02:13 AM   #64
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by gmw View Post
(the plug-in can be set to automatically split the text by heading level, so each chapter ends up in its own xhtml file with extra no work on my part)
Can you tell me where to set that? I can't see it in the options dialogue.
avantman42 is offline   Reply With Quote
Old 07-19-2013, 04:10 AM   #65
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
Quote:
Originally Posted by avantman42 View Post
Can you tell me where to set that? I can't see it in the options dialogue.
When you go to File / Export, if you have that plug-in installed correctly you should have an option (under "Save as type:") to choose EPUB. Choose that and hit save and the options appear. On the right-hand side you should see "Document division (page break)" options, one of those is "At heading level" which automatically splits the document at H1, H2 etc (or if you created your own ChapterTitle style - as I did - then it is the Outline Level defined in that style).

As a side note: I have no association with the developer, but found him to be very approachable - a few minor adjustments were made in recent versions as a result of requests I made. For example the "Display hidden text" option. In part of my first book, I had conversation going on in which only half was supposed to be visible to the reader. To keep it all straight in my head, I had the other half written in hidden text - but the earlier version was exporting this too, which obviously I didn't want, hence this extra option.
gmw is offline   Reply With Quote
Advert
Old 07-19-2013, 04:55 AM   #66
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by gmw View Post
When you go to File / Export, if you have that plug-in installed correctly you should have an option (under "Save as type:") to choose EPUB. Choose that and hit save and the options appear.
It's installed, I've got a whole load of extra export file types (including ePub). When I hit save, though, it just saves. There's no extra dialogue. All the options are in the main Tools->Options dialogue, but I can't see any option to control how the ePub is split.

It sounds like I've got a different version, but I'm pretty sure I've installed the latest one. Initially I got it from extensions.libreoffice.org, but then, thinking that I'd not got the latest, I got it from writer2latex.sourceforge.net. When I installed that one, it told me it was the same version as the one I already had installed.
avantman42 is offline   Reply With Quote
Old 07-19-2013, 08:21 AM   #67
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
Quote:
Originally Posted by avantman42 View Post
It's installed, I've got a whole load of extra export file types (including ePub). When I hit save, though, it just saves. There's no extra dialogue. All the options are in the main Tools->Options dialogue, but I can't see any option to control how the ePub is split.

It sounds like I've got a different version, but I'm pretty sure I've installed the latest one. Initially I got it from extensions.libreoffice.org, but then, thinking that I'd not got the latest, I got it from writer2latex.sourceforge.net. When I installed that one, it told me it was the same version as the one I already had installed.
I found this link which appears to be suggest the problem may be an incompatibility between LO v4 and Writer2Latex (I'm still using LO v3.6). That link also offers a patch, or you may like to look at this link which offers a note about stability and a different patch.

There doesn't appear to have been much word from the main developer on the forums for a year or more. I'll try the email address that I had for him and see if he's responding on that.
gmw is offline   Reply With Quote
Old 07-19-2013, 08:47 AM   #68
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Thanks. The option to split at headers would be nice, but it's not a deal-breaker.
avantman42 is offline   Reply With Quote
Old 07-19-2013, 09:04 AM   #69
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
Quote:
Originally Posted by avantman42 View Post
Thanks. The option to split at headers would be nice, but it's not a deal-breaker.
There is a supposed to be a command-line ability (that can read an explicit config file, or read config from the command line, rather than needing the options dialog), see the documentation link on the website. I seem to remember using that on one of the early versions, but it's a few years ago now and can't remember the details.
gmw is offline   Reply With Quote
Old 07-19-2013, 09:41 AM   #70
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
I can't find a config file to tweak for the extension. I might look into using the command line version later, but right now I've got a holiday to prepare for
avantman42 is offline   Reply With Quote
Old 07-19-2013, 11:01 AM   #71
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
I keep meaning to mention that there is another plug-in for OpenOffice and LibreOffice called Writer2EPub - and you can talk about it right here on MR. I've never used it, so I can't speak for its results, but a quick glance at the website shows that it does offer optional breaking by heading levels 1, 2 and 3, and is supposed to be compatible with LO v4.

It looks to me like writer2xhtml offers more control, but that's only useful if you can get it to work. I will drop a note here if I hear anything from the developer of writer2xhtml.
gmw is offline   Reply With Quote
Old 07-19-2013, 12:24 PM   #72
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,255
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
thanks

Quote:
Originally Posted by gmw View Post
Yes, the styles used in my LibreOffice source are all exported to the CSS by the plug-in. The plug-in I use (Writer2xhtml*) produces a complete and reasonably clean epub file. The contents of that epub file (which is really just a zip file) includes the various .xhtml files for each chapter (the plug-in can be set to automatically split the text by heading level, so each chapter ends up in its own xhtml file with extra no work on my part), and it automatically creates the stylesheet.css file that is referenced by the various xhtml files. (Obviously it also includes all the other stuff needed by epub as well.)

So I don't have to write or maintain anything separately, I can just export directly to epub and then play in Sigil to adjust those things I want to adjust. I do a bunch of mostly unnecessary things likes rename the xhtml files to reflect the actual content: titlepage, dedication, chapter1, etc. (the export just named every separate xhtml as chapter1 .. etc.), and I play with the CSS that was automatically created to do whatever it is that I want to do. One necessary thing to check for (for best results on all ereaders) is that the CSS uses all em and % measurements rather than pixel or inches/cm.

* Note that the site heading says Writer2Latex but it offers a few conversions, one of which is Writer2xhtml - which provides an epub export option in LibreOffice and OpenOffice.
Thanks G.M. It's all so efficient. Just wonderful. Really appreciate you taking the time to explain all this stuff.
Gregg Bell is offline   Reply With Quote
Old 07-21-2013, 01:02 PM   #73
Edward M. Grant
Zealot
Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.Edward M. Grant ought to be getting tired of karma fortunes by now.
 
Posts: 129
Karma: 3000000
Join Date: Jun 2012
Location: Canada
Device: Kindle Keyboard, Asus Transformer
Quote:
Originally Posted by Gregg Bell View Post
Thanks G.M. It's all so efficient. Just wonderful. Really appreciate you taking the time to explain all this stuff.
Yeah, thanks: that seems to do a much better job of retaining formatting than LibreOffice does itself.

Back on the original question, I've been using Scrivener for a couple of years, but since I started producing PoD versions of my books I've found I always have to go through and tweak the text to avoid bad hyphenation, which means I then have to go back and change the e-books to match. So lately I've just been writing in Createspace format in LibreOffice and converting from there.
Edward M. Grant is offline   Reply With Quote
Old 08-01-2013, 10:00 PM   #74
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,255
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
?

Quote:
Originally Posted by gmw View Post
Note that checking how well you have used styles, before upload, can be achieved also by converting to epub (I use writer2xhtml) and looking through the raw html (if you're into that sort of thing ). This is a useful way to see how consistent your document formating has been, and maximising consistency will maximise the chances that your document will convert well.
Hey G.M., Downloaded writer2latex and then writer2xhtml but got a "could not create java implementation loader." Googled around but all the info. seemed really dated. Any ideas?

Plus LO really makes a wicked-good PDF.
Gregg Bell is offline   Reply With Quote
Old 08-02-2013, 02:03 AM   #75
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 5,809
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
Quote:
Originally Posted by Gregg Bell View Post
Hey G.M., Downloaded writer2latex and then writer2xhtml but got a "could not create java implementation loader." Googled around but all the info. seemed really dated. Any ideas?

Plus LO really makes a wicked-good PDF.
Both OpenOffice and LibreOffice require Java to be installed on your system to support some functions - and this plug-in requires that. (If you think it should already be installed, check under LO menu: Tools / Options, and look for Java under the LibreOffice branch of options. This should show you what versions of Java LO has recognised and which one it is using.)

Also, did you note the conversation above with avantman42? It seems that writer2xhtml has problems with the LO v4 (I'm still using LO v3.6). There may be ways around that (a command line version of the convert process), but if you are using LO v4 you may find it simpler to try the Writer2Epub plug-in (that link goes to the forum right here on MR where you can find out more). I've not used that one (yet), but it is supposed to be LO v4 compatible.

And yes, LO does PDF very well.
gmw 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
Majuscule et mots composé neufsix Assistance 13 12-26-2021 05:08 PM
Seriously thoughtful Does Libreoffice have a dictionary? Gregg Bell Lounge 3 04-26-2013 11:24 PM
Help to compose a regex to find strings, enclosed in comments tags Vadim777 Conversion 5 04-17-2012 12:49 PM
Libreoffice or OPenoffice? PJinNH General Discussions 14 05-20-2011 06:13 AM


All times are GMT -4. The time now is 10:36 PM.


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