Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2008, 01:27 AM   #166
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
0.4.91
Thanks Kovid,

epub-meta seems to be working, but unfortunately any2epub does not change meta info


Code:
any2epub -a "zzz zzzz" -t "XXXXXX" xxx.epub

Code:
epub-meta xxx.epub


Title    : Table of Contents
Author   : xxx xxxx
Producer : calibre (0.4.91) [http://calibre.kovidgoyal.net]
Series   : XXXXX #1
Language : Unknown
JeffElkins is offline   Reply With Quote
Old 10-05-2008, 01:29 AM   #167
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah any2epub doesn't. You have to call epub-meta to do that. any2epub is meant more for stuff like automatic splitting, font size control etc.
kovidgoyal is offline   Reply With Quote
Old 10-05-2008, 01:48 AM   #168
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
yeah any2epub doesn't. You have to call epub-meta to do that. any2epub is meant more for stuff like automatic splitting, font size control etc.
OK, thanks.
JeffElkins is offline   Reply With Quote
Old 10-05-2008, 03:54 AM   #169
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
CSS is not working in 4.9.0

It looks like embedded style in an html are not used. In the creation of the ePUB HTML the styles are not included in the ePUB html.

=X=
=X= is offline   Reply With Quote
Old 10-05-2008, 04:41 AM   #170
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the styles are extracted and put into a separate CSS file
kovidgoyal is offline   Reply With Quote
Old 10-05-2008, 09:44 AM   #171
sconnolly
Junior Member
sconnolly began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2008
Device: palmTX
First off, thank you for this great piece of software. Just what I was looking for!. I am attempting to standardize all my books to epub . I then use mobigen_linux to convert to a palm format. However it fails with an invalid language error. Inspection of the generated metadata.opf shows language as "Unknown".

metadata:

<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:title>A Spell for Chameleon</dc:title>
<dc:creator opf:role="aut">Piers Anthony</dc:creator>
<dc:contributor opf:role="bkp" opf:files-as="calibre">calibre (0.4.91) [http://calibre.kovidgoyal.net]</dc:contributor>
<dc:identifier opf:scheme="calibre" id="calibre_id">33a0bfae-ae76-4efa-9aaf-df9c9d842eac</dc:identifier>
<dc:language>Unknown</dc:language>
<dcublisher>DELREY</dcublisher>
<series>Xanth</series>
<series-index>1</series-index>
<rating>5</rating>
<dc:subject>fantasy</dc:subject>
</metadata>

Is there a way to specify a language? I looked but found nothing. 2 items I noticed with the generated opf. I believe the elements series, series-index and rating should be placed inside meta tags as follows:

<meta name="series" content="Xanth" />
<meta name="series-index" content="1" />
<meta name="rating" content="5" />

per http://www.openebook.org/2007/opf/OP...ec.html#TOC2.2

and in the element contributor the attribute files-as should be file-as.

I am a COBOL programmer (please, no dinosaur jokes!) but this project has me looking into python. Keep up the good work.
sconnolly is offline   Reply With Quote
Old 10-05-2008, 10:03 AM   #172
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by sconnolly View Post
Is there a way to specify a language?
Use the language attribute in DublinCore (dc:language) and the xml:lang attribute in your XML flows.
Hadrien is offline   Reply With Quote
Old 10-05-2008, 10:15 AM   #173
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
I opened a ticket with two books attached. In book 1, there is underlining of paragraphs every three or four pages and in book 2 each line of text is only three or four characters wide. Previously, these books converted w/o these errors.
JeffElkins is offline   Reply With Quote
Old 10-05-2008, 10:33 AM   #174
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Pagination is different with these epubs. It generally takes at least two page forwards to advance the page count. Also I'm seeing the page number in extremely tiny print embedded about mid-page.
JeffElkins is offline   Reply With Quote
Old 10-05-2008, 11:22 AM   #175
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by kovidgoyal View Post
the styles are extracted and put into a separate CSS file
Right I assume so, but that is not what is happening. Here I've attached a HTML and an ePUB to illistrate the problem


BTW the --level1-toc and --level2-toc work great.
Attached Files
File Type: zip Dostoyevsky - Brothers Karamazov_html.zip (728.5 KB, 263 views)
File Type: epub Dostoyevsky - Brothers Karamazov.epub (776.4 KB, 260 views)
=X= is offline   Reply With Quote
Old 10-05-2008, 12:49 PM   #176
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JeffElkins View Post
Pagination is different with these epubs. It generally takes at least two page forwards to advance the page count. Also I'm seeing the page number in extremely tiny print embedded about mid-page.
That's a feature of Adobe DE, it counts a page as a certain font and resolution independent size. The number of screens that make a logical page therefore varies. As for the page number on the right, another annoying "feature" of DE.
kovidgoyal is offline   Reply With Quote
Old 10-05-2008, 12:57 PM   #177
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by =X= View Post
Right I assume so, but that is not what is happening. Here I've attached a HTML and an ePUB to illistrate the problem


BTW the --level1-toc and --level2-toc work great.
Oops, will be fixed in the next release.
kovidgoyal is offline   Reply With Quote
Old 10-05-2008, 04:12 PM   #178
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
That's a feature of Adobe DE, it counts a page as a certain font and resolution independent size. The number of screens that make a logical page therefore varies. As for the page number on the right, another annoying "feature" of DE.
I figured as much, FBReader does something similar.
JeffElkins is offline   Reply With Quote
Old 10-05-2008, 11:25 PM   #179
Selzernium
Enthusiast
Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'Selzernium knows the difference between 'who' and 'whom'
 
Posts: 32
Karma: 10000
Join Date: Feb 2008
Device: Sony PRS-505
conversion errors

I am having trouble converting three books [lrf conversion is OK] they multi page/file html[ziped]. I have opened a ticket and attached the files hope you can find a fix.
Selzernium is offline   Reply With Quote
Old 10-06-2008, 04:33 PM   #180
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
released version 0.4.92 with various fixes.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
epub output metadata troymc Calibre 5 05-22-2010 12:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 02:23 AM


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


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