Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-15-2010, 03:08 AM   #1
megacoupe
Connoisseur
megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.
 
Posts: 80
Karma: 8682
Join Date: Aug 2007
Device: Kindle Voyage
Some CSS properties not transferring when converting ePub to LRF

I have a beautiful ePub that I've painstakingly edited in Sigil to get the text to look just the way I want it... but when I convert that ePub to LRF (for use on my unupgraded PRS500), certain CSS properties just don't work.

The first property that I noticed doesn't work is:

Code:
text-align: center;
Being the inexperienced coder I am, I tried placing that property in <div> and <p> tags just to be sure. I also tried:

Code:
margin-left: auto;
margin-right: auto;
and

Code:
padding-left: auto;
padding-right: auto;
But the text wouldn't center. I even tried using the old school <center> tag.

Checking out some other parts of the LRF, I found that the following properties didn't work either:

Code:
text-align: right;
font-style: italic;
Though interestingly enough,
Code:
font-weight: bold;
worked just fine.

Now, I know that Calibre doesn't have LRF bugs fixed anymore and that I should have upgraded my PRS500 a long time ago, but I'm looking for other (constructive) answers. Could my CSS be wrong? Are these known issues with LRF that were never fixed? Are there any workarounds to getting these properties to work? Is there another epub2lrf converter that will convert the properties correctly?

(BTW, MOBI output was very similar to the ePub, so I'm pretty sure these bugs are isolated to the LRF format. Any tips to make the LRF output look closer to the ePub would be appreciated.)
megacoupe is offline   Reply With Quote
Old 10-15-2010, 11:40 AM   #2
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: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm afraid LRF output is no longer maintained.

In general, the simpler the markup, the more likely it is to be correctly converted. Try converting the MOBI to LRF.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-15-2010, 05:35 PM   #3
megacoupe
Connoisseur
megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.megacoupe shines like a glazed doughnut.
 
Posts: 80
Karma: 8682
Join Date: Aug 2007
Device: Kindle Voyage
Kovid,

I just tried your suggestion: converting from ePub to MOBI, and then MOBI to LRF... and it seems to have worked! I didn't check each property, but the main ones seem to have converted properly.

Thank you for your help. I hope some other poor soul out there still using LRF might find this information useful.
megacoupe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems converting LRF to EPUB rbur Calibre 2 06-21-2010 06:28 PM
converting to epub with my css fbrzvnrnd Calibre 3 04-15-2010 02:46 AM
Converting ODT to EPUB/LRF banjomike Calibre 2 10-03-2009 04:32 PM
Unsetting properties in CSS Jellby ePub 2 06-03-2009 04:29 AM
Supported HTML/CSS tags and properties Jellby Bookeen 9 05-04-2008 04:55 PM


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


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