Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2020, 11:59 AM   #31
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: 74,019
Karma: 129333114
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 Turtle91 View Post
Yes, I also use this technique when I don't want, or can't have, a visual representation on the page but still need the structural definition of a header...and the functionality of an auto-generated TOC.

eg.
Code:
<h2 title="Copyright" style="display:none" />
That I find rather sloppy and lazy to have styles in the XHTML code. The display:none should be done in CSS and the code would look like...

Code:
<h2 title="Copyright none"/>
JSWolf is online now   Reply With Quote
Old 06-12-2020, 11:59 AM   #32
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 JSWolf View Post
That is an unusual eBook. In most cases, it's <p> for all of that. I would like it if the authors spoke out about the way their books are make as eBooks so maybe things would be made properly.
No it's not, Jon. That's not "most cases."

Are you serious? If Authors spoke out? What on earth do you think that would accomplish?

You realize you're talking to someone whom, out of 5,000+ ebooks, can count on ONE HAND the number of times I've seen a file with styles and headings used??????? WHAT is going on inside your noggin', brother?

Hitch
Hitch is offline   Reply With Quote
Advert
Old 06-12-2020, 12:14 PM   #33
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
That I find rather sloppy and lazy to have styles in the XHTML code. The display:none should be done in CSS and the code would look like...

Code:
<h2 title="Copyright none"/>
I would normally agree with not using styles in the code...However, your solution doesn't work at all.

1) I don't want the title to be 'Copyright none' I want it to be 'Copyright'
2) Without assigning a class then the display:none would apply to ALL <h2>
3) If I assign a class to it, then I'm not really saving anything am I
Code:
<h2 title="Copyright" style="display:none" />
vs.
<h2 title="Copyright" class="nodisplay" />
4) Some older readers don't recognize CSS files, so having the embedded style assures that I don't have the header pop up when I really don't want it to.
5) This only applies to 1, maybe 2, headers in the entire book. Soooo I'm comfortable with having the embedded style in this case.
Turtle91 is online now   Reply With Quote
Old 06-12-2020, 12:14 PM   #34
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
Quote:
Originally Posted by Sarmat89 View Post
The chapter headers are usually going like that:
ONE
[some fancy graphics]
It Begins
while in the ToC something like that is put:
Chapter one. It Begins
HTML hierarchic headers are useless here.
Ah... You mean that this is the wrong way of coding it:
Code:
<h2>ONE</h2>
<h3>[some fancy graphics]</h3>
<h4>It Begins</h4>
and with that, I agree. Those are not different level headings, those are different parts of the same heading. I hereby declare that the right way of coding™ it is (something similar to):
Code:
<h1><span class="number">ONE</span>
<span class="graphic">[some fancy graphics]</span>
It Begins</h1>
Yes, <h1>, because the chapter is probably the higher level. No, the book title in the title page is not the highest level, that's just presentational.


Last edited by Jellby; 06-12-2020 at 02:13 PM. Reason: typo
Jellby is offline   Reply With Quote
Old 06-12-2020, 12:22 PM   #35
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Have I ever mentioned you're evil...and totally wrong....

Code:
<h3>One <img alt="" src="graphic.jpg"/><span>It Begins</span></h3>


h3      {font-size:1.3em; font-weight:bold, text-align:center}
h3 img  {display:block; margin:.5em auto; width:15%; max-width:250px}
h3 span {display:block; margin:.5em auto 0; font-size:1.1em; font-variant:small-caps}

Last edited by Turtle91; 06-12-2020 at 12:32 PM.
Turtle91 is online now   Reply With Quote
Advert
Old 06-12-2020, 12:28 PM   #36
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: 74,019
Karma: 129333114
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
No it's not, Jon. That's not "most cases."

Are you serious? If Authors spoke out? What on earth do you think that would accomplish?

You realize you're talking to someone whom, out of 5,000+ ebooks, can count on ONE HAND the number of times I've seen a file with styles and headings used??????? WHAT is going on inside your noggin', brother?

Hitch
I've dug in the innards of many eBooks and I rarely see <h for chapter headers, sub headers, and section headers.
JSWolf is online now   Reply With Quote
Old 06-12-2020, 12:32 PM   #37
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: 74,019
Karma: 129333114
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 Turtle91 View Post
4) Some older readers don't recognize CSS files, so having the embedded style assures that I don't have the header pop up when I really don't want it to.
Which Readers do not like CSS? I know Mobi doesn't on Kindles but Kindlegen sorts that.
JSWolf is online now   Reply With Quote
Old 06-12-2020, 12:35 PM   #38
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Hmmm, I would say it is very few of the books I've looked into that DON'T use <h> tags. Occasionally I'll see some that use the <div> around everything and <p> around what should be headers.

