Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2009, 01:31 PM   #856
ZenEngineer
Connoisseur
ZenEngineer has learned how to buy an e-book online
 
Posts: 65
Karma: 92
Join Date: Feb 2008
Location: California
Device: Sony PRS-505
RTF to LRF large margins top and bottom, text size

When I upgraded from version 5.x to 6.20, the GUI options for conversion increased. What also increased was the large margin in the top and bottom. When converting from RTF to LRF, I like to fill the whole reading area and put in the title&author header. But with 6.20, even with a 0.0 pt margin all around, the top and bottom have large open spaces.

The text size has also increased. With an RTF that has 10.0 size type, the LRF output looks to be about 14pt. How do I fix that?
ZenEngineer is offline   Reply With Quote
Old 12-07-2009, 02:25 PM   #857
am_mread
Head Goat
am_mread is on a distinguished road
 
am_mread's Avatar
 
Posts: 74
Karma: 50
Join Date: Mar 2009
Location: Grand Cayman, Cayman Islands.
Device: Kindle Paperwhite Gen 11.
ZenEngineer: I added the following to the Extra CSS section in Conversion/Look & Feel in Preferences. It reduced the margins to what I was used to with the earlier versions.. I also use fontsize 9.

p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt;}

Hope this helps..
am_mread is offline   Reply With Quote
Old 12-07-2009, 02:41 PM   #858
ZenEngineer
Connoisseur
ZenEngineer has learned how to buy an e-book online
 
Posts: 65
Karma: 92
Join Date: Feb 2008
Location: California
Device: Sony PRS-505
Quote:
Originally Posted by am_mread View Post
ZenEngineer: I added the following to the Extra CSS section in Conversion/Look & Feel in Preferences. It reduced the margins to what I was used to with the earlier versions.. I also use fontsize 9.

p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt;}

Hope this helps..
Worked great! Thanks.
ZenEngineer is offline   Reply With Quote
Old 04-05-2010, 03:36 AM   #859
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Has anyone else had trouble with extra spaces right after < /EM > tags? This is very noticeable when a comma or period follows the < / EM > tag. So far it looks like it's only affecting the LRF conversions I'm making.
Amalthia is offline   Reply With Quote
Old 04-05-2010, 10:44 AM   #860
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by Amalthia View Post
Has anyone else had trouble with extra spaces right after < /EM > tags? This is very noticeable when a comma or period follows the < / EM > tag. So far it looks like it's only affecting the LRF conversions I'm making.
Yes, I noticed it. For now I solve it by including punctuation in the tags. (< em >something, < /em >)
pepak is offline   Reply With Quote
Old 04-05-2010, 10:47 AM   #861
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,120
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Amalthia View Post
Has anyone else had trouble with extra spaces right after < /EM > tags? This is very noticeable when a comma or period follows the < / EM > tag. So far it looks like it's only affecting the LRF conversions I'm making.
The problem is that LRF is simulating the italics. So what happens is the spacing after the simulated italics is off. After reading ePub with proper italics, I won't go back to LRF with the awful simulated italics.
JSWolf is offline   Reply With Quote
Old 04-05-2010, 12:53 PM   #862
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JSWolf View Post
The problem is that LRF is simulating the italics. So what happens is the spacing after the simulated italics is off. After reading ePub with proper italics, I won't go back to LRF with the awful simulated italics.
I'm not sure this is an option yet for me because I still can't stand the page numbers on the margin of my PRS-505.

I keep hoping they'd make a firmware update to fix the epub problems on the Sony and it hasn't happened.
Amalthia is offline   Reply With Quote
Old 04-05-2010, 12:53 PM   #863
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by pepak View Post
Yes, I noticed it. For now I solve it by including punctuation in the tags. (< em >something, < /em >)
Yeah, I was trying to avoid that option. I have over 150 stories I'd have to edit the HTML in order to fix the spacing issue. Currently the EPUB and Mobi do not display the same problem...
Amalthia is offline   Reply With Quote
Old 04-05-2010, 01:54 PM   #864
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 Amalthia View Post
"Of all Unicorns she is the only one who knows what regret is and love." -The Last Unicorn

