Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare content language as English in epub #22

Open
thp opened this issue Jul 20, 2017 · 0 comments
Open

Declare content language as English in epub #22

thp opened this issue Jul 20, 2017 · 0 comments

Comments

@thp
Copy link
Contributor

thp commented Jul 20, 2017

I'm reading the epub version in iBooks on iOS, my system language is set to German, and I sometimes use the screen reader in addition to just reading on-screen. Most parts of the book are properly screen-read using an English voice, but some parts are read using a German voice (not sure if that's because of my system's language, or because it auto-detects parts as German).

I assume a lot here, but maybe my problem can be fixed by specifying the language (English) in the epub file explicitly so that screen readers (possibly -- might be a software defect with iBooks and nothing to do with the book itself) read everything as English?

Here's some links I've found:

https://www.mobileread.com/forums/showthread.php?t=87928
https://gist.github.com/labocho/1009210

I also noticed that content.opf has this set: <dc:language>en-AU</dc:language>, but maybe just setting lang="en" in the <html> tags of each chapter helps?

https://stackoverflow.com/questions/1071789/how-to-specify-language-of-website-html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant