Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2011, 07:48 AM   #1
Stodder
Connoisseur
Stodder began at the beginning.
 
Posts: 75
Karma: 12
Join Date: Apr 2011
Device: ipad, kindle
Calibre and GNU GPL

Hi guys,

From what I understand a project becomes GPL when the output contains sections of the program's code--correct me if I'm wrong. So I would like to ask if the files that Calibre outputs, specifically the mobi and prc files, contain any Calibre-specific GPL'd code in them.

I probably sound a bit nutty, but I just wanted to double check that no portions of Calibre's actual source code got output into the files it makes.

Any help would be great
Stodder
Stodder is offline   Reply With Quote
Old 05-10-2011, 08:05 AM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I really doubt it. Embedding Python code into ebook files doesn't make any sense.
Manichean is offline   Reply With Quote
Advert
Old 05-10-2011, 08:10 AM   #3
mwheinz
award-winning bozo
mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.mwheinz can program the VCR without an owner's manual.
 
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
No. Consider - Calibre supports copying DRM'ed books which, by definition, Calibre does not and cannot alter.
mwheinz is offline   Reply With Quote
Old 05-10-2011, 08:27 AM   #4
Stodder
Connoisseur
Stodder began at the beginning.
 
Posts: 75
Karma: 12
Join Date: Apr 2011
Device: ipad, kindle
Thanks for the responses. I just wanted to be sure, as I'm not a programmer and can't check for myself or see what's not visible to the end user.

As for DRM and Calibre, I did not know that Calibre could copy DRM'd books.
Stodder is offline   Reply With Quote
Old 05-10-2011, 08:29 AM   #5
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by Stodder View Post
As for DRM and Calibre, I did not know that Calibre could copy DRM'd books.
Copy, organize and send to devices: Yes. Change metadata or convert: No.
Manichean is offline   Reply With Quote
Advert
Old 05-10-2011, 08:32 AM   #6
Stodder
Connoisseur
Stodder began at the beginning.
 
Posts: 75
Karma: 12
Join Date: Apr 2011
Device: ipad, kindle
As a matter of interest, can you even tell if a file was made with Calibre? Or Mobipocket, or any of these software packages?
Stodder is offline   Reply With Quote
Old 05-10-2011, 08:32 AM   #7
Stodder
Connoisseur
Stodder began at the beginning.
 
Posts: 75
Karma: 12
Join Date: Apr 2011
Device: ipad, kindle
Quote:
Originally Posted by Manichean View Post
Copy, organize and send to devices: Yes. Change metadata or convert: No.
Ah, thanks for clarifying
Stodder is offline   Reply With Quote
Old 05-10-2011, 09:11 AM   #8
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Some DRMed formats can have the metadata updated *.

The GPL license does not extend to calibre produced ebook files.

I believe calibre's MOBI output puts the calibre version in the metadata *. Use ebook-meta to see.

* Can't remember off the top of my head and I'm not at my computer to check.

Last edited by user_none; 05-10-2011 at 09:13 AM. Reason: Move * to correct sentence
user_none is offline   Reply With Quote
Old 05-10-2011, 09:27 AM   #9
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by Stodder View Post
As a matter of interest, can you even tell if a file was made with Calibre? Or Mobipocket, or any of these software packages?
Calibre puts entries into the metadata of an ePub's OPF.

For example:

<dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (0.7.28) [http://calibre-ebook.com]</dc:contributor>

<meta content="2010-12-07T07:18:36.758000+00:00" name="calibre:timestamp"/>
<meta content="Pride and Prejudice" name="calibre:title_sort"/>

This is quite an old conversion so things might have been changed in 0.8. I usually edit out the <meta content ... > lines but keep the <dc:contributor ...>

Update: There's also an entry in the OPF's XML namespace section -

xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata"

Last edited by Agama; 05-10-2011 at 09:45 AM. Reason: Further info
Agama is offline   Reply With Quote
Old 05-10-2011, 09:40 AM   #10
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by user_none View Post
The GPL license does not extend to calibre produced ebook files.
I agree, but it would take some research to point to the exact part of the GPL that applies and explain why the GPL doesn't apply to output.

The OP seems to be worried that the GPL is "viral" and will somehow infect an e-book so that it can be copied/used/distributed by everyone. If that was really a concern, with respect to conversions, you couldn't use Calibre for much of anything as most e-books are copyrighted by third parties.

As to his specific question "I would like to ask if the files that calibre outputs, specifically the mobi and prc files, contain any Calibre-specific GPL'd code in them." The answer has just the tiniest bit of gray. In some circumstances, html/xml/xhtml/css will be considered "code," particularly when integrated into other code. By necessity, calibre, puts in some formatting and/or html/xml/xhtml/css content into recipe-created e-books (in particular) and during other conversions.

Calibre's "code" is all subject to the GPL and in some very limited circumstances, the code added, for example by a recipe, might be considered to be subject to the GPL. I suspect the likelihood that this would fall within the scope of the GPL, and that it would cause the OP any trouble to be less than the likelihood of being struck by a meteorite in the next 5 seconds, but it's always interesting to explore the limits of the horrible hypothetical. IOW, he's got absolutely nothing to worry about, and he should ignore the FUD that is spread by others about the GPL.
Starson17 is offline   Reply With Quote
Old 05-10-2011, 10:41 AM   #11
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: 29,807
Karma: 54830978
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 Stodder View Post
As a matter of interest, can you even tell if a file was made with Calibre? Or Mobipocket, or any of these software packages?
When Calibre converts, some of the stylsheet selectors used in "tags" have "calibre" in its name.
Up until recently, Baen e-books, all had Calibre fingerprints on them
theducks is offline   Reply With Quote
Old 05-10-2011, 11:58 AM   #12
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Starson17 View Post
I agree, but it would take some research to point to the exact part of the GPL that applies and explain why the GPL doesn't apply to output.
See http://gnu.org/licenses/gpl-faq.html#GPLOutput and http://gnu.org/licenses/gpl-faq.html#WhatCaseIsOutputGPL for an explanation.
In regard to the first link, even though things like style sheets are added by calibre to some ebook types they do not constitute a substantial amount of the output.
user_none is offline   Reply With Quote
Old 05-10-2011, 02:38 PM   #13
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by Stodder View Post
As for DRM and Calibre, I did not know that Calibre could copy DRM'd books.
Calibre can put DRMed book on disk. It doesn't need to be able to open it in order to copy it from disk to your devices.

As other posters said, Calibre can even write metadata to some DRMed files, because in some formats metadata is not encrypted.

Calibre can even work with DRMed files, even remove DRM. But for that you need third party plugins. Kovid doesn't provide any help with DRM removal (he even says so in his signature). But, the plugin infrastructure in Calibre is so well designed, that various other hackers can develop plugins for many, many things.

Here on this forum I can't provide better instructions, and besides, I have no personal experience with DRM removal using Calibre plugins. I have very limited experience from removal DRM in general (I removed from a book I have purchased). If you were to google for better answer, you might want to ask aprentice alf.
kacir is offline   Reply With Quote
Old 05-10-2011, 03:18 PM   #14
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by user_none View Post
See http://gnu.org/licenses/gpl-faq.html#GPLOutput and http://gnu.org/licenses/gpl-faq.html...aseIsOutputGPL for an explanation.
In regard to the first link, even though things like style sheets are added by calibre to some ebook types they do not constitute a substantial amount of the output.
Yes, I'm familiar with the many FAQs on the GPL. I'm really not trying to argue that there is any reasonable likelihood that the GPL applies to any calibre output. Even if there is the barest such possibility, there's no reasonable likelihood that the GPL would be or could be enforced against anyone for that situation. It's just that I like to know the limits, even when it's just the limits of the universe that I'm interested in

For the record, from one of those FAQ questions:

Quote:
In what cases is the output of a GPL program covered by the GPL too?
Only when the program copies part of itself into the output.
Again, I'm not arguing that the GPL does apply to the output just because some tiny bit of internal recipe formatting code of CSS/HTML, etc. got copied over into the output.

It's just that I find the subject interesting. I can imagine a hypothetical (and that's all it is) where a recipe author spends hundreds of hours authoring a complex recipe to produce complex output for displaying some complex data. His recipe extensively copies his work into the output. Then an evil entity comes along and copies that output. Under the right circumstances, there might (I emphasize the "might) be a GPL claim.

Time for me to take off the Devil's advocate robes and do some real work
Starson17 is offline   Reply With Quote
Old 05-10-2011, 04:38 PM   #15
Stodder
Connoisseur
Stodder began at the beginning.
 
Posts: 75
Karma: 12
Join Date: Apr 2011
Device: ipad, kindle
Thank you everyone for taking my question seriously and answering with thoughtful responses. I've had some great experiences on this forum, and appreciate the opinions

Do you think, just as a safeguard, Calibre should have a written "ebook exemption" added to its licensing? For example, some GPL fonts have a "font exemption", wherein these specific exempted fonts can be embedded without hypothetically turning their overall project into a GPL project.

I think the whole output thing is a lot simpler when the output is non-code. I.e. using OpenOffice.org to print out a letter on a physical piece of paper. There's no gray there, right?
Stodder is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU MAC Changer yokos iRex 10 04-20-2009 04:49 PM
GNU nano text editor (like pico) bobj iRex 0 06-27-2008 10:38 PM
GNU Chess Reloaded yokos iRex 18 11-14-2007 08:17 AM
Gnu Chess design256 iRex 48 06-07-2007 09:29 AM


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


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