Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2014, 03:34 PM   #1
cloggy
Connoisseur
cloggy began at the beginning.
 
Posts: 78
Karma: 10
Join Date: Jul 2009
Location: Amstelveen, NL
Device: Kobo Aura HD, Sony PRS-T1
Language code ignored in Edit Metadata screen?

Hi, I've figured out that irrespective of the language code of an ebook, the following line is always inserted:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
in the titlepage.xhtml. This is causing hyphenation errors for Dutch books when the ePub ebook is transferred to the Kobo Aura HD reader as kepub. Is there a away (apart from manually editing all converted ebooks before they are transferred) to set the proper language code in the jackets.xhtml based upon the language code set in the Edit Metadata screen or insert a user defined xml:lang="xx" in the titlepage.xhtml?

Last edited by cloggy; 06-01-2014 at 03:40 PM.
cloggy is offline   Reply With Quote
Old 06-01-2014, 04:30 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cloggy View Post
Hi, I've figured out that irrespective of the language code of an ebook, the following line is always inserted:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
in the titlepage.xhtml. This is causing hyphenation errors for Dutch books when the ePub ebook is transferred to the Kobo Aura HD reader as kepub. Is there a away (apart from manually editing all converted ebooks before they are transferred) to set the proper language code in the jackets.xhtml based upon the language code set in the Edit Metadata screen or insert a user defined xml:lang="xx" in the titlepage.xhtml?
What does the Language COLUMN in the Library Metadata say.
IIRC, that prevails
theducks is offline   Reply With Quote
Advert
Old 06-02-2014, 03:13 AM   #3
cloggy
Connoisseur
cloggy began at the beginning.
 
Posts: 78
Karma: 10
Join Date: Jul 2009
Location: Amstelveen, NL
Device: Kobo Aura HD, Sony PRS-T1
Hi, the language column in the Edit MetaData screen is set to Dutch. The generated statements are:
in titlepage.xhtml: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
in jacket.xhtml: <html xmlns="http://www.w3.org/1999/xhtml">

I've done some more testing with Dutch hyphenations but Kobo is really making a mess out of it for kepub ebooks. So, for now, I'm using unhyphenated regular ePub books unless somebody has a tip to make (and show) kepub books also unhyphenated.
cloggy is offline   Reply With Quote
Old 06-02-2014, 05:11 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,732
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by cloggy View Post
Hi, the language column in the Edit MetaData screen is set to Dutch. The generated statements are:
in titlepage.xhtml: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
in jacket.xhtml: <html xmlns="http://www.w3.org/1999/xhtml">

I've done some more testing with Dutch hyphenations but Kobo is really making a mess out of it for kepub ebooks. So, for now, I'm using unhyphenated regular ePub books unless somebody has a tip to make (and show) kepub books also unhyphenated.
The Language on the edit metadata screen sets the value of the dc metadata element language <dc:language>nl</dc:language>, But this does not flow through to the xml:lang setting at the top of each xhtml file. I have no idea whether or not it should - I suspect not.

BR

Last edited by BetterRed; 06-02-2014 at 06:30 AM.
BetterRed is offline   Reply With Quote
Old 06-05-2014, 12:31 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Setting metadata only changed the <dc:language> element nothing else. Changing language declarations int he html would break multi-lingual books for example. To change declarations int he HTML use the ebook editor.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-05-2014, 03:36 AM   #6
cloggy
Connoisseur
cloggy began at the beginning.
 
Posts: 78
Karma: 10
Join Date: Jul 2009
Location: Amstelveen, NL
Device: Kobo Aura HD, Sony PRS-T1
Hi Kovid, thanks for the update. As already mentioned, I went back to normal ePub and that works fine and there is no need to edit any ebook afterwards....

Regards...Dick
cloggy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
After I Edit Code, Save, and Convert, all my Code Edits are Gone lukewrussell Calibre 1 03-14-2014 08:05 PM
Cover size displayed in metadata edit screen MSWallack Calibre 13 12-12-2012 06:05 AM
Can I view from the Edit Metadata screen? Opus97 Library Management 1 11-16-2012 08:07 PM
Edit metadata window off screen toomuchreading Calibre 34 04-14-2012 09:17 AM
Problem with edit metadata screen ficbot Calibre 5 12-31-2010 03:13 PM


All times are GMT -4. The time now is 08:03 PM.


MobileRead.com is a privately owned, operated and funded community.