Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 12:09 AM   #31
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by DNSB View Post
What exactly do you mean by a "proper heading"?
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.
Sarmat89 is offline   Reply With Quote
Old Yesterday, 12:13 AM   #32
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by KevinH View Post
Allowing html as a core media type, means that your html using epub will no longer work with the installed user base of epub3 e-readers, and furthermore any epub3 that used html can not be made to be backwards compatible with epub2 anymore.
Any serious reader is built around an HTML control, which can handle HTML. So the real HTML support can be implemented with trivial changes.
Sarmat89 is offline   Reply With Quote
Old Yesterday, 01:16 AM   #33
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: 47,216
Karma: 171291588
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sarmat89 View Post
Any serious reader is built around an HTML control, which can handle HTML. So the real HTML support can be implemented with trivial changes.
Can I get a kilogram of what you've been smoking for my next party? It sounds like some righteous shit.

As for multi-line chapter headers? In ePub2, they were pretty trivial. In ePub3, they are even easier.
DNSB is offline   Reply With Quote
Old Yesterday, 05:18 AM   #34
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: 74,156
Karma: 315558334
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Sarmat89 View Post
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.
Umm.... no.

1. <hn> tags do not force text onto a single line
2. <hn> tags do not imply any kind of numbering on the headers

<hn> tags are just like paragraph tags really, except that most (all?) renderers choose to have them in a different default format to <p>
pdurrant is offline   Reply With Quote
Old Yesterday, 06:25 AM   #35
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,479
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Multiline headers in Word/LO Writer are trivial to do and automatically translate to
<h2 class="docx-heading-style">A heading<br />
Heading continued</h2>
.

Headings were not for manuals. By default they are bolded, but the CSS of docx-heading-style can over-ride that if it uses an already bold/heavy font.

In many applications Shift Enter creates a soft carriage return which translated to <br />
Typing Enter alone ends a paragraph or heading and starts a new one in the default style or current style or the style defined to follow a style.

A soft carriage return never starts a new style/paragraph.
Quoth is offline   Reply With Quote
Old Yesterday, 09:48 AM   #36
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,852
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Sarmat89 View Post
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.


You seem to have a very limited idea of what's possible in ePub. But could you post a screenshot or picture of a heading that you claim can't be duplicated in ePub?
RbnJrg is offline   Reply With Quote
Old Yesterday, 11:31 AM   #37
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Sarmat89 View Post
Any serious reader is built around an HTML control, which can handle HTML. So the real HTML support can be implemented with trivial changes.
And then you add in the costs of rewriting the publishing industry's epub toolchain software. And then the you add in the costs of rolling out firmware updates to your epub3 e-readers already in place. And of course that breaks any that are no longer providing firmware updates. Any you keep ignoring the costs associated with breaking backwards compatibly with epub2 only e-readers which are still a big part of the market, especially in Europe, and all of that for what benefit?

You really do not understand epub publishing processes at all.
KevinH is offline   Reply With Quote
Old Today, 03:03 AM   #38
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by pdurrant View Post
<hn> tags are just like paragraph tags really
That's the problem; the headings are not paragraphs. A common header has from two to 4 parts. Only in manuals they write the header and the number in a single paragraph.

There is no provision in HTML for headers consisting of multiple parts.

Quote:
Originally Posted by Quoth View Post
Multiline headers in Word/LO Writer are trivial to do
...
Headings were not for manuals.
They are from the original HTML specification, which was made for man pages. Also, only American-style technical manuals can be adequately formatted with <h> tags.
Sarmat89 is offline   Reply With Quote
Old Today, 08:36 AM   #39
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,479
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Sarmat89 View Post
That's the problem; the headings are not paragraphs. A common header has from two to 4 parts. Only in manuals they write the header and the number in a single paragraph.

There is no provision in HTML for headers consisting of multiple parts.


They are from the original HTML specification, which was made for man pages. Also, only American-style technical manuals can be adequately formatted with <h> tags.
Sorry, but this is nonsense.

Headings work just like paragraphs with <hn (where n is 1 to 10, but ebooks are best limited to any 3 levels) instead of <p.

