Comments (9)
@shoesforindustry @jgm Hi, I'm not a developer but a mere mortal who creates EPUB 2. Please can you tell me the solution in a simple way? (xml:lang is not allowed in the opf file for epub 2 but if I remove it it gives me an error in ACE by Daisy). I can't understand from the coded solution you put. I put language in every html file with the Sigil plugin (Access-aide) but it doesn't solve. I'll leave an email if you want to discuss but a comment here is also fine. Thank you. [email protected]
from pandoc.
Hi @Marcello1173214, I am not sure what you are asking. To put the language into the content.opf of an ePub2 it would be part of the opf metadata like <dc:language>en</dc:language>
, is that what you were asking?
If using Panodc then see the ePub section for more information:
https://pandoc.org/MANUAL.html#epubs
You could also add this language attribute using the metdata editor in Sigil.
I don't think you need the language in the HTML, but I guess it would not hurt, something like:
<html lang="en">
If all is correct the epub will pass both ePubCheck and ACE validation.
Either Pandoc or Sigil should be able to create valid ePubs without editing the content.opf file :)
Hope this helps.
from pandoc.
@shoesforindustry Yes, it should be like this, the problem is that if I put the language only in the metadata (dc:languageit-IT</dc:language>) it passes validation only with epubchecker, while in ACE it gives me this error "The language must be specified (xml:lang in OPF package)
Ensures the OPF XML language is provided
Add the missing OPF xml:lang attribute". Conversely, if I put this value in the opf, as ACE says, it gives me an error in epub checker: "xml:lang attribute is not allowed in the opf file". It therefore seems that there is a bug in ACE that doesn't take into account that the language attribute in epub 2 can only be put in the metadata.
from pandoc.
@Marcello1173214 Odd as I have just tried one of my Epub2 files and it passes epubcheck and Ace? Can you publish one of your epubs that fails?
from pandoc.
from pandoc.
I am unable to at present, but if you are producing epub2 books then I think ACE only checks against epub3? So you would have to produce an epub3?
from pandoc.
from pandoc.
from pandoc.
I am pretty sure Ace only checks epub3 which has been around since 2011! I use pandoc which produces epub3 by default. I presume it is similar for Sigma?
So that explains everything (I didn't know this as I had never read anything about it on the Daisy website). I use Sigil and in fact there is a plugin that allows you to convert from epub 2 to 3 although, working as a professional, I think I will learn to work directly with epub 3. Thank you for your help!
from pandoc.
Related Issues (20)
- Markdown to PDF: natbib citations are rendered as [?] HOT 4
- Add the 'alert' extension to Pandoc standard markdown HOT 3
- Support for Manual Bibliography Sorting HOT 4
- Support Zotero citations in docx writer HOT 6
- pandoc does not pick up the figure which pandoc-crossref specifies using "<figure" HOT 22
- export from google docs: lots of empty html comment inside clode blocks HOT 3
- Support `abstract-title` for Typst format HOT 3
- Docx -> HTML: Pandoc discards comments on tables, table rows and table cells
- Access violation in generated code when reading 0xffffffffffffffff HOT 1
- Doesn't generate link ID if convert to markdown_strict when using link-citations. HOT 1
- Section Cross Reference ID is removed when converting from Quarto markdown to markdown_strict HOT 1
- Several bug with pandoc-xnos HOT 1
- Document `handout` variable
- Unwanted rowspan in grid table HOT 1
- Document additional formats affected by `--slide-level`
- YAML parse exception...: did not find expected <document start> HOT 3
- Syntax Highlighting not working in HTML (CSS not being picked up) HOT 14
- pandoc-lua-engine-0.2.1.5 failed to build in stackage nightly HOT 1
- Converting mixed urdu and english text RTF to HTML causes messed up characters HOT 7
- pandoc-server-0.1.0.5 does not compile on Linux x86_64 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc.