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 07-08-2010, 01:06 PM   #1
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
Calibre cut lines in a converted CHM to MOBI

Hi all

I've converted a CHM file to MOBI via calibre, but I've noticed the lines are cut.
Playing around in my Kindle with the font size I can read almost the full line but this is a useless workaround.

any suggestion?
jomaweb is offline   Reply With Quote
Old 07-08-2010, 11:27 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,738
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by jomaweb View Post
I've converted a CHM file to MOBI via calibre, but I've noticed the lines are cut.
Playing around in my Kindle with the font size I can read almost the full line but this is a useless workaround.

any suggestion?
Lines are cut? I assume you mean they run off the screen. I think this happens when the html in question uses <pre> tags. I think these tags are used to prevent code examples from wrapping and get converted intact.

You could run the conversion with a directory in debug then go into the html provided there and see what is in the code that is preventing it from wrapping.

Update: You could always convert the tables manually to images and size them to fit your reader.

Last edited by DoctorOhh; 07-09-2010 at 08:57 AM.
DoctorOhh is online now   Reply With Quote
Old 07-09-2010, 05:00 AM   #3
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
yes. That's what I mean.

so, deleting all that "pre" tags will solve thi issue?
jomaweb is offline   Reply With Quote
Old 07-09-2010, 05:02 AM   #4
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: 35,983
Karma: 17083916
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Convert the pre tags into div tags.
JSWolf is offline   Reply With Quote
Old 07-09-2010, 05:35 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,738
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by JSWolf View Post
Convert the pre tags into div tags.
Nice tip.
DoctorOhh is online now   Reply With Quote
Old 07-09-2010, 07:54 AM   #6
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
I've replaced every "pre" tag with "div" (and "/pre" with "/div") but this did not solve the issue.

Calibre keeps converting to mobi with the lines running off the screen.

any other tool or workaround?

(uploaded ePub obtained in Sigil after replacing the tags)
Attached Files
File Type: epub stanek.epub (578.5 KB, 80 views)

Last edited by jomaweb; 07-09-2010 at 08:00 AM.
jomaweb is offline   Reply With Quote
Old 07-09-2010, 08:53 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,738
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by jomaweb View Post
I've replaced every "pre" tag with "div" (and "/pre" with "/div") but this did not solve the issue.

Calibre keeps converting to mobi with the lines running off the screen.

any other tool or workaround?
I'm guessing your tables are running off the screen? In theory you could convert the settings from px to % for widths but that's too much for me to talk about.

You could select linearize tables under conversion - look & feel but it'll be ugly.

Good Luck.
DoctorOhh is online now   Reply With Quote
Old 07-09-2010, 10:08 AM   #8
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
I think it's not a table issue. The tables look great. It's the normal text that appears running out of the screen.
jomaweb is offline   Reply With Quote
Old 07-09-2010, 11:10 AM   #9
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: 25,283
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's not just <pre> any tag with whitespace: pre in the css will be rendered like a <pre>
kovidgoyal is offline   Reply With Quote
Old 07-09-2010, 11:52 AM   #10
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
Deleted any reference in the code to any occurrence of "pre". Tags, CSS, ...anywhere.

Still getting the "hidden lines" issue.
jomaweb is offline   Reply With Quote
Old 07-09-2010, 12:39 PM   #11
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: 25,283
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
there is something in your input file that is specifying non reflowable layout for text.
kovidgoyal is offline   Reply With Quote
Old 07-09-2010, 12:41 PM   #12
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 jomaweb View Post
Deleted any reference in the code to any occurrence of "pre". Tags, CSS, ...anywhere.

Still getting the "hidden lines" issue.
I glanced through the epub, and saw lots of very wide tables that are offscreen, even on my widescreen monitor. I looked inside, and it appeared that they were in table data and/or row tags, but without the surrounding table tags. It looks like a tables issue to me, although if you point to a particular non-table bit of text, I'm sure someone will look at it. I'd try linearize tables to make sure that doesn't fix it, and also check to make sure you don't have some malformed html relating to tables.
Starson17 is offline   Reply With Quote
Old 07-21-2010, 03:07 PM   #13
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: 35,983
Karma: 17083916
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
CHM & wiki can be some of the most awful code around.
JSWolf 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
Lines became paragraphs after .lit to .mobi conversion Piper_ Calibre 11 09-19-2010 05:11 PM
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) David Derrico Calibre 5 08-04-2010 12:13 AM
Calibre converted comics cut off on Kobo ViralMage Kobo Reader 17 06-19-2010 10:44 AM
two issues in MOBI converted from prc in Calibre joselitux Calibre 0 06-01-2010 02:08 PM
PRS-505 Missing several lines in converted Epubs VanPersie Sony Reader 3 04-25-2010 02:26 PM


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


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