Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2019, 01:16 PM   #16
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,503
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 snarkophilus View Post
I'm certainly guilty of using headers for choosing font sizes for subtitles, etc. I'm curious to see a discussion about this. At the possible risk of dragging up unpleasant memories, do you have pointer to said discussion? I had a quick look and couldn't find it.
BAD! BAD BAD!

Okay, so...in less strident tones, it was, in fact, someone that I met here, back 9-10 years ago, that "learned me not to do that."

In a PDF, at least, before now, it didn't matter if you used a heading style for text formatting. A PDF really only cared what something LOOKED like, not what it was. (Altho, this is a bad comparison, as PDFs do not spring into existence full-grown, like Pegasus from the head of Medusa; thus, these things did matter, but bear with me.) But it does matter in Word, in all word-processors, html and ebooks. Why?

Because headings are structural, not decorative. They mean something. An h1, for example, is more "important" than an h2. An h3 is less important than that same h2. The use of headings informs the document about the overall structure of the file. Think of an outline. That's the relevance of headings, in a word.

If you want to see the relevance of headings, and why you oughtn't use them for decoration, take a tutorial or class in using Word's built-in Styles and Headings. Let's see...start with this one, I guess: http://www.addbalance.com/usersguide...dingStyles.htm and there are numerous courses online.

But the shorter answer is, they're structural. They have NOTHING to do with how text looks. Nothing at all. You tell a given style how text looks, not its heading style.

To understand all of this, you need to learn about Word's built-in styles and then move to headings. Don't say "I don't use Word," the same concepts apply to all word processors whether they are Atlantis or OO or LO or Word or Wordperfect.

Good luck.

Hitch
Hitch is offline   Reply With Quote
Old 08-11-2019, 03:45 PM   #17
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
Quote:
Originally Posted by snarkophilus View Post
I'm certainly guilty of using headers for choosing font sizes for subtitles, etc. I'm curious to see a discussion about this. At the possible risk of dragging up unpleasant memories, do you have pointer to said discussion? I had a quick look and couldn't find it.
<hx> is a semantic tag, it gives the content a special meaning, not a special look or formatting!
Vroni is offline   Reply With Quote
Old 08-11-2019, 04:35 PM   #18
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Hitch View Post
Unasked-for-comment: if you plan to use your ePUB for Kindle-building, don't use the Blitz CSS. You need a lot more experience under your belt to understand what's happening with all the inheritance functionality in that, and a lot of it will not work for MOBI and it certainly won't for KF7.

Hitch
I do use the Blitz reset.css; I hope that doesn't cause problems. In my main css file I use @import to pull it in from the Styles directory. I've always wondered if it's safe pulling it in that way.

I'm also wondering about the best/safest way to set up what I think of as boxes/blocks that go between paragraphs. I was following the guidelines of standardebooks.org and using blockquotes for everything until tex2002ans pointed out the error of my ways. I couldn't think of a way to make a generic inter-paragraph block with a div since divs can be used in other ways as well so I didn't want to attach any css to a plain div. Then I saw a response on stackexchange about how you can attach several classes to an html tag so now in my css I have div.block for the generic block div, and for the other ones, div.letter (italics), div.notice (sans-serif), etc., and in my html I use 'div class="block letter"'. I think another way to set up the generic div would be to use something like 'div.letter, div.notice, etc. { generic div block stuff here }' and then, as before, div.notice would have stuff specific to it.

An important goal for me is to design the css so that I can use as few classes as possible in the html. So that means combinators, +, >, space, etc. Again, I'm not sure how portable that is.

Last edited by lumpynose; 08-11-2019 at 04:37 PM.
lumpynose is offline   Reply With Quote
Old 08-11-2019, 10:30 PM   #19
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by Hitch View Post
BAD! BAD BAD!
Thanks, got the message loud and clear .

Quote:
Originally Posted by Hitch View Post

Okay, so...in less strident tones, it was, in fact, someone that I met here, back 9-10 years ago, that "learned me not to do that."

[ ... ]

Because headings are structural, not decorative. They mean something.

Hitch
Done a little extra reading (thanks for the Word link), and also found this thread about chapter formatting. All making much more sense now.

I have learnt the error of my ways!
snarkophilus is offline   Reply With Quote
Old 08-11-2019, 10:52 PM   #20
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: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I avoid sequential H tags (eg chapter number, chapter title) because the non-wary till end up with a Calibre conversion splitting the file there

I prefer to use a span class= around the title part (allows it to be styled differently) and use a <br />to split the lines
Works nice for header based auto-generated TOC

Hitch probably has a case where this would be frowned upon
theducks is offline   Reply With Quote
Old 08-12-2019, 12:45 AM   #21
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by snarkophilus View Post
Done a little extra reading (thanks for the Word link), and also found this thread about chapter formatting. All making much more sense now.

I have learnt the error of my ways!
I had read that thread and had started doing the "right thing" but then have backslid and was using h3 tags for subtitle-ish things. I reread that thread after seeing this thread. I now think that Turtle91's method is what I prefer; using a span that's set to block display; no need for a br and I can put top and bottom margins on it. But even that is overkill for what I do; so far the subtitle has been where the short story was originally published so I have it as a paragraph that's formatted like an h3. The h2 and that paragraph are inside/between a header and /header which provides the overall spacing for that header.

One thing that I found out is that instead of having to do the math for the size of the text, as DNSB explains, instead of em I use rem; root em.
lumpynose is offline   Reply With Quote
Old 08-12-2019, 02:30 AM   #22
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
What exasctly do you mean with "sequential" H tags. And does Claibre really breaks a page at every H-tag, even H6? Another reason not to use it.
Vroni is offline   Reply With Quote
Old 08-12-2019, 03:59 AM   #23
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Vroni View Post
What exasctly do you mean with "sequential" H tags. And does Claibre really breaks a page at every H-tag, even H6? Another reason not to use it.
Only if you configure it that way, the default setting has a common-sense XPath expression Ψ

