![]() |
#46 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,211
Karma: 11695105
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
"MS Word vs Open Office Word" (And watch those two Styles videos I linked to, they explain the WHY and the HOW.) Once you create very clean source documents, then every future step becomes easier. ![]() And once you understand the basic ideas of Styles, I think you'll be able to more easily wrap your head around basic ebook code+CSS. |
|
![]() |
![]() |
![]() |
#47 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877
Karma: 2457540
Join Date: Nov 2011
Device: none
|
To be honest, if your publication is straightforward narrative or information, you might as well compose in WordPad. Or even straight into Sigil. Apply styles to headings and sub-headings, set up the metadata and you're done.
Ok, that's over-simplifing a BIT :-) But most eBook problems stem from messy source. |
![]() |
![]() |
Advert | |
|
![]() |
#48 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,789
Karma: 150284195
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#49 |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
This has answered my question of 'How to use Word as written.'
Thanks for the video links. |
![]() |
![]() |
![]() |
#50 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,211
Karma: 11695105
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
![]() I think Styles are the #1 most important step you can learn. You start thinking in "purpose" instead of "looks":
Code:
Chapter 1 <--- Heading 1 This is an example first sentence. <--- First. * * * <--- Scenebreak. And the beginning of a new scene. <--- First. Today, it was a dark and stormy night. <--- A normal paragraph.
Now when you export your clean DOCX to ebooks, all that information will be transferred over! Code:
<h1>Chapter 1</h1> <p class="first">This is an example first sentence.</p> <p class="scenebreak">* * *</p> <p class="first">And the beginning of a new scene.</p> <p>Today, it was a dark and stormy night.</p> ![]() Heh, yep yep. Past month I completely dropped off the radar... was digitizing a ~2 million word beast. (10+ more volumes of a journal.) Spellchecking/Grammarchecking is done, and now it's just correcting the little things here and there. Last edited by Tex2002ans; 09-29-2020 at 12:15 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
![]()
Thank you sir. Most definitely Styles are the way.
I need to completely rewrite my checklist for Formatting prep. But, this is for sure going to save time. ![]() So, when you have a 'perfectly' styled Word doc and you send it through Calibre, or your app of choice, you get your EPUB file. In my tests, I see a lot of HTML that I am not as familiar with. As long as it looks like I expect in an eReader, or previewer, am I good as far as the code? Will the EPUD file work on most eReaders young and old? Or are there 'things' I need to change the tags on because it just makes things unreadable on older devices and or phones? Thanx for the input. |
![]() |
![]() |
![]() |
#52 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,211
Karma: 11695105
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I wrote a bit about some "things to look out for" in Post #53+ in "Why is it so hard to preserve blank lines?". Also look at those 2 Reddit threads I linked where I gave basic code samples (Scenebreaks, Fleurons, etc.). There's a handful of other key "things to look out for", like:
That one's very easy to miss, since if you're in Word/Print, it's always on a white page. But ebooks are different, people can read using all different font/background colors. Side Note: Amazon will ding you if you force the text's font color for your book. It's against their Kindle Publishing Guidelines (PDF). Quote:
Quote:
Almost everything else should be a simple <p> (paragraph). For Non-Fiction, things get a little more complicated, because you're dealing with Footnotes/Diagrams/Captions/Tables/etc. Quote:
IF (and this is a big if) you Style your DOCX properly, even a simple Word "Save As Filtered HTML" could work with some massaging. Calibre tries its best to recreate the look of the original source document. It doesn't keep Word's Style names -> CSS classes though, and converts a lot of them to "block_#" or "calibre#". Its method is also more GIGO (Garbage-In, Garbage Out): If your source file stinks, Calibre tries its best, but you'll get messy out. Clean file in? Relatively clean file out. Toxaris's EPUB Tools is my personal favorite. It exports very clean HTML, and even has an option to keep the Word Styles -> CSS (Settings > HTML Export > Retain own stylenames). Its method is more "Strip/clean up all the junk" + "Output very clean EPUB+CSS". This lets you do tweaking of the EPUB's code much more easily, since 99% of the crap is gone. There are many more ways of converting DOCX to EPUB... but these are probably too advanced (and this post is getting a little long). ![]() But, with any of these methods, consistent usage of Styles will make any conversion steps 1000% easier/cleaner. ![]() Last edited by Tex2002ans; 09-29-2020 at 04:05 PM. |
||||
![]() |
![]() |
![]() |
#53 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,542
Karma: 14325062
Join Date: Nov 2019
Device: none
|
For the sake of an example here's the CSS I use when fixing / cleaning the CSS in a book I've bought. I do this in Sigil; I first create an empty css file and move the book's CSS into that file, so now the book's css file is empty. I have a Sigil clip which gets put in that empty file which is
body { font-size: 100%; border: 0; margin: 0; padding: 0; width: auto; } body * { line-height: inherit; } p { font-size: 100%; margin: 0; padding: 0; border: 0; text-indent: 2em; } a { color: inherit; text-decoration: none; } h1, h2, h3, h4 { text-align: center; } hr { border-style: none; margin-left: auto; margin-right: auto; margin-top: 1em; page-break-after: avoid; break-after: avoid; background-color: hsl(0, 0%, 55%); height: 1px; width: 6em; } .italic { font-style: italic } That doesn't properly format chapter headings that used p tags instead of h tags but I can live with that. What I want is a consistent text size, consistent line-height, consistent indentation, consistent minimal borders, and consistent space between paragraphs (none). All of those things I can adjust on my Kobo (maybe not the interparagraph spacing). If you leave out text-align left/justified then that can be set how you like it on the Kobo. (Kindles aren't so flexible unfortunately.) I also have to go through the original CSS and find what class they're using for italic when they're using spans instead of i or em tags and add it to that italic class. The book's html is left untouched so whatever crud is there remains (divs and spans usually). It's rather a bit of a sledge hammer approach but it works well with the minimum amount of effort. Last edited by hobnail; 09-29-2020 at 02:33 PM. |
![]() |
![]() |
![]() |
#54 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,211
Karma: 11695105
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
|
|
![]() |
![]() |
![]() |
#55 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,542
Karma: 14325062
Join Date: Nov 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#56 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877
Karma: 2457540
Join Date: Nov 2011
Device: none
|
If you put messy source into some converters, you CAN get ridiculous EPUB code where every syllable is given a separate, verbose in-line style. And hand-crafted EPUB code can be very sparse and pretty! But a little cruft can be tolerated in return for the convenience of conversion from a WYSIWYG environment.
|
![]() |
![]() |
![]() |
#57 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 656
Karma: 567890
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
(Guido Henkel's "Zen of eBook Formatting")
I read that and it's a good introduction to basic CSS. However one of his precepts I think is quite ill-advised: Quote:
One of the first things I do is convert chapter heads to h tags and then style the h tags. Simpler and more readable code and easier to manage. Invest some time in learning regular expressions. Very useful in Sigil to clean up cruft from Word or other sources. Get the Tag Mechanic Sigil plugin. Also, look at Calibre. It has advanced much since Guido wrote his book. Its editor has some quite powerful and useful features. Quote:
Quote:
You might get 100 similar styles, but easier to then merge and simplify them. |
|||
![]() |
![]() |
![]() |
#58 |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
I'm still here. I have just been digesting and practicing.
I have more questions, but I am going to start new threads since they don't quite fit in this one. Thanx a ton for all this information. |
![]() |
![]() |
![]() |
#59 | |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
![]() Quote:
Rats! It looks like this is only working on Windows machines. I'm all set up and running on my Mac. Any other suggestions as far as Calibre is concerned? ![]() |
|
![]() |
![]() |
![]() |
#60 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,211
Karma: 11695105
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Yes, Toxaris's add-in only works in the Windows version of Microsoft Word.
(The Mac Word is a completely different beast. It's not like LibreOffice/Calibre/Sigil where it works exactly the same across OSes.) Quote:
Then there are a few Sigil plugins that may help: CustomCleanerPlus lets you "Save As HTML" out of Word/LibreOffice/etc., then it will try to clean up a lot of the HTML cruft leftover. DOCXImport is much more advanced, but lets you have full control over mapping the DOCX -> HTML conversion (using an advanced commandline tool called Mammoth). Visit both of those threads for much more details. I don't use or have real in-depth knowledge on them though, so I can't write simple step-by-step instructions. :P Last edited by Tex2002ans; 10-21-2020 at 11:02 PM. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Changing Formatting | Chakana16 | Sigil | 5 | 09-09-2015 10:09 AM |
Picture formatting in Sigil | rosshalde | Sigil | 3 | 10-27-2014 05:29 PM |
Book on Sigil formatting | Leverpullr | Sigil | 0 | 03-21-2013 12:15 PM |
Formatting in Sigil | Rizphil | Sigil | 4 | 02-14-2012 02:39 AM |