Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2009, 10:50 PM   #1
Dahak
Zealot
Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.
 
Dahak's Avatar
 
Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
LRF with aligned HTML tags

I'm still experimenting with the right combination of styling to get my LRF conversions looking the way I want them to come out for my new 505.

I've been using Calibre and its CSS override to try to force the tags to render my way with some odd results.

Here's the CSS override I use:

Code:
@font-face {font-family: "Trebuchet";font-weight: normal;font-style: normal;src: url(res:///Data/fonts/trebuc.ttf);}
@font-face {font-family: "Trebuchet";font-weight: bold;font-style: normal;src: url(res:///Data/fonts/trebucbd.ttf);}
@font-face {font-family: "Trebuchet";font-weight: bold;font-style: italic;src: url(res:///Data/fonts/trebucbi.ttf);}
@font-face {font-family: "Trebuchet";font-weight: normal;font-style: italic;src: url(res:///Data/fonts/trebucit.ttf);}

body, p, div, h1, h2, h3, h4, a, center, blockquote {
  font-family: "Trebuchet", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 10px;
  line-height: 0.9em;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-right: 2px;
  margin-left: 2px;
}

b, strong {
  font-family: "Trebuchet", sans-serif;
  font-weight: bold;
  font-style: normal;
  font-size: 10px;
  line-height: 0.9em;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-right: 2px;
  margin-left: 2px;
}

i, em {
  font-family: "Trebuchet", sans-serif;
  font-weight: normal;
  font-style: italic;
  font-size: 10px;
  line-height: 0.9em;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-right: 2px;
  margin-left: 2px;
}

This is all a 'work-in-progress' so I hope you can forgive the font-face tags I included from my ePub experiments.

The most odd thing I've encountered is that whenever I have a header tag with the align attribute set, I get weird results.

For example, the tags:

Code:
<h2 align=center>
Chapter 1<br>
Going Up<br><br>
</h2>
would render something like (hoping I set this right):

Chapter 1
Going Up

Centered, with almost default-sized initials and tiny, tiny word-bodies.

Has anyone seen this before?

Am I imagining it?

Is there a work-around?

Is there a work-around that doesn't involve my re-writing the source files?

Thanks.

-Joe
Dahak is offline   Reply With Quote
Old 08-10-2009, 08:06 PM   #2
Achilles
Enthusiast
Achilles began at the beginning.
 
Posts: 27
Karma: 32
Join Date: Aug 2009
Device: Kindle 2
As near as I can tell, the anything to LRF conversion in the 0.6.x versions of Calibre is VERY, VERY broken. I can't get it to recognize simple center tags most of the time and it makes a huge mess out of any html I throw at it. I've wound up downgrading Calibre back to 0.5.14 to do my LRF conversion. Hopefully the new LRF routines in the 0.6.x version will get some love, cuz right now they're really busted.
Achilles is offline   Reply With Quote
Old 08-12-2009, 10:27 AM   #3
corroonb
Addict
corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.
 
corroonb's Avatar
 
Posts: 317
Karma: 1232685
Join Date: Nov 2008
Location: Ireland
Device: Kindle Voyage, Kobo Aura, Nexus 9
Quote:
Originally Posted by Achilles View Post
As near as I can tell, the anything to LRF conversion in the 0.6.x versions of Calibre is VERY, VERY broken. I can't get it to recognize simple center tags most of the time and it makes a huge mess out of any html I throw at it. I've wound up downgrading Calibre back to 0.5.14 to do my LRF conversion. Hopefully the new LRF routines in the 0.6.x version will get some love, cuz right now they're really busted.
Have you tried using Book Designer? There are links for it in the stickies in the workshop section. It produces LRF files that you can format directly in the program with a word processor-like interface.
corroonb is offline   Reply With Quote
Old 08-12-2009, 01:22 PM   #4
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,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Dahak View Post

Is there a work-around?

Is there a work-around that doesn't involve my re-writing the source files?

Thanks.

-Joe

This is the CSS override code I'm using for my LRF conversions...

p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt; text-indent: 15pt;}
h1 { text-align: center; }
h2 {text-align: center; font-size: larger; page-break-before: always;}
h3 { text-align: center; }
h4 { text-align: center; }
h5 { text-align: center; }
h6 { text-align: center; }
img {text-align: center; }

I normally don't define the font and it comes out as Times New Roman as default.
Amalthia is offline   Reply With Quote
Old 08-12-2009, 01:22 PM   #5
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,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Achilles View Post
As near as I can tell, the anything to LRF conversion in the 0.6.x versions of Calibre is VERY, VERY broken. I can't get it to recognize simple center tags most of the time and it makes a huge mess out of any html I throw at it. I've wound up downgrading Calibre back to 0.5.14 to do my LRF conversion. Hopefully the new LRF routines in the 0.6.x version will get some love, cuz right now they're really busted.
I think with the LRF conversions you have to pretend it's a epub file you're creating and use epub settings. but then again I'm not making complicated ebooks either.
Amalthia is offline   Reply With Quote
Reply

Tags
lrf html align calibre


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add HTML with meta tags Pixelmagic Calibre 9 04-19-2020 05:47 PM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 06:44 AM
HTML author / title tags ? romi Bookeen 0 05-11-2009 07:47 AM
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? EatingPie Sony Reader Dev Corner 9 04-07-2007 01:06 AM


All times are GMT -4. The time now is 08:07 PM.


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