02-14-2017, 08:20 AM | #16 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Kindlegen supports other character encodings on other type of kindlebook sources, but that wouldn't apply to valid epub sources being converted (which MUST be UTF-8/16). There is no "forcing" of UTF-8. Any epub rendering system that doesn't assume UTF-8/16 is a broken epub rendering system. And any epub that isn't UTF-8/16 encoded (regardless of whether your meta tag attribute is present) is a broken epub archive. Last edited by DiapDealer; 02-14-2017 at 08:30 AM. |
|
02-14-2017, 11:04 AM | #17 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Trust is a good thing, but control is a better one.
Now I have reduced the head section one step further: to 0. This also functions. Not in any visible or perceptible aspect, this version is different on the ereader from the full parallel version (apart of the stylesheet.css instructions, of course). Direct html <i> or also <i class="calibre4"> tags are considered. Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> Last edited by chaot; 02-14-2017 at 11:30 AM. |
Advert | |
|
02-14-2017, 12:05 PM | #18 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-14-2017, 12:15 PM | #19 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
You and the other participants can believe me: My intention is not to produce some unrest.
But only for questions, stubborn questions may arise cognition. Opinions (motto: that's how I've always done it, so it is or should be right) do not base any cognition. The theme head section seem me important enough to discuss it. Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="stylesheet.css" rel="stylesheet" type="text/css"/> </head> Last edited by chaot; 02-14-2017 at 01:50 PM. Reason: truth → cognition |
02-14-2017, 12:37 PM | #20 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We're not sopeaking from personal perference. We're speaking from experience. The title tags are required. Even if they're empty. An external stylesheet is highly recommended (but not required). If there's a stylesheet in your epub that's never linked to an xhtml file (in the head), most validators and/or epub checking tools are going to warn you about unused resources.
To learn, take out what you think you should be able to, and use EpubCheck to determine if you were wrong. There's no reason for you to blindly trust our opinions on the matter. Use EpubCheck That's what it's for. Last edited by DiapDealer; 02-15-2017 at 04:09 AM. |
Advert | |
|
02-14-2017, 12:47 PM | #21 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Obviuosly erroneously posted at the wrong spot.
I will answer in the appropriate thread. That's here! Answer: The ordinary way I always do it. Both ToC's function in ereader. inline ToC Table of Contents Last edited by chaot; 02-15-2017 at 10:37 AM. Reason: normal→ordinary |
02-14-2017, 01:17 PM | #22 | |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
EPUB Validator (beta) Results.
One more vote (7 first entries) Quote:
@DiapDealer: Please say something about that other errors. Calibre CheckBook is actually OK!? Last edited by chaot; 02-15-2017 at 10:39 AM. Reason: garmmatical issues |
|
02-14-2017, 01:30 PM | #23 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There's no way of knowing without seeing the code in question. At a guess, all the errors involving the p element are probably a result of <p> tags being illegally nested inside other block-level elements.
|
02-14-2017, 01:42 PM | #24 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
That is the code. – So far was everything OK for me as long as CheckBook is OK.
Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body class="calibre"> <img src="index-1_1.png" class="calibre1"/> <h3 id="u3pAA2rri29VOAmDQCbdKx9">Impressum</h3> <p class="calibre2"></p> <p class="calibre2"><b class="calibre3">Jeppe Aakjær </b></p> <p class="calibre2"> <i class="calibre4"><b class="calibre3">Die Kinder des Zorns </b></i></p> <p class="calibre2"> <i class="calibre4"><b class="calibre3">ngiyaw eBooks </b></i></p> <i class="calibre4"> <p class="calibre2"></p> <p class="calibre2">Übertragen von Erich Holm, Pseudonym von Mathilde Prager <br/>Georg Merseburger, Leipzig, 1912<br/> </p> <p class="calibre2"> <i class="calibre4">ngiyaw </i> eBooks werden Ihnen <i class="calibre4">as-is</i> ohne irgendwelche Garantien und Gewährleistungen angeboten. </p> <p class="calibre2">© 2007 Peter M. Sporer für <i class="calibre4">ngiyaw </i> eBooks. </p> <p class="calibre2">Földvári u. 18, H – 5093 Vezseny<a href="mailto:ebooks@ngiyaw-ebooks.de" class="calibre5"> (ebooks@ngiyaw-ebooks.de). </a></p> <p class="calibre2">Erstellt mit Corel Ventura 10, das die Corel Deutschland GmbH freundlich zur Verfügung gestellt hat. </p> <p class="calibre2">Gesetzt in der Baskerville Book. </p> </i> </body> </html> Last edited by chaot; 02-14-2017 at 01:46 PM. |
02-14-2017, 03:15 PM | #25 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Where to start?
You figured out the missing title tags Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body class="calibre"> <!-- the body tag can't be the parent of an img tag. The img tag must be contained in a block level element like div or p --> <!-- img tags are also required to have an alt attribute (even if it's empty) --> <img alt="" src="index-1_1.png" class="calibre1"/> <h3 id="u3pAA2rri29VOAmDQCbdKx9">Impressum</h3> <p class="calibre2"></p> <p class="calibre2"><b class="calibre3">Jeppe Aakjær </b></p> <p class="calibre2"> <i class="calibre4"><b class="calibre3">Die Kinder des Zorns </b></i></p> <p class="calibre2"> <i class="calibre4"><b class="calibre3">ngiyaw eBooks </b></i></p> <!-- block level tags (p) cannot be nested inside inline tags (i) --> <!-- All of the p tags inside the blue i tags represent one of the EpubCheck errors --> <i class="calibre4"> <p class="calibre2"></p> <p class="calibre2">Übertragen von Erich Holm, Pseudonym von Mathilde Prager <br/>Georg Merseburger, Leipzig, 1912<br/> </p> <p class="calibre2"> <i class="calibre4">ngiyaw </i> eBooks werden Ihnen <i class="calibre4">as-is</i> ohne irgendwelche Garantien und Gewährleistungen angeboten. </p> <p class="calibre2">© 2007 Peter M. Sporer für <i class="calibre4">ngiyaw </i> eBooks. </p> <p class="calibre2">Földvári u. 18, H – 5093 Vezseny<a href="mailto:ebooks@ngiyaw-ebooks.de" class="calibre5"> (ebooks@ngiyaw-ebooks.de). </a></p> <p class="calibre2">Erstellt mit Corel Ventura 10, das die Corel Deutschland GmbH freundlich zur Verfügung gestellt hat. </p> <p class="calibre2">Gesetzt in der Baskerville Book. </p> </i> </body> </html> Last edited by DiapDealer; 02-14-2017 at 07:32 PM. |
02-14-2017, 09:07 PM | #26 |
A Hairy Wizard
Posts: 3,095
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
|
May I add some recommendations in addition to Diap's corrections?? I cringe every time I see how bloated with calibre classes some books get. Most of them are unnecessary.
- Please do not use a class to describe your predominant <p> styling - Please do not use a class to describe your <i> and <b> tags unless they are something other than the standard italics and bold - Please do not use empty paragraph tags (<p class="calibre69"> </p>) to create a space between items/paragraphs Instead, simply define the style for the standard <p>/<i>/<b> tags in your css and leave classes for those that are non-standard, and use classes to give extra spacing between the paragraphs that need it: Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="../Styles/styles.css" type="text/css" rel="stylesheet"/> </head> <body> <div><img alt="" src="index-1_1.png" /></div> <h3 id="u3pAA2rri29VOAmDQCbdKx9">Impressum</h3> <p><b>Jeppe Aakjær</b></p> <p><i><b>Die Kinder des Zorns</b></i></p> <p><i><b>ngiyaw eBooks</b></i></p> <p class="space">Übertragen von Erich Holm, Pseudonym von Mathilde Prager<br/>Georg Merseburger, Leipzig, 1912</p> <p class="space"><i>ngiyaw</i> eBooks werden Ihnen <i>as-is</i> ohne irgendwelche Garantien und Gewährleistungen angeboten.</p> <p>© 2007 Peter M. Sporer für <i>ngiyaw</i> eBooks.</p> <p>Földvári u. 18, H – 5093 Vezseny<a href="mailto:ebooks@ngiyaw-ebooks.de">(ebooks@ngiyaw-ebooks.de).</a></p> <p>Erstellt mit Corel Ventura 10, das die Corel Deutschland GmbH freundlich zur Verfügung gestellt hat.</p> <p>Gesetzt in der Baskerville Book.</p> </body> </html> Code:
html, body {height:100%; font-family:serif} (or whatever) body {font-size:100%; margin:0; padding:0; font-weight:normal} (or whatever) h3 {font-weight:bold; text-align:center; font-size: 1.2em} p {whatever styling you want your standard (98% of the book) paragraph} i {font-style:italic} b {font-weight:bold} p.space {margin-top:2em} div img {max-width:100%} (or whatever styling you want for that image) Cheers, |
02-15-2017, 04:44 AM | #27 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-15-2017, 08:44 AM | #28 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Let's not confuse personal style with requirements. The OP was asking about what is needed. Suggestions and personal preferences can come later.
|
02-15-2017, 11:23 AM | #29 |
A Hairy Wizard
Posts: 3,095
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
|
To be sure...none of the CSS I posted was a requirement...it was a recommendation. I thought I was pretty clear in stating that in my post...
As far as the <i> and <b> CSS not being required....Most devices/apps/browsers do default to displaying the <i>/<b> tags as was in this CSS - but I hate to rely on assuming that some device's default settings are the same as what I want to display. I have always worked under the rule of "It's better to specify exactly what you want so you aren't surprised later." Spoiler:
It certainly doesn't hurt anything to have the CSS defined. In fact, it makes it pretty easy to find/edit later if I want to add some feature such as a particular stress for an emphasized word vs a strong word for those audio readback functions. Cheers! Last edited by Turtle91; 02-15-2017 at 11:30 AM. |
02-15-2017, 11:57 AM | #30 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Anyone changing i and b are just wrong to do so. That is what em and strong are for. em and strong default to i and b but can be modified as desired. They are semantic statements.
Dale |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
xpath to insert chapter breaks - but chapter name cut off ? | Rob557 | Conversion | 2 | 03-06-2014 06:59 AM |
Troubleshooting Kindle K3 (keyboard) losing chapter head spacing. | timecheck00 | Amazon Kindle | 5 | 11-30-2012 08:57 PM |
Pocket eDGe and Full-size eDGe: Head to Head Comparison | alefor | enTourage Archive | 28 | 12-01-2010 07:44 PM |
Chapter Head Text Over Image | theducks | ePub | 10 | 09-03-2010 03:32 PM |
Video Head to Head of Kindle and Reader | Kingston | Which one should I buy? | 30 | 01-24-2008 08:03 PM |