Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2015, 12:54 PM   #46
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: 79,771
Karma: 145864619
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 phillipgessert View Post
I think it just depends on the sort of book. If I'm reading a guidebook or some reference material and am literally just flitting my eyes across a page hunting for some topic or other, I think I'd rather the paragraph spacing. But if it's meant for continuous reading, is basically telling a "story", then the same rules apply as for fiction.
You don't need paragraph spaces in reference material because we can search for what we want.
JSWolf is offline   Reply With Quote
Old 12-22-2015, 12:59 PM   #47
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 316
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by JSWolf View Post
You don't need paragraph spaces in reference material because we can search for what we want.
Mm, I don't know about all that. A search can't do the job of a human eye scanning a page and interpreting surrounding content to figure what's worth reading and what's not. But design decisions like that are subjective to a degree, which really just highlights the need for thoughtful CSS.
phillipgessert is offline   Reply With Quote
Advert
Old 12-22-2015, 01:08 PM   #48
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: 79,771
Karma: 145864619
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 phillipgessert View Post
Mm, I don't know about all that. A search can't do the job of a human eye scanning a page and interpreting surrounding content to figure what's worth reading and what's not. But design decisions like that are subjective to a degree, which really just highlights the need for thoughtful CSS.
What we need (IMHO) are options in the reading software to specify indents/no indents, & paragraph spaces (how wide) or none. So if an eBook was made properly, the software could be set how it's wanted to look. That would be a major step forward. Also, we need no margins so we can set the margins as we want. No line height unless there is a need and we can set as we want as well. Basically, most of the formatting could be set a certain way unless there's a need otherwise and set as we want.
JSWolf is offline   Reply With Quote
Old 12-22-2015, 02:13 PM   #49
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
... you'd notice that the 505 does NOT allow changing fonts. The only way to change the fonts used in the 505 is to embed them.
<nitpick>Short memory, Jon? The custom font tricks that worked on the PRS650/PRST1 etc also worked on the PRS505, either using PRSPlus or a DIY approach. There never was a need to embed fonts into every epub.

P.S. A text indent of 1em isn't too small for me, in fact it's my personal Goldilocks option. Not too big, not too small, just right.</nitpick>

I have a personal calibre plugin which does epub surgical CSS tweaks via GUI point&clicks. Every now and again I think about releasing it into the wild. This thread is serving as a valuable reminder why it would be a Really Bad Idea. CSS preferences seem to be more of a Religion than a Science
jackie_w is offline   Reply With Quote
Old 12-22-2015, 02:45 PM   #50
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: 79,771
Karma: 145864619
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 jackie_w View Post
<nitpick>Short memory, Jon? The custom font tricks that worked on the PRS650/PRST1 etc also worked on the PRS505, either using PRSPlus or a DIY approach. There never was a need to embed fonts into every epub.</nitpick>
That's embedding from outside the ePub. But it's still referencing other font(s).

Quote:
I have a personal calibre plugin which does epub surgical CSS tweaks via GUI point&clicks. Every now and again I think about releasing it into the wild. This thread is serving as a valuable reminder why it would be a Really Bad Idea. CSS preferences seem to be more of a Religion than a Science
Please, release the plugin. Some will find it useful and use it. Others not and won't use it. It would be good for those that would find it useful.
JSWolf is offline   Reply With Quote
Advert
Old 12-22-2015, 02:57 PM   #51
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
Quote:
Originally Posted by ProDigit View Post
So, if you have absolutely nothing to add in a css, what would you say, would be the utter minimum that a css file should exist out of?
Can you leave a css fine empty (zero bytes)?
Because all the <Hn> tags are so similar in size (to me), I like to make H2 and H4 underlined in the CSS:

h2 {text-decoration:underline}
h4 {text-decoration:underline}

But that's just me. And the default <h4> is the same size as regular text. Which can be odd.
crankypants is offline   Reply With Quote
Old 12-22-2015, 06:46 PM   #52
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by JSWolf View Post
What we need (IMHO) are options in the reading software to specify indents/no indents, & paragraph spaces (how wide) or none. So if an eBook was made properly, the software could be set how it's wanted to look. That would be a major step forward. Also, we need no margins so we can set the margins as we want. No line height unless there is a need and we can set as we want as well. Basically, most of the formatting could be set a certain way unless there's a need otherwise and set as we want.

IMO, to support that, we need:

1. A standard way to create a group of related rules that the reader must either use all of or none of, e.g. for positioning and font control of a drop cap, for specifying foreground and background colors of an inverted block of text, etc.

2. A simple way to specify lengths in more complex ways, e.g. setting margin-left to .25" or a certain percentage of the width, whichever is greater, without using JavaScript.

3. Agreement from the reader vendors on a standard way to specify default styles so that when we have specific paragraphs that actually need to have (for example) no indent, we can guarantee that the reader won't do something stupid when the reader turns on paragraph indentation.

4. Agreement from the reader vendors to not do stupid things like Amazon does, where they forcibly set a minimum line height of 1.2, making drop caps and other such things a pain in the backside.

5. Agreement from the reader vendors on one standard way to specify the default body font, and one standard way in which it will be overridden by every vendor, so that Nook won't use styles in a different way that breaks fonts on headings, iBooks won't use styles in a different way that ends up breaking styles in spans, etc.

6. Agreement from the reader vendors to not use the universal selector in their reader stylesheets. Ever.

