View Single Post
Old 12-15-2017, 07:43 PM   #3
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by KevinH View Post
Prettify changes whitespace in an attempt to cleanly indent html code to make it more readable by humans. I typically only use this if I am starting from code that is horrible.

Mend tries to make no whitespace changes and does the absolute minimum to fix broken html.

I personally use mend on open only and that is because gumbo will fix the code so that it is parseable to update links and things when an epub is first opened anyway.


CSS setting is personal preference since epub2 is somewhere between those two CSS specs.



Tidy is no longer part of Sigil because it often ate text.
Thanks Kevin. I was just testing the Mend vs Mend & Prettify. I've always used the Mend and prettify instead of the Mend. I like it that Mend/Prettify removes the white spaces and straightens things out. But you say Mend does the absolute minimum to fix broken code. Is that a good thing? By using Mend/Prettify am I at a disadvantage to using just Mend?

(And I don't think I have a lot of broken code. I'm just doing my own stuff. Stuff that I write and then turn into an epub.)

You wrote:
Quote:
I personally use mend on open only and that is because gumbo will fix the code so that it is parseable to update links and things when an epub is first opened anyway.

The above is kind of over my head. What is gumbo? The way you wrote it it sounds like Mend and gumbo are both fixing the code.

Is there any disadvantage to the way I have it (having Mend on Open and Save)?

And I googled and CSS 3 has a bunch of new stuff. But is my CSS going to need anything more than the CSS 2.1?
Spoiler:

@page {
margin-top: 1em;
margin-bottom: 1em;
}

h1, h2, h3, h4 {
text-align: center;
text-indent: 0;
}

blockquote {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 10%;
margin-right: 10%;
}

.supermargintop {
margin-top: 5em;
}

.margintop {
margin-top: 1em;
}

.right {
text-indent: 0;
text-align: right;
}

.center {
text-indent: 0;
text-align: center;
}

/*This book only CSS*/
p {
text-indent: 1.5em;
margin-top: 0em;
margin-right: 0em;
margin-bottom: 0em;
margin-left: 0em;
text-align: left;
}

p.first {
text-indent: 0;
}

span.smallcaps {
font-size: .9em;
}

p.asterisks {
margin-top: 1em;
margin-bottom: 1em;
text-indent: 0;
text-align: center;
}

/*Title Page Only CSS*/

.paddingtop {
padding-top: 1em;
}

.bigmargintop {
margin-top: 2em;
}

/*Table of Contents Only CSS*/

.tocone {
text-align: left;
text-indent: -2em;
margin-left: 2em;
}
Gregg Bell is offline   Reply With Quote