06-22-2010, 09:47 AM | #1 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Language metadata in ePub files
Hi Kovid,
I don't know if you've noticed the matter in the Apple forum, but an issue has arisen with Calibre-generated ePub files in the new versions of the "iBooks" bookreader for iPad and iPhone. iBooks has a language-specific dictionary, and all ePub files generated by Calibre appear to contain a "dc:language" metadata value of "UND", resulting in an inability to use the dictionary. Editing the metadata value to "EN" makes the dictionary work. Three questions: 1. Can Calibre generate a default language metadata value of "EN" rather than "UND"? 2. Would it be possible to edit this value in Calibre's "Edit Metadata" screen? 3. When Calibre converts a Mobipocket file containing a valid language metadata value, even then it still produces the "UND" value in the ePub. Would it be possible to correctly import this value from the Mobipocket file? I would enter this on the project tracker, but unfortunately it doesn't seem to want to let me log on at present. Thanks! |
06-22-2010, 09:50 AM | #2 |
creator of calibre
Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1. Possibly, I'll look at it
2. It's on the todo list 3. Can you attach a sample mobi file showing this behavior |
Advert | |
|
06-22-2010, 09:58 AM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Thanks. I'll upload a Mobi and ePub file showing the issue when I get home from work in a couple of hours.
|
06-22-2010, 10:37 AM | #4 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Kovid, I have a provisional patch in place for the iPad driver, we need to discuss.
G |
06-22-2010, 11:22 AM | #5 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Hi Kovid,
Attached is a Mobi file, and the resulting ePub file created from it by Calibre. The OPF file used to generate the Mobi file (using MobiPocket Creator) contains the element "<dc:Language>en-gb</dc:Language>". The ePub file created by Calibre contains "<dc:language>UND</dc:language> Hope this example helps. |
Advert | |
|
06-22-2010, 01:37 PM | #6 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
After discussion with Kovid, I've modified the iDevice driver in 0.7.5 so that it forces a value of <dc:language>en</dc:language> into the epub's metadata. This is a temporary solution for iDevices until calibre has proper language support and we know more about international iDevices.
G |
06-22-2010, 01:39 PM | #7 |
creator of calibre
Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's actually nothing wrong with the conversion system as you can verify by converting the book using the command line ebook-convert.
However, I'm guessing you used the GUI to convert. Since the GUI does not store language information, it is passing UND to the conversion system. I'[ve changed that to have it pass instead the language you have set the calibre interface to, which should be a reasonable interim solution. |
06-22-2010, 01:45 PM | #8 | |
Evangelist
Posts: 464
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Kindle PW3
|
Quote:
Thanks. |
|
06-22-2010, 02:10 PM | #9 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Foghat, it happens when you send an epub to the iPad, metadata is dynamically rewritten.
G |
06-22-2010, 02:15 PM | #10 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
06-22-2010, 02:46 PM | #11 | |
Evangelist
Posts: 464
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Kindle PW3
|
Quote:
Either way, I am thinking about ibooks on the iphone - and having to sync through Itunes to get the epub on the iphone. |
|
06-22-2010, 02:49 PM | #12 | |
Resident Curmudgeon
Posts: 75,449
Karma: 134254362
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
06-22-2010, 02:56 PM | #13 |
creator of calibre
Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
--language
|
06-22-2010, 02:57 PM | #14 | |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Quote:
You have to have iTunes running, but you don't have to deal with iTunes, if that makes sense. |
|
06-22-2010, 08:01 PM | #15 |
Evangelist
Posts: 464
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Kindle PW3
|
^ So, do you know if this should work with an iphone/ibooks? "I get a Cannot Send: No device is connected".
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata to specify default language is English? | kjk | ePub | 4 | 06-22-2010 04:05 PM |
How can I convert a pdf with thai language to epub | cadeau | Calibre | 0 | 06-02-2010 10:46 AM |
Quick metadata from ePUB files | Jellby | ePub | 0 | 02-14-2010 06:11 AM |
Language metadata | Toxaris | Calibre | 1 | 11-19-2009 04:22 PM |
metadata language field not after convertlit | Wimvv | Workshop | 3 | 12-06-2007 04:54 AM |