Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-16-2012, 02:53 AM   #16
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Suffolk Punch View Post
I found the following introductory guide by Guido Henkel very clear, and recommend it:

http://guidohenkel.com/2010/12/take-...ook-formatting


Martin
Sorry, any e-book creator finalizing by doing a ePUB conversion in Calibre as finished product and claiming to create very good ePUB's I cannot take seriously.

Last edited by Toxaris; 05-23-2012 at 01:58 PM.
Toxaris is offline   Reply With Quote
Old 05-16-2012, 03:38 AM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Toxaris View Post
Sorry, any e-book creator finalizing by doing a ePUB conversion in Sigil as finished product and claiming to create very good ePUB's I cannot take seriously.
I think you mean using Calibre to do the conversion.

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.
JSWolf is offline   Reply With Quote
Advert
Old 05-16-2012, 04:56 AM   #18
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Quote:
Originally Posted by Toxaris View Post
Sorry, any e-book creator finalizing by doing a ePUB conversion in Sigil as finished product and claiming to create very good ePUB's I cannot take seriously.
In addition, he set the alt attribut of decorative images to a text string, resulting in a chapter name like

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>
So he defintly has no understandig about the role of the alt attribut .
huebi is offline   Reply With Quote
Old 05-16-2012, 05:24 AM   #19
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by huebi View Post
In addition, he set the alt attribut of decorative images to a text string, resulting in a chapter name like

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>
So he defintly has no understandig about the role of the alt attribut .

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
Hitch is offline   Reply With Quote
Old 05-16-2012, 01:46 PM   #20
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
I think you mean using Calibre to do the conversion.
Err. yes of course I meant Calibre.
Toxaris is offline   Reply With Quote
Advert
Old 05-21-2012, 01:24 PM   #21
Thalia Helikon
Enthusiast
Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.Thalia Helikon figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Thalia Helikon's Avatar
 
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:
Originally Posted by Serpentine View Post
when closing tags are very easy to match with regex (unless they are nested, but in that case your solution is even worse).
I am not addressing experts, I am addressing beginners. If a person wants to make a table of contents, I provide step by step instructions to do just that.

Automagic exists for a reason, it is perfectly adequate for at least half of Sigil's users.
Thalia Helikon is offline   Reply With Quote
Old 05-21-2012, 03:35 PM   #22
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,798
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Thalia Helikon View Post
I am not addressing experts, I am addressing beginners.
All the more reason NOT to suggest a solution that has a serious,nasty side effect for 99% of the EPUB I see. (IMHO these are poorly coded... BUT they are common )
theducks is online now   Reply With Quote
Old 05-23-2012, 01:09 PM   #23
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by Thalia Helikon View Post
Automagic exists for a reason, it is perfectly adequate for at least half of Sigil's users.
I just prefer people not to teach each other to run with scissors.
Serpentine is offline   Reply With Quote
Old 05-23-2012, 06:09 PM   #24
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
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?
JSWolf is offline   Reply With Quote
Old 05-24-2012, 04:13 AM   #25
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
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.
Jellby is offline   Reply With Quote
Old 05-24-2012, 02:49 PM   #26
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
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.
If the chapter heading text has *no style* associated with it, the book view trick works.

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
kiwidude is offline   Reply With Quote
Old 05-24-2012, 03:10 PM   #27
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by kiwidude View Post
If the chapter heading text has *no style* associated with it, the book view trick works.

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</p>

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.
Actually, I think leaving the class tag is right. You've just told it to change the p tag to a heading tag, not to get rid of the class tags - which in some cases you might want. So what you want to do is erase the basic formatting/classes before applying the header tag - which isn't available yet but will be in the next version.

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
meme is offline   Reply With Quote
Old 05-24-2012, 03:19 PM   #28
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kiwidude View Post
If the chapter heading text has *no style* associated with it, the book view trick works.

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</p>

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.
My copy of Sigil also replaces the </p> with </h2> when I use the second header style. I have no idea why yours leaves the </p> alone.
JSWolf is offline   Reply With Quote
Old 05-24-2012, 03:19 PM   #29
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
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.
JSWolf is offline   Reply With Quote
Old 05-24-2012, 03:30 PM   #30
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
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.
kiwidude is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:04 PM.


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