Headers can have as many parts as you want.

Original HTML was not for "man" pages. Original HTML spec was about 1998 or 1999 and websites using it from about 1992. It had no CSS. The Mobi format was already obsolete in 2015 when Amazon bought Mobipocket and more so on first Kindle in 2017. It uses HTML3 and there is no difficultly simulating any paper book multi-line headings.

"American style manuals"? HTML wasn't even an American design. It was by a British guy in Switzerland.

Edit:
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical if font-weight is specified. The only differences are automatic ToC building using <h tags and semantic (maybe some screen readers).

Last edited by Quoth; Today at 08:40 AM.
Quoth is offline   Reply With Quote
Old Today, 09:15 AM   #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: 80,128
Karma: 148951761
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 Quoth View Post
Edit:
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical if font-weight is specified. The only differences are automatic ToC building using <h tags and semantic (maybe some screen readers).
But in two of yhe most popular ePub editors, h tags are used for automatic ToC generation. a p will not work for that.
JSWolf is online now   Reply With Quote
Old Today, 10:03 AM   #41
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,730
Karma: 205159604
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What html header tags might have been originally created to do could not be more irrelevant to what can be accomplished with them today. Silly Putty was created to clean wallpaper.
DiapDealer is offline   Reply With Quote
Old Today, 10:12 AM   #42
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 480
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Quote:
Originally Posted by DiapDealer View Post
Silly Putty was created to clean wallpaper.

Actually, it was Play-Doh,
slm is offline   Reply With Quote
Old Today, 10:44 AM   #43
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by Quoth View Post
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical
That's what I'm talking about: It is 2025, but you still have to build stupid CSS rules and write several paragraphs and ton of attributes manually just to make a simple chapter heading and make it to the TOC automatically. That's ridiculous.
Sarmat89 is offline   Reply With Quote
Old Today, 10:58 AM   #44
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Sarmat89 View Post
That's what I'm talking about: It is 2025, but you still have to build stupid CSS rules and write several paragraphs and ton of attributes manually just to make a simple chapter heading and make it to the TOC automatically. That's ridiculous.
It seems you do not understand CSS or html. So why are you attempting to post this here and derail this thread?

Moderators, perhaps we can move this discussion of html, css, and headers to its own thread? It is not relevant to this thread's topic.
KevinH is offline   Reply With Quote
Old Today, 12:19 PM   #45
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,479
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Sarmat89 View Post
That's what I'm talking about: It is 2025, but you still have to build stupid CSS rules and write several paragraphs and ton of attributes manually just to make a simple chapter heading and make it to the TOC automatically. That's ridiculous.
CSS replaces inline styles. That works on HTML3 without CSS. It's much easier to use and edit CSS as the multiple Style strings need repeat on each instance and CSS replaces three to eight styles with one sensibly named class. The docx styles from LO Writer or MS Word usually map 1:1 to CSS classes for epub but have to be styles on mobi as it's HTML3. Thankfully old mobi is nearl gone now.

There are many ways to automatically do the ToC and at least 2 work with "headings" done using <p tags, though sematically that's wrong, even though it looks perfect.


You don't have to build anything, unless for some mad reason you are writing an entire novel directly in HTML. I've not done even websites that way for nearly 30 years. I do sometimes edit epubs or web content, but I'd not dream of writing them from scratch.

Do you use "Styles" in MS Word / LO Writer (=CSS), or use direct formatting (= HTML3 styles)?
Quoth is offline   Reply With Quote
Reply

Tags
eprdctn, epub, epub app, epub application, html code


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue converting EPUBs to HTML wolf123 Conversion 2 10-29-2021 12:23 PM
Epubs with oversize html files adrian1944 Conversion 6 01-01-2014 11:15 AM
Help! Problem with HTML tables in epubs nazzing ePub 3 06-05-2013 10:15 AM
Touch Kobo Touch and html links in epubs leaperk Kobo Reader 1 07-05-2011 02:56 PM
Is it possible to change how Calibre formats HTML for Epubs chief Calibre 8 07-07-2010 03:04 PM


All times are GMT -4. The time now is 02:05 PM.


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