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 10-03-2009, 05:59 AM   #1
Horribleman
Junior Member
Horribleman began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2009
Device: Prs 505
Can someone help me reformat my lrf files?

I've gotten a load of LRF format books, but they've obviously been pre-converted from another format.

So there are page breaks at what was probably the right place in the original format, but on my PRS 505 it means that sometimes there's page breaks mid sentence.

I converted a book to xml to see what was going on, and each page is broken by the following:

Code:
<TextBlock objid="165386" blockstyle="166319" textstyle="166318">
<P><Span fontweight="700"><Italic>Part 1</Italic><Span fontweight="400"><CR /><Span fontweight="700">PROVENER<Span fontweight="400"><CR /></Span></Span></Span></Span></P></TextBlock>

</Page>

<Page pagestyle="166317" objid="165389">
I noticed that the objid is not the same for each 'page' in the book, so I can't do a find and replace.

I guess the regexp functionality may help to strip these out?

Also, is there a way to test to see if the last character of a text block is a fullstop or equivalent so that if it is, I insert a line break, and if it's not it just leaves a space between the next word at the start of the next text block?

Is it possible to put some parameters or regexp into Calibre and convert to epub or lrf with the desired formatting?

Thanks a lot!
Horribleman is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do purchased lrf files go? Amystei Other formats 5 06-15-2009 04:49 AM
non Sony .lrf files??? cipher57 LRF 7 01-18-2009 04:10 AM
Illustrations in .lrf files SluggyJohnson Workshop 7 12-19-2007 09:03 AM
How can I read .lrf files on my Mac? jaybee Sony Reader 2 10-30-2007 01:03 AM
Is there a way to merge lrf files? Tom Swift Sony Reader 14 09-24-2007 07:13 PM


All times are GMT -4. The time now is 11:43 AM.


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