And so on.
dgatwood is offline   Reply With Quote
Old 12-22-2015, 09:22 PM   #53
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
Quote:
Originally Posted by crankypants View Post
Because all the <Hn> tags are so similar in size (to me), I like to make H2 and H4 underlined in the CSS:

h2 {text-decoration:underline}
h4 {text-decoration:underline}

But that's just me. And the default <h4> is the same size as regular text. Which can be odd.
Yeah, which is why I don't use any heading under h4, as h5 is actually smaller than the paragraph text.

For HTML, have you tried doing:

Code:
<a href="" <h2>Heading underline</h2> </a>
It's an option that might, or might not work, depending on your device, as an alternative to:
Code:
<u><h2>Heading underline</h2></u>
ProDigit is offline   Reply With Quote
Old 12-23-2015, 03:17 AM   #54
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 ProDigit View Post
Yeah, which is why I don't use any heading under h4, as h5 is actually smaller than the paragraph text.

For HTML, have you tried doing:

Code:
<a href="" <h2>Heading underline</h2> </a>
It's an option that might, or might not work, depending on your device, as an alternative to:
Code:
<u><h2>Heading underline</h2></u>
That is ugly coding! There is no need at all for a hyperlink or the underline tag. It can easily be solved in the stylesheet. Also, if you want to change something later to the styling like size, italic, bold, position, margin, whatever, you only need to change the stylesheet and it is done in all the (x)html files using the stylesheets without the need to change it manually to all the tags.
Using stylesheets really, really makes your life a lot easier and creates cleaner code.
Toxaris is offline   Reply With Quote
Old 12-23-2015, 04:23 AM   #55
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,964
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by ProDigit View Post
Yeah, which is why I don't use any heading under h4, as h5 is actually smaller than the paragraph text.

For HTML, have you tried doing:

Code:
<a href="" <h2>Heading underline</h2> </a>
It's an option that might, or might not work, depending on your device, as an alternative to:
Code:
<u><h2>Heading underline</h2></u>
Which shows why CSS is a much better solution. Rather than changing the coding of every instance of <h2>, just add one line to the CSS file.
pdurrant is offline   Reply With Quote
Old 12-23-2015, 04:54 AM   #56
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,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by ProDigit View Post
Yeah, which is why I don't use any heading under h4, as h5 is actually smaller than the paragraph text.
Which is why you should use stylesheets. Use <h1>...<h6> as the structure requires them, and then use stylesheets to give them the look you want, making sure they are all larger than normal text, if that's your wish.
Jellby is offline   Reply With Quote
Old 12-23-2015, 05:16 AM   #57
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
ProDigit, you seem to be thinking up every excuse under the sun for not using CSS, when it's hugely beneficial to do so. Having all your formatting instructions together in one place is enormously easier than applying formatting separately to each element in the book.

By having a CSS definition for your <p> tag you can instantly change the spacing and indentation for every paragraph in the book by editing one definition in the CSS. Surely you see the benefit of this compared to having to edit every paragraph individually if you want to change its indentation?
HarryT is offline   Reply With Quote
Old 12-23-2015, 05:35 AM   #58
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: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Besides, in CSS you can change the default font size of the H tags to whatever you want.
JSWolf is offline   Reply With Quote
Old 12-23-2015, 06:59 AM   #59
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
Besides, in CSS you can change the default font size of the H tags to whatever you want.
Yes!

On my websites, I use tags all the way from H1 to H5. In my books, from H2 to H4. (It's not just font size, either; I use centered and flush left, italics and roman.) For the books:

h2 {
margin-top:1em;
font-size: 150%;
text-indent: 0em;
font-style: italic;
text-align:center;
}

h3 {
margin-top:1em;
font-size: 125%;
text-indent: 0em;
text-align:center;
}

h4 {
margin-top:1em;
font-size: 125%;
text-indent: 0em;
text-align:left;
}

Those being the chapter heads, major section breaks, and breakheads. (I am sure that most of you can guess why there is no H1: it originally was for the book title.)
Notjohn is offline   Reply With Quote
Old 12-23-2015, 05:51 PM   #60
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
Quote:
Originally Posted by Toxaris View Post
That is ugly coding! There is no need at all for a hyperlink or the underline tag. It can easily be solved in the stylesheet. Also, if you want to change something later to the styling like size, italic, bold, position, margin, whatever, you only need to change the stylesheet and it is done in all the (x)html files using the stylesheets without the need to change it manually to all the tags.
Using stylesheets really, really makes your life a lot easier and creates cleaner code.
I'm not sure,
You could link the hyperlink to the TOC, or Index file (even to an external http link).
Then again, you could do that in css as well, I guess... Any heading <H1> to <H4> reverts back to the index or some part of the book...
Different scenario, when every heading links to different places. Then individual links are necessary, in which the heading will be underlined.

Last edited by ProDigit; 12-23-2015 at 05:54 PM.
ProDigit is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting cm to em in css stylesheet roger64 ePub 41 06-13-2014 01:00 PM
Question: Find/Replace in css stylesheet ElMiko Sigil 12 12-25-2011 06:29 AM
ePub margins : @page vs stylesheet.css Agama Calibre 1 08-16-2010 04:37 PM
How to maintain a global CSS stylesheet amoroso Sigil 7 07-18-2010 08:37 PM
Where is the stylesheet.css? roger64 Sigil 4 03-23-2010 02:12 PM


All times are GMT -4. The time now is 10:27 PM.


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