Where do you get most of the books that you are cleaning up?
Turtle91 is online now   Reply With Quote
Old 06-12-2020, 12:36 PM   #39
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
Which Readers do not like CSS? I know Mobi doesn't on Kindles but Kindlegen sorts that.
I figured you were the expert on old readers...

But, yes, mobi was the one that came to mind.
Turtle91 is online now   Reply With Quote
Old 06-12-2020, 01:52 PM   #40
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: 74,019
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Here are two scrambled eBooks that I did purchase that do not use h? for the headers. I did edit them, but I did not change the header class or change from h?. All p and all h? in these eBooks are in the same places as they were when downloaded.
Attached Files
File Type: epub scrambled02.epub (607.8 KB, 186 views)
File Type: epub scrambled01.epub (442.7 KB, 199 views)

Last edited by JSWolf; 06-12-2020 at 01:55 PM.
JSWolf is online now   Reply With Quote
Old 06-12-2020, 02:15 PM   #41
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
Quote:
Originally Posted by Turtle91 View Post
Code:
<h3>One <img alt="" src="graphic.jpg"/><span>It Begins</span></h3>


h3      {font-size:1.3em; font-weight:bold, text-align:center}
h3 img  {display:block; margin:.5em auto; width:15%; max-width:250px}
h3 span {display:block; margin:.5em auto 0; font-size:1.1em; font-variant:small-caps}
Absolutely not! "font-size:1.3em"? C'mon, it should be "font-size:130%"! And "width:15%" is definetely too small for my smart watch!
Jellby is offline   Reply With Quote
Old 06-12-2020, 02:36 PM   #42
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 JSWolf View Post
Here are two scrambled eBooks that I did purchase that do not use h? for the headers. I did edit them, but I did not change the header class or change from h?. All p and all h? in these eBooks are in the same places as they were when downloaded.
Jon:

What are you proving? That there are sh***y bookmakers out there? Dude, I would absolutely stipulate to that. You're preaching to the choir, that there are crappy bookmakers.

It doesn't make it RIGHT, just because it's commonplace. People say "I could care less" daily...does that mean YOU will????

Hitch
Hitch is offline   Reply With Quote
Old 06-12-2020, 06:06 PM   #43
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
Here are two scrambled eBooks that I did purchase that do not use h? for the headers. I did edit them, but I did not change the header class or change from h?. All p and all h? in these eBooks are in the same places as they were when downloaded.
Where did you get them? Certainly, different publishers have different standards of quality.

I'd expect near perfection with anything from booknook.biz, and I wouldn't touch anything from sma*?%!#ds....without expecting to do extensive fixing up.
Turtle91 is online now   Reply With Quote
Old 06-12-2020, 07:36 PM   #44
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 Turtle91 View Post
Where did you get them? Certainly, different publishers have different standards of quality.

I'd expect near perfection with anything from booknook.biz, and I wouldn't touch anything from sma*?%!#ds....without expecting to do extensive fixing up.
Oh, darlin', perfection ain't us, but we try hard. :-)

Hitch
Hitch is offline   Reply With Quote
Old 06-12-2020, 11:25 PM   #45
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,468
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
I've dug in the innards of many eBooks and I rarely see <h for chapter headers, sub headers, and section headers.
Interesting. I just did a search on my ebook archive (ebooks before they are loaded into calibre for fixup). Out of 7914 epubs, 7401 had <hx> tags while the remaining 513 did not. I looked at 20 or so of the ones that didn't and they used <p> tags for the headers. Makes building the TOC whether nav.xhtml or toc.ncx) more of a pain than it needs to be.

Most used at most 2 levels <h1> and <h2> while one coded by an anal retentive went all the way from <h1> to <h6>.

Some of them created by Vellum wrapped 4 or more levels of <div> around the <hx> tag. The funny part being that 2 or 3 of the <div> tags had a class that did not exist in the CSS.

That search ran most of the day while I was busily working from home. I suspect that having to unpack the epubs into a temp directory before searching did nothing for the search speed.
DNSB is online now   Reply With Quote
Reply

Tags
semantic markup


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Span Span Span Sigil cleaning up indesign blackest Sigil 31 12-06-2017 10:16 AM
Span Span Span Span MULTIVAC ePub 7 12-06-2014 08:58 AM
Nested Span? Turtle91 ePub 4 05-20-2013 02:47 PM
span in span: is this problematic? tbuyus ePub 8 03-31-2013 08:01 AM
Remove <br /> together with span, and only span Razzia Recipes 3 05-30-2011 06:55 PM


All times are GMT -4. The time now is 06:46 PM.


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