02-24-2016, 02:41 PM | #1 |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
LibreOffice to Compose, Calibre to Convert
I don't mind doing a little CSS cleaning, but I'd like to minimize it. Are there any suggestions to produce the cleanest ePub in the first place?
eg, I find silly classes in the CSS where I've made corrections in the ODT, and I can't find a setting in LO that might be producing them. I use a good template with simple styles. |
02-27-2016, 12:45 AM | #2 | |
Well trained by Cats
Posts: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It seems to do good, at least for standard Fiction (little or no illustrations) |
|
Advert | |
|
02-28-2016, 05:40 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: none
|
I personally do this and don't find any problems with it. As soon as you understand how to setup everything properly at LibreOffice, it ends being easy to convert any docx to epub with Calibre.
In mines, with LibreOffice+Calibre, all I need to do is to change the default CSS of the epub generated by Calibre for the one I previously made, add a cover and an index and it's ready to roll. |
02-28-2016, 01:47 PM | #4 | |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
Quote:
I would still like to know if there is a LO setting that causes those "silly classes." |
|
02-28-2016, 01:56 PM | #5 | |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
Quote:
When you change the CSS, how do you get the code to match? For instance, what if your CSS has <p class="p-p1"> where the Calibre generated CSS has <p class="p-p2">? I would like to have a standard CSS, but this problem has always stopped me from doing it. |
|
Advert | |
|
03-11-2016, 03:47 PM | #6 |
Gregg Bell
Posts: 2,265
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
RJB, I'm a big fan of Sigil. I do the Text Body "style" in LO. I then turn the .odt into .html in LO. Then plop the .html into a text editor (I use Kate). There I clean up the little bit of cruft in it. (It takes less than a half hour for a 60K words .odt.) From there I plop the clean .html into Sigil. (And there I use a CSS style sheet for the whole epub.) The epub produced in Sigil has almost always needed no tweaks and passes epub check the first time around. (My 2 cents.)
|
03-11-2016, 04:31 PM | #7 |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
Thanks Gregg. Your two cents always appreciated.-)
|
03-12-2016, 02:16 PM | #8 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
I use LibreOffice for creating EPUBs, but I use the "Export to Epub" that gets installed with the writer2xhtml extension.
This has the advantage that when it writes the epub the names of the LO Styles maps to the classes used in the css. So if I have a LO style called "noindent" then it generates a <p class="noindent"> paragraph and the appropriate css style. Being able to use meaningful style names without having to examine them to work out what say "calibre27" was used for is very useful. I also use a couple of other add-ons to LO that help in fixing and tidying up the odt file - there are some excellent macros in the OOOFBTools add-in even if you don't want FB2 output - the stuff that generates footnotes from simple [1] etc type references for instance is excellent once you get the hang of how to use it. The Alternative Search add-on also gives me a "library" of transformations based on regex - easy to do the things like changing "markdown" italics based on underscores to proper italics and making Chapter headings into proper headings that then get processed by the export routine as separate files within the epub. BobC |
06-13-2016, 11:06 PM | #9 |
Guru
Posts: 929
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
I'm considering converting some game-reference notes to epub. Right now I'm writing the chapters as separate files, and some reference data as separate spreadsheets. Is it possible to merge spreadsheets into Epub?
|
06-16-2016, 09:34 AM | #10 | |
cacoethes scribendi
Posts: 5,815
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
|
Quote:
|
|
06-16-2016, 01:47 PM | #11 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
BobC |
|
06-16-2016, 01:52 PM | #12 |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
I've done one this way recently and I find that the CSS produced by W2E is smaller and cleaner than the CSS produced by Calibre. Then I do a little more editing with Calibre. I'll have to see about saving a good CSS and then importing it into subsequent W2E exports. It would be nice to know that all output is formatted identically.
|
06-16-2016, 06:30 PM | #13 |
Grand Sorcerer
Posts: 11,309
Karma: 43993832
Join Date: Feb 2010
Location: Monroe Wisconsin
Device: K3, Kindle Paperwhite, Calibre, and Mobipocket for Pc (netbook)
|
Not a free program but Scrivener can export your text as an epub among other formats. They have a 30 day free trial as well. You can even import text from LO into the program and using hashmarks break the text up into scenes or chapters automatically when it imports.
|
06-18-2016, 10:23 AM | #14 | |
Grand Sorcerer
Posts: 45,037
Karma: 56751447
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
|
Quote:
|
|
06-18-2016, 01:48 PM | #15 |
Wizard
Posts: 1,041
Karma: 12018368
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
I respect everyone's right to use whatever software they choose, and I have my reasons for using Free Software.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Majuscule et mots composé | neufsix | Assistance | 13 | 12-26-2021 06:08 PM |
Are you using LibreOffice 4.4? | Pinkie | Writers' Corner | 16 | 08-24-2015 07:28 PM |
anybody using LibreOffice to compose? | Gregg Bell | Writers' Corner | 80 | 08-22-2015 01:23 AM |
Help to compose a regex to find strings, enclosed in comments tags | Vadim777 | Conversion | 5 | 04-17-2012 01:49 PM |