10-20-2018, 06:14 PM | #1 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Two questions
1) How come some of the chapters in my novels in Sigil have the book title in the title tags on every file and others don't? (I've made them identically and not manually added anything to the title tags.) Does it matter if the title is in those chapter files?
2) I have removed the language ending of that tag that begins <html xmlns... and I have also removed the language stuff from the <body> tag. Is this okay the way I have it? Thanks. Last edited by Gregg Bell; 10-20-2018 at 06:48 PM. |
10-20-2018, 07:25 PM | #2 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
First, I wanted to point out KevinH's Sigil Plugin, "Access-Aide".
It helps fill blank <title>s (using the first heading in the document) + add lang + xml:lang to your <html>. Quote:
Sometimes the tools put gibberish in the <title> (like InDesign puts the filenames... you can safely delete those): Code:
<title>Chapter_1.xhtml</title> <title>abc123456890_book_EPUB.epub</title> Code:
<title>Gregg Bell - Dupes-A-Navy: Chapter 1</title> It doesn't hurt if it's blank, but it could be helpful IF there is meaningful info in the <title>. Something like: Code:
<head> <title>Chapter One: The Beginning</title> <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/> </head> <body> <h2>Chapter One: The Beginning</h2>
Technical Side Note: WCAG has a few articles on how to create good <title>s: G88: Providing descriptive titles for Web pages H25: Providing a title using the title element Understanding SC 2.4.2 For example, G88 gives this reasoning/recommendation for good <title>s: Spoiler:
Quote:
An EPUB Reader should be able to still pull the book's language from the EPUB's Metadata (Tools > Metadata Editor), and grab your dc:language (in your case, "en" (English) or "en-US" (English (United States)). BUT, again, think screen reader or someone converting to a different format. They may pull the HTML out separately and read it elsewhere. So you may want to add the lang + xml:lang to your HTML as well. This doesn't hurt: Code:
<html xmlns="http://www.w3.org/1999/xhtml"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> (Imagine there could be a US English book, but it has a British English chapter within it.) Technical Side Note: H57: Using language attributes on the html element H57 explains why lang + xml:lang on <html> are important: Spoiler:
So it could help:
Again, an EPUB Reader SHOULD still be able to pull it from the EPUB Metadata... but not all tools will be reading your EPUB in EPUB. :P Last edited by Tex2002ans; 10-20-2018 at 07:42 PM. |
||
Advert | |
|
10-20-2018, 07:36 PM | #3 | |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
10-21-2018, 07:51 AM | #4 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
10-21-2018, 02:45 PM | #5 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
One reason not to use both 'lang' and 'xml:lang' is that FlightCrew will flag 'lang' as an error.
|
Advert | |
|
10-21-2018, 05:57 PM | #6 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
10-21-2018, 07:35 PM | #7 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Has someone told Lulu? (I think it was Lulu who bounced epubs that didn't pass FlightCrew?)
|
10-22-2018, 07:38 AM | #8 |
Sigil Developer
Posts: 7,630
Karma: 5433388
Join Date: Nov 2009
Device: many
|
As this relates to FlightCrew, it is the xml schema that determines if an attribute is allowed or not. The vast part of validating an epub2 is done against that schema. As far as I know these schema in Flightcrew are the most recent published for epub2. So the spec for epub2 has evolved but without a proper updated schema, there is not much I can do. I will look again to see if there are newer xml schemas for epub2 that are old enough to not add or allow epub3 only language features.
|
10-22-2018, 07:47 AM | #9 | ||
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
05-22-2019, 04:15 PM | #10 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
I'm using 0.9.9 Sigil. I got confused re-reading this post. (There were just too many details and it seemed contradictory information.) If somebody can please make this very simple for me I'd really appreciate it. I just want to know what's the best way to do this for an ebook that is a novel (to go on Amazon).
I'm analyzing two ebooks. The first screenshot is of my last book, which I'll post here. Both books passed Epubchek with no issues. Flightcrew has issues with both. (And I'm not concerned about the first warning about the OPF not being reachable. That's just because the cover isn't there.) This next one is the book I just formatted. Now this is just the default that Sigil provided. (I of course chose US english as the language in the metadata editor.) So in the first screenshot I used <html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-US"> instead of <html xmlns="http://www.w3.org/1999/xhtml"> And I deleted lang="en-US" dir="ltr" from the <body> tag. I can do either or something different. What's the best way to go? This is a simple ebook. No video or anything like that. A cover, some backmatter images and text. If it matters, this is the way the plugins look. (I'm running xubuntu 18.04LTS.) Thanks! |
05-22-2019, 05:18 PM | #11 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Flightcrew doesn't like the 'lang' item. Use just 'xml:lang'.
|
05-22-2019, 05:45 PM | #12 | |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Code:
<body> Because when I used Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Code:
<body lang="en-US" dir="ltr"> |
|
05-22-2019, 06:03 PM | #13 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Yes, you seem to have correctly worked out how to satisfy Flightcrew!
Of course, if the book is heading for Amazon, the errors that matter are any thrown up when converting to mobi format in Kindle Previewer. You could also install the KPD Validator plugin for a quick pre-check while still working in Sigil. Last edited by exaltedwombat; 05-22-2019 at 06:05 PM. |
05-22-2019, 08:57 PM | #14 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
This is what you'll want: Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> <body> Quote:
Epubcheck is THE important one (it's what the storefronts use for sale). If epubcheck says the book is fine, the book is fine. Flightcrew is older/outdated, and was really only there as an easy GUI in Sigil to quickly check some basic code issues. It squaks at some things that are correct because it hasn't been updated to handle such cases. Quote:
Also has the advantage of not disappearing if those external image sites die. So many older topics have busted images, and the information gets lost. Last edited by Tex2002ans; 05-22-2019 at 09:00 PM. |
|||
05-22-2019, 09:25 PM | #15 | |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Some questions | unrealbe | Kobo Reader | 14 | 08-28-2014 08:38 PM |
A few questions | Noughty | Which one should I buy? | 11 | 12-11-2011 05:05 PM |
could somebody help me with my questions? | yingwu | iRex | 37 | 06-18-2009 10:33 AM |
could somebody help me with my questions? | yingwu | Introduce Yourself | 1 | 05-27-2009 05:34 PM |
a few questions | Thetaeta | Which one should I buy? | 4 | 07-31-2008 11:15 PM |