![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Last edited by Toxaris; 05-23-2012 at 01:58 PM. |
|
![]() |
![]() |
![]() |
#17 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,053
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But there are a lot of worse things being done in this tutorial. The worst offender is using a word processor to convert the quotes and apostrophes to left/right versions. So this "clean" code/text that once existed is not a horrible mess. If I had clean HTML to start with, I'd be using Sigil to keep it so since I would know the CSS styles I've created. This tutorial is a bit long winded to eventually botch it up near the end. If you are wanting left/right quotes and apostrophes the easy way to do it is pick a character to use in place of a quote so all you do in the end is some simple search/replaces and you have it sorted. No need to get even near Word. If this is a book that is not going to see print, a text editor is just fine to use to write the book. If it is also going to print, load the text file in and format it for print and leave the text version for conversion to the eBook versions. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
Quote:
Chapter 1 pinewood Whats defintly false. For decorative images the alt attribute must be present, too, but it can be empty and should be empty. Not showing the deorative images does have an effect of the understaning of the text, so the alt attribute must e empty. If the image represents a graphical letter, so alt-attribute should be set to the letter be represented: Code:
<h1><img src='../Images/bigC.jpg' alt = 'C' />hapter 1</h1> |
|
![]() |
![]() |
![]() |
#19 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I didn't read the whole thing, although it is much- and oft-touted on the KDP, but a) ditto on the Calibre bit, and b) when I saw, given the date of the original writing, the "display:none" written as though it would subsequently work in e-ink--which prior to 2.4 it certainly did not--I blew it off. That, and I'll avoid pointing out, from an author, this sentence: "Feel free to right-click the image and save it for your own perusal." A native English speaker and author, (not to mention, per his blog, "accomplished musician" and publisher) however, shouldn't confuse "perusal" and "for your own use." Yes, that last bit was snarky, but really? "...get our book into Calibre to build a real ebook?" Zounds. Hitch |
|
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 110336
Join Date: Dec 2011
Location: Los Angeles, CA
Device: Kindle n-T, Nook Color Tablet, Nexus 6
|
Keep it Simple and Specific
Quote:
Automagic exists for a reason, it is perfectly adequate for at least half of Sigil's users. |
|
![]() |
![]() |
![]() |
#22 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,895
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#23 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
|
![]() |
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,053
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The easiest way to do chapters headings for a ToC is to be in book view. Highlight the title, select the second heading style from headings and when done. After all the headings are fixed, build a new ToC. It's that easy. Why would search/replace be needed?
|
![]() |
![]() |
![]() |
#25 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I know some people like to reserve the first heading style for the book title. I think that's unnecessary, though. The book title is already the file name probably, and in the TOC there's a specific name for it. As for styling the title page, it usually deserves more special coding than just using <h1> for the title (it has author name, date, illustrator, etc.).
So, in a simple book that is just divided in chapters, I'd use <h1> for each chapter, and have them appear as top-level divisions in the TOC. Of course, it would be different if there are parts, or if it's an omnibus edition with several books bundled in one. |
![]() |
![]() |
![]() |
#26 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,720
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
However ever since 0.4.something, this feature is "broken" in my opinion if the text you are already highlight has a style. I am sure it *used* to be the case that applying a heading style using book view would result in whatever paragraph tags the text had being replaced with a plain <h3> type of tag. Now however it gets it wrong and just replaces the p with h3. So if your text looks like this: <p class="text">CHAPTER ONE</p> You will end up with: <h3 class="text">CHAPTER ONE</h3> Which is *rarely* (i.e. never) what I want. So you end up having to do a regex afterwards, which you may as well have just done in the first place, much faster. Last edited by kiwidude; 05-24-2012 at 03:45 PM. Reason: Fix the closing h3 tag for pedantics like JSWolf |
|
![]() |
![]() |
![]() |
#27 | |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Quote:
But if you've got classes or styles and are trying to control the layout that much, then certainly Code View and Find & Replace is the best approach. Trying to get Book View to format it exactly the way you want when you are fully aware of Code View, HTML and CSS will probably just drive you crazy ![]() |
|
![]() |
![]() |
![]() |
#28 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,053
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,053
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Leaving the classes is correct. The class could be what you want and all you are doing is making it so Sigil knows what may be ToC headers.
|
![]() |
![]() |
![]() |
#30 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,720
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Sorry meme but we are going to agree to disagree on what it does being "right" on this one
![]() I don't want my headings to have the same style as my paragraph text. *Ever*. But that is what the current Sigil behaviour does. In the "good old days" if I had a really badly formatted document (maybe a bad ocr where a regex isn't going to find all occurrences) I would use Book View to scroll through, fix paragraphs, chop pages, give the chapter headings an h3 or whatever style, flick to the stylesheet to add h3 {text-align: center} and it would be job done. However now it is pointless using the book view style dropdown. Inheriting its existing styles is in my mind a regression that took place in 0.4.x compared to its original behaviour. Clearly you know way more than me about how difficult this is underneath the covers, I just found it strange it used to work the way I want it. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre: Chapter Headings | Paxman53 | Introduce Yourself | 5 | 10-22-2011 09:13 AM |
Chapter Headings | Paxman53 | Conversion | 3 | 10-12-2011 12:31 PM |
Chapter Headings on their own page? Help! | Lee5150 | Calibre | 3 | 10-06-2011 08:12 AM |
Why H1 and H2 Chapter Headings? | Ransom | Calibre | 11 | 08-10-2011 04:29 PM |
Help converting chapter headings | p3aul | Conversion | 6 | 04-03-2011 12:56 PM |