Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-24-2009, 11:36 AM   #1
ascherjim
Addict
ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.
 
Posts: 260
Karma: 274
Join Date: Apr 2006
Location: Gig Harbor, Washington
Device: BeBook One, PocketBook 360, Kindle Paperwhite, Kobo Aura One
Margin Control with ePub/Mobi Conversion

My usual Calibre conversion is from html to Mobi (and sometimes from lit to Mobi). I prefer the Mobi format and have quite readily been able to achieve my preferred conversion with full justification and even borders (5 pt).

I have just attempted my first epub to Mobi conversion, which for the most part turned out well, except that my left margins were much, much wider than the other margins. I tried re-converting, designating the left margin as zero rather than 5 pt, but the resulting conversion turned out exactly the same.

The text looks fine, with my preferred full justification, except for that wide left margin. Is there any way I can get a conversion with even borders?
ascherjim is offline   Reply With Quote
Old 07-24-2009, 11:41 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
There must be something in the HTML source which is explicitly setting the left margin. Your only option, really, is to edit the HTML and fix it.
HarryT is offline   Reply With Quote
Advert
Old 07-24-2009, 11:45 AM   #3
ascherjim
Addict
ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.
 
Posts: 260
Karma: 274
Join Date: Apr 2006
Location: Gig Harbor, Washington
Device: BeBook One, PocketBook 360, Kindle Paperwhite, Kobo Aura One
Quote:
Originally Posted by HarryT View Post
There must be something in the HTML source which is explicitly setting the left margin. Your only option, really, is to edit the HTML and fix it.
HarryT: Thanks. How do I get to the epub html source, and what do I look for to change? This would be my first time at doing this (although I am somewhat Linux conversant).
ascherjim is offline   Reply With Quote
Old 07-24-2009, 11:55 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
An ePub file is just a ZIP file. Rename it to ".zip" and you can open it with any tool that handles ZIP files.

I'm afraid you will need to be conversant with HTML in order to make the change. No getting around that. If you aren't familiar with it yourself, perhaps you know someone who is?
HarryT is offline   Reply With Quote
Old 07-24-2009, 01:43 PM   #5
ascherjim
Addict
ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.
 
Posts: 260
Karma: 274
Join Date: Apr 2006
Location: Gig Harbor, Washington
Device: BeBook One, PocketBook 360, Kindle Paperwhite, Kobo Aura One
Quote:
Originally Posted by HarryT View Post
An ePub file is just a ZIP file. Rename it to ".zip" and you can open it with any tool that handles ZIP files.

I'm afraid you will need to be conversant with HTML in order to make the change. No getting around that. If you aren't familiar with it yourself, perhaps you know someone who is?
Harry: Thanks again. I was able to rename and unzip it, examine its contents -- and decide I'd best for now let things remain as at present. The formatting, except for the left margin, is quite as usual for my Mobi formatting. Maybe in time I'll try to learn how to manipulate html files.
ascherjim is offline   Reply With Quote
Advert
Old 07-25-2009, 01:56 PM   #6
ascherjim
Addict
ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.ascherjim has a complete set of Star Wars action figures.
 
Posts: 260
Karma: 274
Join Date: Apr 2006
Location: Gig Harbor, Washington
Device: BeBook One, PocketBook 360, Kindle Paperwhite, Kobo Aura One
Quote:
Originally Posted by ascherjim View Post
Harry: Thanks again. I was able to rename and unzip it, examine its contents -- and decide I'd best for now let things remain as at present. The formatting, except for the left margin, is quite as usual for my Mobi formatting. Maybe in time I'll try to learn how to manipulate html files.
Harry: After a day's thinking about this, utilizing your tip to rename the epub file to a zip file, I came up with a fairly simple solution (for me) to get the left margin the way I wanted it (to match the other margins for full justification):

After extracting the html files I copied the main text to my word processor, saved it as a txt document, then had Calibre convert the txt document to Mobi. Now everything looks fine. Thanks again.
ascherjim is offline   Reply With Quote
Old 10-15-2010, 02:51 AM   #7
Vighnahara
Member
Vighnahara began at the beginning.
 
Vighnahara's Avatar
 
Posts: 15
Karma: 12
Join Date: Sep 2010
Location: Saskatoon, SK
Device: Kindle 3 Wi-Fi
Quote:
Originally Posted by ascherjim View Post
fter extracting the html files I copied the main text to my word processor, saved it as a txt document, then had Calibre convert the txt document to Mobi. Now everything looks fine. Thanks again.
Did this keep the chapters, etc? Or is it now just one long block? If you're going to go that route, you might be able to just convert straight from epub to text in Calibre...
Vighnahara is offline   Reply With Quote
Old 10-15-2010, 04:09 AM   #8
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: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Vighnahara View Post
Did this keep the chapters, etc? Or is it now just one long block? If you're going to go that route, you might be able to just convert straight from epub to text in Calibre...
I know it sometimes gets confusing, but please refrain from answering posts well over a year old.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Convert epub to mobi with wide left margin on Kindle victoria0217 Conversion 91 11-15-2011 06:25 PM
ePub to mobi margin question jhawkins002 Calibre 3 09-07-2010 08:53 PM
New conversion questions: Getting rid of huge left margin Epub to Mobi geekgeek Calibre 2 09-01-2010 12:00 AM
Epub to Mobi conversion MichaelGray Calibre 2 08-12-2010 02:08 PM
Right Margin Control TedPark Sony Reader Dev Corner 4 07-02-2008 08:41 AM


All times are GMT -4. The time now is 08:26 AM.


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