![]() |
#31 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
|
|
![]() |
![]() |
![]() |
#32 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Any serious reader is built around an HTML control, which can handle HTML. So the real HTML support can be implemented with trivial changes.
|
![]() |
![]() |
![]() |
#33 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,216
Karma: 171291588
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for multi-line chapter headers? In ePub2, they were pretty trivial. In ePub3, they are even easier. |
|
![]() |
![]() |
![]() |
#34 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,156
Karma: 315558334
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
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> |
|
![]() |
![]() |
![]() |
#35 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#36 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,852
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() ![]() 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? |
|
![]() |
![]() |
![]() |
#37 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
|
Quote:
You really do not understand epub publishing processes at all. |
|
![]() |
![]() |
![]() |
#38 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
|
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. |
![]() |
![]() |
![]() |
#39 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,479
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#40 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
But in two of yhe most popular ePub editors, h tags are used for automatic ToC generation. a p will not work for that.
|
![]() |
![]() |
![]() |
#41 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#43 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
|
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.
|
![]() |
![]() |
![]() |
#44 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#45 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,479
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
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)? |
|
![]() |
![]() |
![]() |
Tags |
eprdctn, epub, epub app, epub application, html code |
|
![]() |
||||
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 |