Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-13-2009, 09:31 AM   #196
TevK
Member
TevK doesn't litterTevK doesn't litter
 
Posts: 13
Karma: 166
Join Date: Mar 2007
Device: Sony Reader
Quote:
Originally Posted by user_none View Post
Lave the input profile as default but set the output profile to kindle_dx. Also, keep using the keep aspect ratio option. If the output profile set to kindle_dx and the keep aspect ratio options are still giving you issues let us know.
Yeah, I tried that, Input Profile = default, Output Profile = Kindle DX, Comic Input preferences all unchecked except "Keep Aspect Ratio" (# of Colors set to 16)... results in the same squished output.
TevK is offline  
Old 06-13-2009, 09:45 AM   #197
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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by TevK View Post
Yeah, I tried that, Input Profile = default, Output Profile = Kindle DX, Comic Input preferences all unchecked except "Keep Aspect Ratio" (# of Colors set to 16)... results in the same squished output.
Looks like the output profile option it not being honored in the GUI. I'll look into and and post when it's fixed.
user_none is offline  
Advert
Old 06-13-2009, 09:46 AM   #198
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Have you tried using the CLI ebook-convert to see if that works?
JSWolf is offline  
Old 06-13-2009, 12:17 PM   #199
pars_andy
Connoisseur
pars_andy began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Apr 2009
Device: Sony PRS505
Is there any way of getting calibre to automatically drop page numbers when converting from pdf files. What i mean is that if i convert a pdf file to lrf or epub, the page numbers from the pdf are still present and included as part of the text. My preferred method of converting from pdf at the moment is to first drop the pdf into mobireader and then convert from the resulting prc file using calibre. This fixes the problem by getting rid of the page numbers and the mobipocket reader seems to do a decent job of reformatting the pdf.
pars_andy is offline  
Old 06-13-2009, 01:45 PM   #200
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
TevK,

With regards to CBZ, wouldn't the aspect ratio constrain the image based on the shortest pixel direction? That would cause the image to adjust in size accordingly. So no matter which way you use it, the image will be small. (Unless you can scroll an image on the Kindle - or other ebooks).

Sorry, your comment just struck me as odd. I haven't tried any manga in ereader software, let alone hardware. So I might not understand what you're encountering. I'm just thinking about what I see happen in image software (photoshop, etc).
Sabardeyn is offline  
Advert
Old 06-13-2009, 02:11 PM   #201
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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Sabardeyn
With regards to CBZ, wouldn't the aspect ratio constrain the image based on the shortest pixel direction?
The keep aspect ratio option constrains the image so that it is always the starting aspect ratio. Meaning if the image is 16 inches wide and 9 inches tall it will have an aspect ratio of 16:9. The option makes sure the image is always 16:9. So if the width is changed to fit inside of the document than the height will be changed accordingly. It just keeps the ratio it does not prevent the image from being scaled up or down.

Quote:
Originally Posted by pars_andy
Is there any way of getting calibre to automatically drop page numbers when converting from pdf files
Calibre does not currently support this. Your best options are to either use another conversion program such as you are or to crop the PDF and remove the header/footer from each page.

@JSWolf
@TevK

The command line works(ish). The keep aspect ratio option was not being sent to the conversion pipeline though the GUI and there were a few bugs in the dx profile. Those have been corrected and it should be working in the next release.
user_none is offline  
Old 06-13-2009, 05:25 PM   #202
tklaus
Connoisseur
tklaus doesn't littertklaus doesn't litter
 
tklaus's Avatar
 
Posts: 71
Karma: 131
Join Date: Nov 2007
Location: San Jose, CA
Device: iPad, Kindle DX
Fetching 'Joel on Software' fails on 0.6b6. It worked in 0.5.

Code:
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Traceback (most recent call last):
  File "worker.py", line 103, in <module>
  File "worker.py", line 90, in main
  File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
  File "calibre\ebooks\conversion\plumber.pyo", line 685, in run
  File "calibre\ebooks\mobi\output.pyo", line 70, in convert
  File "calibre\ebooks\mobi\writer.pyo", line 343, in __call__
  File "calibre\ebooks\mobi\writer.pyo", line 356, in _dump_stream
  File "calibre\ebooks\mobi\writer.pyo", line 363, in _generate_content
  File "calibre\ebooks\mobi\writer.pyo", line 580, in _generate_text
  File "calibre\ebooks\mobi\writer.pyo", line 498, in _build_TBS_Book
ValueError: chr() arg not in range(256)
tklaus is offline  
Old 06-13-2009, 06:27 PM   #203
Gideon
Wearer of Pants
Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.
 
Gideon's Avatar
 
Posts: 1,050
Karma: 7634
Join Date: Jan 2008
Location: Norman, OK
Device: Amazon Kindle DX / iPhone
Anyone else seeing that Calibre freezes up after adding a few PDFs? I get about two in and then on the third it just stays on the adding window perpetually until I abort.
Gideon is offline  
Old 06-13-2009, 07:33 PM   #204
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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Gideon View Post
Anyone else seeing that Calibre freezes up after adding a few PDFs? I get about two in and then on the third it just stays on the adding window perpetually until I abort.
Is it a specific PDF or just when you add a few at a time? Also, what is the size of the files?
user_none is offline  
Old 06-13-2009, 11:47 PM   #205
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
Quote:
Originally Posted by user_none View Post
It just keeps the ratio it does not prevent the image from being scaled up or down.
Hmmm, I guess I assumed that something like a Fit to Screen was automatically used. Along with Keep Aspect Ration it would mean 16:9 (per your example) but scaled downward based on the smallest screen dimension. Which might have accounted for what TevK was seeing.
Sabardeyn is offline  
Old 06-14-2009, 01:37 AM   #206
Anggun
Enthusiast
Anggun will become famous soon enoughAnggun will become famous soon enoughAnggun will become famous soon enoughAnggun will become famous soon enoughAnggun will become famous soon enoughAnggun will become famous soon enough
 
Anggun's Avatar
 
Posts: 42
Karma: 657
Join Date: Sep 2008
Device: Sony PRS-505
Quote:
Originally Posted by kovidgoyal View Post
You need to register for a user account first.
I did... The login page just redirects me to the register page. I think I've registered about 3 times. Hence, why I asked if the site stores session using IP. Because thanks to my "brilliant" ISP, my IP changes every few seconds.

EDIT: Nevermind... Finally, found a proxy that works.

Last edited by Anggun; 06-14-2009 at 05:16 AM.
Anggun is offline  
Old 06-14-2009, 03:35 AM   #207
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
css handling in recipes

I was just playing with the custom recipe for wikipedia from this post:
https://www.mobileread.com/forums/showthread.php?t=41457

I wanted to look into trying to include images, so I yanked the beautiful soup function to see how the default HTML looked with images as an epub.

The first thing I noticed was that some of the text sizing changed pretty drastically - nearly everything was the same size. Digging into it, it looks like Calibre normalizes the div classes until nearly everything is using the same class, calibre4. I didn't test this in .5, but since the css handling has seen some pretty major changes I assume that it's quite different there.

An example (from the 'Tree' example article in the plugin):

Original HTML:
Code:
<div class="thumbcaption">
<div class="magnify"><a title="Enlarge" class="internal" href="/wiki/File:Leavessnipedale.jpg"><img width="15" height="11" alt="" src="/skins-1.5/common/images/magnify-clip.png"/></a></div>
<a title="Beech" href="/wiki/Beech">Beech</a> leaves.</div>
Calibre Generatet HTML:
Code:
<div class="calibre4">
<div class="calibre4"><a href="/wiki/File:Leavessnipedale.jpg" title="Enlarge"><img src="images/img2.png.jpg" width="15" height="11" alt="" class="thumbimage"/></a></div>
<a href="/wiki/Beech" title="Beech">Beech</a> leaves.</div>
</div>
calibre4 had been used previously as the class id for general content, as you can see above several new classes were introduced, but instead of incrementing to calibre5 and calibre6, calibre4 was re-used.

I've attached the plugin with the beautiful soup function removed, as this particular example is in the image caption.
Attached Files
File Type: zip wikipedia_en.zip (1.2 KB, 190 views)
ldolse is offline  
Old 06-14-2009, 04:21 AM   #208
Gideon
Wearer of Pants
Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.
 
Gideon's Avatar
 
Posts: 1,050
Karma: 7634
Join Date: Jan 2008
Location: Norman, OK
Device: Amazon Kindle DX / iPhone
Any PDFs and any sized file. I basically spent the afternoon adding PDFs 2-3 at a time (one at a time until it stopped working), restarting calibre, doing it again, etc. Files ran from less than a meg to 50megs.
Gideon is offline  
Old 06-14-2009, 05:56 AM   #209
sirbruce
Provocateur
sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.
 
sirbruce's Avatar
 
Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
Is anyone else getting crashes when converting a couple hunded or so LIT files at a time? It doesn't seem to be related to a specific book; it just crashes after 100 or so. I doesn't appear to be a memory issue since everything else seems to be fine when it happens.

Update: In fact, it appears to be crashing precisely after converting the 100th LIT to MOBI conversion in a batch, if the batch is larger than that.

Last edited by sirbruce; 06-14-2009 at 10:19 PM.
sirbruce is offline  
Old 06-15-2009, 01:14 AM   #210
TevK
Member
TevK doesn't litterTevK doesn't litter
 
Posts: 13
Karma: 166
Join Date: Mar 2007
Device: Sony Reader
I tried using ebook-convert via command line, using this command:

ebook-convert /Users/tev/Desktop/fairy_tail_sample.cbz /Users/tev/Desktop/fairy_tail_sample.mobi --title="Fairy Tail Sample" --authors="Mashima, Hiro" --keep-aspect-ratio --right2left --input-profile=default --output-profile=kindle_dx

It worked...sorta. Now instead of the image being stretched to fit the width and squished to half the height, it's correctly proportional, but only half the height.

I'm guessing this is one of the bugs in the DX profile that was mentioned, which will be fixed in the next release. I'm eagerly awaiting it. =)

TevK is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre metadata.calibre not allowing updates Chuckels550 Calibre 10 08-09-2010 05:12 PM
Using Calibre as a client for another Calibre instance? toddos Calibre 27 06-30-2010 04:57 AM
Sigil 0.2.0 betas available Valloric Sigil 98 05-03-2010 04:07 PM
cannot open calibre on osx 10.6-- "Calibre is already running" message jlip Calibre 4 01-02-2010 11:05 PM
calibre command line utilities and calibre defaults astrodad Calibre 2 08-07-2008 03:27 PM


All times are GMT -4. The time now is 07:33 AM.


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