"There are no happy endings because nothing ends." -The Last Unicorn
You seem familiar with unicorns. I've always wondered: Why aren't they called unihorns?
Starson17 is offline   Reply With Quote
Old 04-05-2010, 08:20 PM   #865
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Starson17 View Post
You seem familiar with unicorns. I've always wondered: Why aren't they called unihorns?
I think the name unicorn is based on Latin, uni=one and corn=horse???

that's my guess. I'm just glad you're not in charge of naming anything!
Amalthia is offline   Reply With Quote
Old 04-05-2010, 08:45 PM   #866
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,120
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Amalthia View Post
I'm not sure this is an option yet for me because I still can't stand the page numbers on the margin of my PRS-505.

I keep hoping they'd make a firmware update to fix the epub problems on the Sony and it hasn't happened.
I've just gotten used to th page number in the right side. Even have margins set for 0 on the right and I don't mind when the words and the number overlap. Given that it's not full justified, it doesn't always overlap. Plus, using the font of my choice makes things that much nicer to read.
JSWolf is offline   Reply With Quote
Old 04-05-2010, 08:58 PM   #867
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JSWolf View Post
I've just gotten used to th page number in the right side. Even have margins set for 0 on the right and I don't mind when the words and the number overlap. Given that it's not full justified, it doesn't always overlap. Plus, using the font of my choice makes things that much nicer to read.
I'm still trying to figure out how to embedd fonts, none of the directions make sense.

I kind of got that I need to download the font .tff file? and I think it goes in the epub container (but I'm not exactly sure where) and I'm not sure if I need to do anything more than that? or add the font code to the top of the HTML file....

Currently LRF looks nicer on my device however...it's not the format that's readable on all the new devices coming out so in spite of myself I've learned how to make epubs with Calibre. (I just don't know how to do the more advanced stuff)

Now, the weird thing is using the same HTML source code for LRF and Epub produces two different results and the epub just doesn't look as good in Times New Roman. I'm going to have to play around with it until I figure out what settings I'd need to get it to look like my LRF conversions.
Amalthia is offline   Reply With Quote
Old 04-05-2010, 11:44 PM   #868
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by Amalthia View Post
Yeah, I was trying to avoid that option. I have over 150 stories I'd have to edit the HTML in order to fix the spacing issue. Currently the EPUB and Mobi do not display the same problem...
Just get a good editor and run a correct regexp (regular expression search and replace):

1) For moving the punctuation inside the emphasis:
search = (</em>)([.,!?;:]+)
replace = $2$1

2) For moving the punctuation outside the emphasis:
search = ([.,!?;:]+)(</em>)
replace = $2$1
pepak is offline   Reply With Quote
Old 04-06-2010, 12:13 AM   #869
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by pepak View Post
Just get a good editor and run a correct regexp (regular expression search and replace):

1) For moving the punctuation inside the emphasis:
search = (</em>)([.,!?;:]+)
replace = $2$1

2) For moving the punctuation outside the emphasis:
search = ([.,!?;:]+)(</em>)
replace = $2$1
I'm guessing Notepad++ would do the trick? this seems far too advanced for Wordpad.
Amalthia is offline   Reply With Quote
Old 04-06-2010, 12:34 AM   #870
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
It seems that Notepad++ can't handle regular expression replace properly (as per specified syntax). But it does wortk if you use \2\1 for replacement (use backslash instead of string).

I am not sure if Notepad++ can handle multiple files, though. I use FAR Manager with RESearch plugin and that works like a charm.
pepak is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font of header for LRF Output on PRS 505 duckbill Calibre 3 05-15-2010 11:07 AM
Pissed off with LRF formatting: LRF/LRS clean tool? grimborg LRF 8 02-15-2010 01:14 PM
Fonts for LRF output krischik Calibre 1 10-03-2009 05:01 AM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 06:44 AM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM


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


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