Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2008, 02:47 PM   #106
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2008
Location: London
Device: Kobo GloHD and Aura h2O
file sent in Ticket #1095
mikeywilliams25 is offline   Reply With Quote
Old 09-29-2008, 03:12 PM   #107
HardBoot
Member
HardBoot began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2008
Device: PRS-505
Quote:
Originally Posted by kovidgoyal View Post
The problem is that the reader cannot handle EPUB files that have individual components larger than 300K, so calibre tries to split these files. It tries to split them on tag boundaries like page-breaks, heading tags, <p> tags etc. If your lit file contains a txt file instead of HTML (or an HTML file with just one tag with a lot of text), calibre wont find any tags and will therefore fail to split. Basically, this should only happen for some txt based LIT files. So raising tickets on these kinds of files is pointless.

It's really weird that you LRF file are so large. try running lrf2lrs on them and seeing what is taking up all the space. The text itself or embedded images or embedded fonts.

The next release of calibre will have a control in the bulk metadata edit to delete a format.
Ok thanks for the information and advice. I must say 300k sounds ridicuously restrictive but what do I know. Deciding what to split obviously takes a lot of processing power, some of the conversions can take 20mins and my poor laptop is burning up.

I'll try lrf2lrs and and report back.

The bulk delete will be very handy (deleting them one at a time was getting rather tedious!)

BTW I find the button to create the author sort very useful. It would be handy to have it on the bulk metadata edit as well if that's possible.
HardBoot is offline   Reply With Quote
Old 09-29-2008, 03:33 PM   #108
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
actually i decided to implement splitting for <pre> tags that contain a lot of text as well. So a number of your files should work in the future.
kovidgoyal is offline   Reply With Quote
Old 09-29-2008, 09:35 PM   #109
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by mikeywilliams25 View Post
I converted a .lit file to epub and to lrf (calibre-0.4.88)
The epub doesn't resize when viewed on the reader, S,M or L are all the same size.
The lrf resizes fine.
Is this something in my setup or a feature of epubs?

I notice that scientific american also doesnt resize when in epub format.
Turns out that Adobe DE cant resize the fonts when some font sizes are specified in absolute values. Probably because it uses an obsolete HTML rendering engine.

Last edited by kovidgoyal; 09-29-2008 at 09:46 PM.
kovidgoyal is offline   Reply With Quote
Old 09-30-2008, 01:18 AM   #110
HardBoot
Member
HardBoot began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2008
Device: PRS-505
Large LRFs

Quote:
Originally Posted by kovidgoyal View Post

It's really weird that you LRF file are so large. try running lrf2lrs on them and seeing what is taking up all the space. The text itself or embedded images or embedded fonts.
I did as you said and attached is a screen capture of the files it produced.

I've no idea what conclusion to draw from this information so hopefully it's meaningful to you!
Attached Thumbnails
Click image for larger version

Name:	2008-09-30_055253.png
Views:	494
Size:	122.4 KB
ID:	16669  
HardBoot is offline   Reply With Quote
Old 09-30-2008, 01:20 AM   #111
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
its the embedded fonts that are causing the large files. Disable font embedding and you will be fine.
kovidgoyal is offline   Reply With Quote
Old 09-30-2008, 03:48 AM   #112
HardBoot
Member
HardBoot began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2008
Device: PRS-505
LRF large file fixed

Quote:
Originally Posted by kovidgoyal View Post
its the embedded fonts that are causing the large files. Disable font embedding and you will be fine.
Excellent thanks...that's fixed it.
HardBoot is offline   Reply With Quote
Old 09-30-2008, 07:23 AM   #113
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2008
Location: London
Device: Kobo GloHD and Aura h2O
Quote:
Originally Posted by kovidgoyal View Post
Turns out that Adobe DE cant resize the fonts when some font sizes are specified in absolute values. Probably because it uses an obsolete HTML rendering engine.
I take it that it is therefore better to use lrf for files with specified font sizes - or will the epub conversion be able at some time in the future to take account of this in the way that the lrf conversion does.
mikeywilliams25 is offline   Reply With Quote
Old 09-30-2008, 10:03 AM   #114
dynabook
Techno-geek
dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.
 
Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
How do you specify fonts in relative sizes? Say 10 pt vs. 12 Pt? or 10pt, 12 pt, 18 pt?

How about in a CSS style sheet?
dynabook is offline   Reply With Quote
Old 09-30-2008, 10:51 AM   #115
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@mikeywilliams

This is already worked around in 0.4.89

@dynabook

pt sizes are not relative, they are absolute. You can use the override CSS and the base font size settings to change font sizes.

Note that for those of you that downloaded 0.4.89 in the last 12 hrs. There is a regression in the windows version that is preventing epub output from working. Please re-download the windows installer as I have now fixed the bug.
kovidgoyal is offline   Reply With Quote
Old 09-30-2008, 11:32 AM   #116
Peto
Legal Alien
Peto doesn't litterPeto doesn't litter
 
Peto's Avatar
 
Posts: 288
Karma: 105
Join Date: Jan 2008
Device: Sony PRS-505/T1/Kindle PW2
Hello there, Kovid,

I converted the pdf again using 0.89 both to lrf and epub. The dark color background and the page numbers are gone in epub, so that is solved.

Page jumps are gone, though, along with all the format except capitals and cursive, and the original header is treated as if it was main text in the original, so it repeatedly appears intertwined with the text.

Paragraphs are gone too, so I get text lines cut in the middle all over.
Peto is offline   Reply With Quote
Old 09-30-2008, 11:44 AM   #117
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Peto View Post
Hello there, Kovid,

Page jumps are gone, though, along with all the format except capitals and cursive, and the original header is treated as if it was main text in the original, so it repeatedly appears intertwined with the text.

Paragraphs are gone too, so I get text lines cut in the middle all over.
Are you saying the problem is in both LRF and EPUB?
kovidgoyal is offline   Reply With Quote
Old 09-30-2008, 11:50 AM   #118
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'm at 972 ebooks converted to epub. About 2.5K books to go. I've had minimal problems with this batch convert!
JeffElkins is offline   Reply With Quote
Old 09-30-2008, 11:54 AM   #119
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JeffElkins View Post
I'm at 972 ebooks converted to epub. About 2.5K books to go. I've had minimal problems with this batch convert!
Cool, the code is maturing rapidly
kovidgoyal is offline   Reply With Quote
Old 09-30-2008, 12:18 PM   #120
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2008
Location: London
Device: Kobo GloHD and Aura h2O
OK - tried 0.4.89 (thank you for such speedy updates)
Some problems.
The lit file i sent you wouldn't convert to epub - lots of errors. No doubt it is not a well formed lit file, but it does read ok in lit reader tho the fonts are fixed size.

Scientific American crashed the reader on formatting even when transferred using eBook library. Looking at the file using eBook library it had very odd pages and font sizes.

Tried converting an html zipped file to epub - the font was much too small, so tried upping the base font size to 200%. The font was now a reasonable size but the lines were much too close together - the line feed or whatever it is called had not been increased.

Good luck!
mikeywilliams25 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:56 PM.


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