Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2010, 10:47 AM   #1
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,412
Karma: 43770933
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
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!
HarryT is online now   Reply With Quote
Old 06-22-2010, 10:50 AM   #2
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: 26,433
Karma: 5383257
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
kovidgoyal is offline   Reply With Quote
Old 06-22-2010, 10:58 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,412
Karma: 43770933
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Thanks. I'll upload a Mobi and ePub file showing the issue when I get home from work in a couple of hours.
HarryT is online now   Reply With Quote
Old 06-22-2010, 11:37 AM   #4
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
Kovid, I have a provisional patch in place for the iPad driver, we need to discuss.

G
GRiker is offline   Reply With Quote
Old 06-22-2010, 12:22 PM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,412
Karma: 43770933
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
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.
Attached Files
File Type: prc American Notes.prc (572.2 KB, 109 views)
File Type: epub American Notes.epub (482.3 KB, 155 views)
HarryT is online now   Reply With Quote
Old 06-22-2010, 02:37 PM   #6
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
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
GRiker is offline   Reply With Quote
Old 06-22-2010, 02:39 PM   #7
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: 26,433
Karma: 5383257
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.
kovidgoyal is offline   Reply With Quote
Old 06-22-2010, 02:45 PM   #8
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 441
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Ipad2 w/Kindle app
Quote:
Originally Posted by GRiker View Post
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
Super! Any idea when 0.7.5 will be available for download? I assume we will have to regenerate the epubs? Or will this 'forcing' of the value <dc:language>en</dc:language> be something that happens in the background somehow?

Thanks.
foghat is offline   Reply With Quote
Old 06-22-2010, 03:10 PM   #9
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
Foghat, it happens when you send an epub to the iPad, metadata is dynamically rewritten.

G
GRiker is offline   Reply With Quote
Old 06-22-2010, 03:15 PM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,412
Karma: 43770933
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Quote:
Originally Posted by kovidgoyal View Post
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.
Yes, I do indeed use the GUI. Thanks for the fix - that sounds like a good compromise.
HarryT is online now   Reply With Quote
Old 06-22-2010, 03:46 PM   #11
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 441
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Ipad2 w/Kindle app
Quote:
Originally Posted by GRiker View Post
Foghat, it happens when you send an epub to the iPad, metadata is dynamically rewritten.

G
Okay, I don't have an ipad - are you saying Calibre can send directly to the ipad without itunes?

Either way, I am thinking about ibooks on the iphone - and having to sync through Itunes to get the epub on the iphone.
foghat is offline   Reply With Quote
Old 06-22-2010, 03:49 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,426
Karma: 19135915
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by kovidgoyal View Post
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.
Can we have a setting in ebook-convert to force the language identifier to be forced to be English in case the original eBook is wrong or undefined?
JSWolf is offline   Reply With Quote
Old 06-22-2010, 03:56 PM   #13
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--language
kovidgoyal is offline   Reply With Quote
Old 06-22-2010, 03:57 PM   #14
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Quote:
Originally Posted by foghat View Post
Okay, I don't have an ipad - are you saying Calibre can send directly to the ipad without itunes?
http://www.mobileread.com/forums/showthread.php?t=85856

You have to have iTunes running, but you don't have to deal with iTunes, if that makes sense.
kjk is offline   Reply With Quote
Old 06-22-2010, 09:01 PM   #15
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 441
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Ipad2 w/Kindle app
^ So, do you know if this should work with an iphone/ibooks? "I get a Cannot Send: No device is connected".
foghat is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata to specify default language is English? kjk ePub 4 06-22-2010 05:05 PM
How can I convert a pdf with thai language to epub cadeau Calibre 0 06-02-2010 11:46 AM
Quick metadata from ePUB files Jellby ePub 0 02-14-2010 07:11 AM
Language metadata Toxaris Calibre 1 11-19-2009 05:22 PM
metadata language field not after convertlit Wimvv Workshop 3 12-06-2007 05:54 AM


All times are GMT -4. The time now is 05:40 AM.


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