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-13-2010, 09:49 AM   #1
moriakaice
Memento Mori
moriakaice began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Apr 2007
Device: eClicto, iPad WiFi, Kindle 3 WiFi
Default book language to be saved in content.opf?

Is there a way to setup calibre so it puts a selected default language in the content.opf file of ePUB?

Currently it's always:
Code:
<dc:language>UND</dc:language>
Having the ability to set the book language on single book basis would be awesome, but I'd even settle for a default one It's greatly help with hyphenation on devices.
moriakaice is offline   Reply With Quote
Old 06-13-2010, 01:32 PM   #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: 43,837
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are there devices that support hyhenation? While there isn't currently an option to set language in the GUI, you can set it via the command line tool ebook-convert (the --language) option.

The GUI option is waiting for general support for a language field in the database.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-13-2010, 03:05 PM   #3
moriakaice
Memento Mori
moriakaice began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Apr 2007
Device: eClicto, iPad WiFi, Kindle 3 WiFi
Yup, at least my eClicto (rebranded Netronix EB600) supports it.

Here's a test (file 1 generated with calibre 0.6.37, second one is first one verbatim copy, except the dc:language in content.opf manually changed):
With
Code:
<dc:language>UND</dc:language>
:


With
Code:
<dc:language>pl-PL</dc:language>
:


Having all the GUI options for that (setting the default language of book, changing each book's language, etc.) would be awesome.
moriakaice is offline   Reply With Quote
Old 06-13-2010, 03:34 PM   #4
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: 43,837
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's on the TODO, ony so many hours in the day
kovidgoyal is online now   Reply With Quote
Old 06-13-2010, 03:49 PM   #5
moriakaice
Memento Mori
moriakaice began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Apr 2007
Device: eClicto, iPad WiFi, Kindle 3 WiFi
Quote:
Originally Posted by kovidgoyal View Post
It's on the TODO, ony so many hours in the day
That's understoodable. And a great news! Thank you very much for all your work on calibre, Kovid!

Last edited by moriakaice; 06-13-2010 at 03:51 PM.
moriakaice is offline   Reply With Quote
Advert
Old 05-21-2011, 03:14 PM   #6
Bratzzo
Addict
Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.
 
Bratzzo's Avatar
 
Posts: 342
Karma: 533558
Join Date: Feb 2010
Location: WOB / Germany
Device: Kindle
Hi,

I discovered, that Calibre uses the GUI language to set the default language of a converted book.
Normally I read german books, but sometimes I also read english books. (OK, not so often, like you can see at my grammatics ).

If I want to convert an english book, I always have to set the GUI language to english and restart Calibre, to keep the default book language. After the conversion, I have to set the language and restart again.
Is there a shorter way without restart? Maybe in the future?



Bratzzo
Bratzzo is offline   Reply With Quote
Old 05-21-2011, 04:26 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: 43,837
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Support for per book language settings is on the TODO list.
kovidgoyal is online now   Reply With Quote
Old 05-21-2011, 05:02 PM   #8
Bratzzo
Addict
Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.Bratzzo ought to be getting tired of karma fortunes by now.
 
Bratzzo's Avatar
 
Posts: 342
Karma: 533558
Join Date: Feb 2010
Location: WOB / Germany
Device: Kindle
Hi,

That sounds great!

Thank you!


Bratzzo
Bratzzo 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
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion foxxywith2xs Calibre 7 12-16-2012 07:49 PM
HTML to Mobi conversions (DocBook XSL, and content.opf?) AndrewLB Calibre 3 09-04-2010 09:02 PM
cleaning the content.opf file Adjust ePub 6 09-01-2010 05:54 PM
Metadata to specify default language is English? kjk ePub 4 06-22-2010 04:05 PM
Regarding the 'default' language PinkTissue HanLin eBook 0 12-27-2009 12:36 PM


All times are GMT -4. The time now is 09:59 AM.


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