Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2011, 10:32 AM   #1
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
Mobi Metadata issues

The calibre metadata functions confuse me more and more.

I'm adding a mobipocket file to calibre whose language is defined as english in the mobi header, but for some unkown reason calibre thinks it's undefined and replaces it with the system default language (in my case german). This is obviously a bug.

I tried to debug it and calibre reads the actual language fine from the mobi file and writes it to a temporary .opf file, but when the actual .opf file is created, the language is suddenly undefined.

I couldn't find any other way to display the language calibre assings to the book than to open the metadata.opf. Shouldn't there a way to show and change the language via the gui?

When I export the mobi file to disk, the (wrong) language will be written into the exported file, but calibre doesn't adds the ASIN field needed for Kindle syncing. I have to do a mobi to mobi conversion to add the ASIN field.

Is this a bug or a feature?

I looked into the metadata switchboard, but there is no ASIN field to select, so this is no substitute.

Ciao,
Steffen
siebert is offline   Reply With Quote
Old 07-09-2011, 06:03 PM   #2
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
Quote:
Originally Posted by siebert View Post
I'm adding a mobipocket file to calibre whose language is defined as english in the mobi header, but for some unkown reason calibre thinks it's undefined and replaces it with the system default language (in my case german). This is obviously a bug.
Further testing shows that the bug isn't limited to the mobi format. The same happens for epub files.

I did some more debugging and the reason might be that in database2.py the language isn't handled at all.

I would appreciate a quick fix, as the correct language setting is essential for using dictionary lookup in the Kindle app (and most likely also on Kindle devices).

Ciao,
Steffen
siebert is offline   Reply With Quote
Advert
Old 07-09-2011, 08:37 PM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
You might want to submit a bug report.
DoctorOhh is offline   Reply With Quote
Old 07-19-2011, 02:40 PM   #4
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
Quote:
Originally Posted by dwanthny View Post
You might want to submit a bug report.
Tried that, but wasn't successful:

https://bugs.launchpad.net/calibre/+bug/809771

So I created a fix myself:

https://www.mobileread.com/forums/sho...69&postcount=1

Ciao,
Steffen
siebert is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Mobi header/file metadata without doing a Mobi to Mobi conversion RecQuery Conversion 2 06-30-2012 11:43 AM
MOBI --> MOBI | Add Metadata Start Page carlyman Calibre 0 10-19-2010 07:36 PM
metadata issues kwren Calibre 7 09-17-2010 03:39 PM
Metadata issues Eaque Calibre 9 01-14-2010 06:06 AM
Mobi format metadata extraction issues FrancisT Calibre 7 01-22-2009 01:34 AM


All times are GMT -4. The time now is 02:32 PM.


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