04-13-2016, 04:06 PM | #1 |
Enthusiast
Posts: 36
Karma: 11010
Join Date: Jan 2016
Location: Gatineau, Quebec, Canada
Device: Boyue Likebook (T103D) Mimas
|
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre)
There are several fanfics that I find my self re-reading with some frequency, so I wanted to get an off-line version of these files for my Kobo e-reader. Since existing direct-from-fanfic-websites extractors have various problems for me, I decided to extract and format the text myself (personal use only of course). As I have no programing experience I would rather do as much as possible in Microsoft Word and avoid playing around with HTML tags in the Caliber epub editor as much as possible. I have tried this once before and noticed that the embedded fonts looked noticeably different on my Kobo (fonts set to publisher default) then on my computer in both MS Word and the Calibre epub viewer. My questions are as follows: 1) How do I force sections of text not to be user modifiable on a e-reader? eg: keep chapter headings in publisher default font (eg: a handwriting font) while letting the user select his/her font preferences for the main body of text; keep a quote center-justified while letting the user select the text justification for the rest of the text. 2) How do I ensure that chapters don't end on a blank page on e-readers? 3) I am taking full advantage of MS Word's headings, page breaks, etc. and am formatting the text in web-view mode to better reflect that epubs/kepubs are based on simplified websites in terms of their internal mechanics. Is there any non-obvious features in MS Word that I should be taking advantage of? 4) Any tips and tricks for Calibre conversion settings from docx→epub/kepub? There seams not to be as much conversation about converting from docx as there is converting from other formats to epub on this site. 5) Any other advice for this project? TECHNICAL INFO: Word Processor: Microsoft Word 2016 64bit E-Book Software: Caliber 2.52 64bit (with all available Kobo plugins) E-Reader: Kobo Aura H2O (firmware 3.19.5761 with Metazoa patches) Unrelated PS: Check out the thread I started RE: Open/Free University/Academic & Other High Quality Presses That Provide E-Books for FREE |
04-13-2016, 09:12 PM | #2 |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@SJC-Caron - Use Word's Styles, don't pad with spaces and tabs or new lines. Word is a word processor not a typewriter. I seek and destroy all superfluous tabs (they're need in bulleted/numbered lists), all double spaces, all double newlines (^p^p) etc before I save.
There are two ways to convert a DOCX to EPUB with calibre. Firstly via it's conversion process, the other by importing the DOCX into the calibre editor. The difference is that the editor will transform Word Styles into CSS entries more faithfully. It may not make much material difference if you're not using complex Styles. Give both a try. You might also want to take a look at Toxaris' e-Book Tools - a Word add-in, as well as having its own Word to EPUB converter it has a number of other very useful features. BR |
Advert | |
|
04-13-2016, 11:48 PM | #3 |
Well trained by Cats
Posts: 30,452
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Also
You can't FORCE devices to use your styles. Some ALLOW Publishers Styles. Some limit that to the ones they don't want absolute control Some allow embedded fonts Roll the dice PDF was the EXACTLY solution back in Print days It still is... BUT you will be hated if they need to convert to fit a smaller device |
04-14-2016, 04:00 AM | #4 | |||||
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
You can't do what you want to do, using Word. Not about the Publisher fonts and all that. You'll have to dip into HTML, and it's a bit more than a toe. Quote:
Quote:
Quote:
Quote:
Well, good luck. Hitch |
|||||
04-14-2016, 10:38 AM | #5 | ||||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
For the justification, you can't. The setting overrides all the justification in the book. After all, how is the device supposed to know which is to be overridden and which isn't. Quote:
Quote:
Last edited by davidfor; 04-14-2016 at 10:39 AM. Reason: Fix the quoting. |
||||
Advert | |
|
04-14-2016, 10:49 AM | #6 |
Enthusiast
Posts: 36
Karma: 11010
Join Date: Jan 2016
Location: Gatineau, Quebec, Canada
Device: Boyue Likebook (T103D) Mimas
|
@Hitch RE your response to my first question: I tend to spend a few days/weeks reading using a serif font (usually the built-in Georgia font) and then change to a sans-serif front (usually a side-loaded Helvetica) for a few days/weeks before changing back again.
|
04-14-2016, 11:35 PM | #7 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'm not being snarky, I'm asking. Me, I want all the choices I can get. :-) Hitch |
|
04-15-2016, 01:54 AM | #8 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I don't know anything about MS Word, but I can probably help with what the final ePub needs to look like.
Quote:
With the ePub reader (or patched KePub reader) the easiest way to prevent the font and alignment used for headings, subheadings, etc.from changing is just to make sure they are marked up with appropriate heading tags, <h1>, <h2>, etc. The problem is that some publishers (or some conversion software) mark headings with <p> or <div> tags instead of <h1>, <h2>, etc. Edit: Also, for the ePub reader if you want to explicitly reference a font that has been sideloaded to the device (other than the generic serif, sans-serif, etc.) then you need to specify it with @font-face in a similay way to what you would an embedded font, but using the paths "res:///fonts/normal/Fontname", "res:///fonts/italic/Fontname", "res:///fonts/bold/Fontname", "res:///fonts/bolditalic/Fontname", where Fontname is the name of the font rather than its filename. It is probably simpler just to use an embedded font for decorative things like headings etc., and only sideload fonts that you would actually select as reading fonts. (There is a lot more to this subject, if you want to get into more detail. There are complications because the !important modifier has a different meaning to the KePub reader than it does to the ePub reader. But in general as long as the publisher uses appropriate tags when making the ePub, i.e. <h*> for headings, subheadings, etc. and <p> for paragraphs, then things will usually work as expected.) Quote:
Code:
<p class="calibre1">[...] And I can forget that you ever came."</p> <p class="calibre1"> </p> </body> </html> Last edited by GeoffR; 04-15-2016 at 02:18 AM. Reason: ... explicitly reference a font that has been sideloaded ... |
||
04-15-2016, 05:23 AM | #9 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Here is an example: the publisher has embedded a handwriting font. When I select "Publisher Default" Georgia is used for the main body text, and the handwriting font used for journal entries: Publisher Default But when I select "Amasis" on the device there are two things that can happen, depending on how the publisher has structured the ePub: Only the main body text changes to Amasis (Good, IMO) Both body and journal text change to Amasis (Bad, IMO) (Edit: There is a third possibility, the worst one, which is that neither font changes.) Last edited by GeoffR; 04-15-2016 at 05:32 AM. Reason: ... a third possibility ... |
|
04-15-2016, 02:07 PM | #10 |
Enthusiast
Posts: 36
Karma: 11010
Join Date: Jan 2016
Location: Gatineau, Quebec, Canada
Device: Boyue Likebook (T103D) Mimas
|
@GeoffR: you are correct in what I want to do re: being able to change the font for the bulk of the epub and keep fixed special purpose fonts (front type, not size).
|
04-20-2016, 02:26 PM | #11 |
Enthusiast
Posts: 36
Karma: 11010
Join Date: Jan 2016
Location: Gatineau, Quebec, Canada
Device: Boyue Likebook (T103D) Mimas
|
Anyone care to expand on the use of the !important tag in epubs/kepubs? Thanks.
Also thanks for pointing-out the e-book tools Word plug-in. Everything works but the generate epub button (could this be due to a 32/64-bit software conflict?). |
04-20-2016, 05:12 PM | #12 |
Enthusiast
Posts: 36
Karma: 11010
Join Date: Jan 2016
Location: Gatineau, Quebec, Canada
Device: Boyue Likebook (T103D) Mimas
|
When I tried to convert a docx document to epub & kepub today in Calibre some weird things happened (when viewed via the Caliber ebook viewer):
1) Sub-headings that I wanted to be within a chapter had a page-break applied to them despite this not being the case in Word. 2) Some fonts appear in their italic form where in Word the font was in its regular mode. 3) With some fonts the space before an bolded or italicised word disappeared so I had two words stuck together. 4) With some fonts bolded and italicised words appear in their regular form. I have looked at the outputted epub files in the Calibre epub editor, and was able to figure-out how to fix issue 1, but am at a loss for the other issues at this point. I tried applying the bold tags to words what should of been bolded but weren't, but those tags didn't take. And I did not see anything that would allow me to correct the wrongly italicised fonts. Any advice that can be provided will be appreciated. |
04-20-2016, 05:14 PM | #13 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
My advice would be to use Sigil.
|
04-20-2016, 09:35 PM | #14 | |||||
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
Quote:
Code:
<span class="ooops">this is italics.</span> Quote:
In fact, open the editor and tell us what fonts ARE in there, that would likely help. Hitch |
|||||
04-21-2016, 01:55 AM | #15 | |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Oh, read the sticky at Calibre|Conversion about how to ask questions about solving conversion problems before you post. Added - thanks for the Karma - but same deal, if you have problems with ePUB-Tools raise them in its thread in Workshop, no point in telling me about them in a Karma message BR Last edited by BetterRed; 04-21-2016 at 03:18 AM. |
|
Tags |
conversion, docx to epub/kepub, formatting, non-technical how-to |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to manage kepub.epub in Calibre | fxp33 | Library Management | 53 | 02-17-2023 11:49 PM |
EPUB to KEPUB conversion settings in Calibre | Buhaj47 | Kobo Reader | 7 | 01-24-2016 12:49 PM |
Aura epub, kepub, hyphenation and word-spacing | pblasi | Kobo Reader | 5 | 08-22-2014 06:13 AM |
Aura HD Conversion of EPUB to KEPUB using Calibre | kmack9 | Kobo Reader | 15 | 09-08-2013 02:00 PM |
Plugin calibre epub to kepub | Tumeconnais | Kobo Developer's Corner | 0 | 01-16-2013 05:26 PM |