|10-03-2009, 06:59 AM||#1|
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:
<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 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!
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Where do purchased lrf files go?||Amystei||Other formats||5||06-15-2009 05:49 AM|
|non Sony .lrf files???||cipher57||LRF||7||01-18-2009 05:10 AM|
|Illustrations in .lrf files||SluggyJohnson||Workshop||7||12-19-2007 10:03 AM|
|How can I read .lrf files on my Mac?||jaybee||Sony Reader||2||10-30-2007 02:03 AM|
|Is there a way to merge lrf files?||Tom Swift||Sony Reader||14||09-24-2007 08:13 PM|