BR
BetterRed is offline   Reply With Quote
Old 08-12-2019, 05:24 AM   #24
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
Ok, more preciously asked: what is the difference between H-Tags and sequential H-Tags?
Vroni is offline   Reply With Quote
Old 08-12-2019, 05:31 AM   #25
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Vroni View Post
Ok, more preciously asked: what is the difference between H-Tags and sequential H-Tags?
No idea, maybe the first has an implied 'random' in front of it

I was just setting the record straight regarding what calibre does with H Tags.

BR
BetterRed is offline   Reply With Quote
Old 08-12-2019, 11:35 AM   #26
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,503
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 Vroni View Post
Ok, more preciously asked: what is the difference between H-Tags and sequential H-Tags?
Ducky means doing something like this:

Chapter One (H1)
It Was A Dark And Stormy Night (h2) (or H1)

When you try to format TOCs, automatically, that sort of thing can bollix up the layout AND semantically, it's somewhat wrong. After all, from a structural standpoint, the chapter number-title is a single point; the chapter "head." Right? There isn't outline difference between the two; the title isn't a subhead to the chapter number.

Ducky--I have no problem with how you do that, using spans or whatever. It's "more correct" than using a heading class for it, IMHO. Some people "solve" it by wrapping the entire kit and kaboodle in a heading tag and using a break, but we all know the problems inherent in that.

@Lumpy:

When the goal is to have very short CSS--which is in and of itself, a good goal--you can end up doing what standardebooks.org does, which is using combinators, but there's a huge blind spot there, with the assumption that those will work, no matter what. I'm the first to admit that I'm overly-aware of the older devices, due to my work and constant attention to the older Amazon Kindles, but KF7 devices won't pay a lick of attention to a combined class. I downloaded Sayers' "Whose Body," for example and I see that in their ePUB3 (which was allegedly their ePUB2.0, mind you) they used first-child inside a blockquote coupled with breaks to create two lines of verse.

To me, that's somewhat make-work. Why not use a simple indented paragraph class instead? (Yes, someone could argue that semantically, lines of a poem are more "blockquote" than paragraph, but...c'mon...). They used the same coding for LPW's business card, handed to someone. thus, it's their "go-to" for anything that they feel should be indented and set off with vertical whitespace above and below the cited text.

So...you know, one of the reasons that it's hard for formatting companies to "fix" other businesses' or individuals' formatting is just that--HTML and CSS are very individualized. Sure, a p is a p, and all that, but by the time you figure out what someone else has done, it's cheaper to redo the whole damn book.

Hitch
Hitch is offline   Reply With Quote
Old 08-12-2019, 03:24 PM   #27
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,752
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 Hitch View Post
So...you know, one of the reasons that it's hard for formatting companies to "fix" other businesses' or individuals' formatting is just that--HTML and CSS are very individualized. Sure, a p is a p, and all that, but by the time you figure out what someone else has done, it's cheaper to redo the whole damn book.

Hitch
It's astounding how many excess CSS classes there can be in commercial eBooks. I forget which book it was, but it had 142 extra CSS classes. That's ridiculous. I put in my own body and p styles, get rid of all the excess styles, clean up the stupid stuff, go through the XML files to see what's there and when done, I have an eBook that's much better formatted then it was before I got at it.
JSWolf is offline   Reply With Quote
Old 08-12-2019, 04:22 PM   #28
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Hitch View Post
I downloaded Sayers' "Whose Body," for example and I see that in their ePUB3 (which was allegedly their ePUB2.0, mind you) they used first-child inside a blockquote coupled with breaks to create two lines of verse.

To me, that's somewhat make-work. Why not use a simple indented paragraph class instead? (Yes, someone could argue that semantically, lines of a poem are more "blockquote" than paragraph, but...c'mon...). They used the same coding for LPW's business card, handed to someone. thus, it's their "go-to" for anything that they feel should be indented and set off with vertical whitespace above and below the cited text.
Yes, I completely agree. That's what I was talking about when I said that tex2002ans pointed out the error of my ways. I agree that many things could be considered quotes but as you say they're using blockquote for a generic block with whitespace above and below, which I can sympathize with until you instead use the double class trick; e.g., div class="block poem". As far as make-work, if you read their instructions about their whole tool chain, well, my eyes glazed over; made me wonder how many volunteers they really get.
lumpynose is offline   Reply With Quote
Old 08-12-2019, 04:31 PM   #29
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Hitch View Post
When the goal is to have very short CSS
My goal isn't to have short CSS but to have as little as needed in the html, which admittedly does require combinators. So for example, that's why I love the p+p thing for indented paragraphs instead of the usual p class="noindent" for the nonindented ones, or listing all the various places where you don't want it indented. (I learned about p+p here.)

Another goal is to have css that's relatively easy to change for people who don't like my style, which is ragged right and indented and no white space between paragraphs. I now have a comment at the top of the css which directs them to the bottom where they can uncomment a few lines to change those things.
lumpynose is offline   Reply With Quote
Old 08-12-2019, 04:33 PM   #30
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Hitch View Post
KF7 devices won't pay a lick of attention to a combined class.
Do you mean what I'm doing with div class="block poem"?
lumpynose is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 crutledge Kindle Books (offline) 0 02-22-2011 06:05 AM
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 crutledge ePub Books (offline) 0 02-22-2011 06:03 AM
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 crutledge BBeB/LRF Books (offline) 0 02-22-2011 06:01 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 11:49 AM.


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