![]() |
#16 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
And some checkers want there to be an xml:lang attribute on the opf package tag as well as they use it to determine the language of the metadata itself.
But if the entire Book's language is specified by one dc:language tag, I am not sure why that is not enough for metadata as well. There are already alt:lang attributes if more than one metadata language is used. Last edited by KevinH; 03-21-2025 at 07:29 PM. |
![]() |
![]() |
![]() |
#17 | |
Member
![]() Posts: 16
Karma: 10
Join Date: May 2021
Location: Italy
Device: MacBook Air
|
Quote:
thanks for replying so quickly :- I hope it's possible to paste something here... as you can see there are no spaces so...what do you think? <package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uuid_id" prefix="calibre: https://calibre-ebook.com"> <metadata xmlns ![]() <dc:title id="id-1">Memories</dc:title> <dc:language>en</dc:language> <dc:creator id="id-2">Pamela B</dc:creator> <dc:identifier>calibre:105</dc:identifier> <dc:identifier>uuid:09c7549e-e1fb-4d69-a91b-ba773704398b</dc:identifier> <dc:identifier id="uuid_id">uuid:09c7549e-e1fb-4d69-a91b-ba773704398b</dc:identifier> <meta name="generator" content="Adobe InDesign"/> <dc:date>2025-02-24T23:00:00+00:00</dc:date> .... 1 error Add the missing OPF xml:lang attribute The language must be specified (xml:lang in OPF package) Learn more: Language content.opf thank you... ![]() ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
What is giving the error? Is it CheckBook or epubCheck, or are you using another checker? Maybe something online? Using the advice from @KevinH try adding this to the end of the <package> tag... xml:lang="en" Last edited by Karellen; 03-21-2025 at 10:53 PM. Reason: wrote metadata instead of package. fix to avoid confusion. |
|
![]() |
![]() |
![]() |
#19 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
As I tried to explain, add the attribute: xml:lang="en" to the package tag in the OPF.
ie. make the package tag look like this: Code:
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uuid_id" xml:lang="en" prefix="calibre: https://calibre-ebook.com"> |
![]() |
![]() |
![]() |
#20 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,186
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<dc:language>en</dc:language> Code:
<dc:language>en-ca</dc:language> For ePub3, the title, identifier, language and modified elements from the Dublin Core set are needed. If they are not present, epubcheck will throw an error message. Quote:
Last edited by DNSB; 03-21-2025 at 11:02 PM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,186
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Rather interesting result after deliberately introducing errors in the .opf file.
I added a space after the colon in the dc:language element and ran epubcheck expecting to get an error message. As soon as I clicked on epubcheck, the line changed. Pasted the modified line back and the same thing happens when I switch away from the .opf file for any reason. Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#22 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Add the following attribute to the package tag in your .opf file, if the main language is US English: Code:
<package version="3.0" unique-identifier="BookId"
prefix="rendition: http://www.idpf.org/vocab/rendition/#"
xml:lang="en-US" xmlns="http://www.idpf.org/2007/opf">
Code:
<dc:language>en-US</dc:language>
Then download and open this simple epub3 test file, remove the package xml:lang attribute and run the ACE validator plugin. This'll produce the following "serious" ACE warning:
I'm pretty sure that this is a recent change, because, IIRC, previous ACE versions didn't complain about missing package xml:lang attributes. You might want to consider updating your ePub3-itizer and Access-Aide plugins. |
|
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
The Access-Aide plugin already adds the xml:lang attribute on the package tag. I added that fix in Access-Aide 1.0.0
Since it is an Accessibility check issue, not an epubcheck spec issue, I did not add it to the ePub3-itizer plugin. |
![]() |
![]() |
![]() |
#24 |
Member
![]() Posts: 16
Karma: 10
Join Date: May 2021
Location: Italy
Device: MacBook Air
|
![]()
thank you all for your help, it was important and urgent for me,
but I knew I could count on your help, ![]() in fact they are the "new" rules and therefore important for everyone who wants to publish epub, more and more frequently the platforms ask to respect the ACE rules otherwise they do not accept the books. So, I summarize because maybe someone else will need it: - the fact remains that each xhtml page must have the reference to the language, such as xml:lang="en-US" (or other language) in <html - in the content.opf page too, xml:lang="en-US" must be inserted as Doitsu ![]() - in the same page all the accessMode and accessibilitySummary references must be put - certain settings for the fonts used are also needed I can't remember anything else, it took me two days to fix these requests (not all the online pages of epub checker have already inserted ACE), thanks again to everyone ![]() ![]() Bozzka |
![]() |
![]() |
![]() |
#25 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Duplicate answer given
|
![]() |
![]() |
![]() |
Tags |
accessible, epub2, epub3, world book day |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen | GhostRider | Conversion | 2 | 08-28-2024 10:14 AM |
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 | qkiazd | Sigil | 5 | 12-03-2015 04:01 AM |
Recipe for EPUB subscribers of "Tagesspiegel" and "Handelsblatt"? | F.W. | Recipes | 0 | 05-14-2013 11:16 AM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |