View Full Version : Open source lrs2lrf

01-24-2008, 04:12 PM
version 0.4.34 of libprs500 ( now has a converter to compile LRS files into LRF files.

lrs2lrf myfile.lrs

Note that it is preferable to first create an LRF file, then use lrf2lrs on it, rather than using the --lrs option on the libprs500 conversion tools.

01-25-2008, 05:16 AM
Does it mean that DRMed LRS files from Sony Connect could be converted into non-DRM LRF files?

01-25-2008, 05:21 AM
No DRMed files are LRX

01-25-2008, 05:26 AM
Omg, then I am going to ask a very stupid question:o
What is LRS then?

01-25-2008, 11:45 AM
LRS is the open XML format on which LRF is based.

01-27-2008, 11:24 AM
Great stuff kovidgoyal! Tried it with comiclrf but looks like there are quite a few things missing yet, I'll try to log some bug reports.

01-27-2008, 03:33 PM
Actually, I'm rewriting it, so hold off until the next release.

01-30-2008, 11:47 PM
version 0.4.35 has a completely re-written implementation that should have far fewer bugs.

01-31-2008, 10:09 AM
kovidgoyal, it's looking great. Testing with comiclrf and I haven't found any problems so far.

04-11-2008, 09:05 AM
I just want you to thank you for your work with this :)

04-11-2008, 09:10 AM
Glad you find it useful :)

07-25-2008, 03:44 AM
Hi Kovid,
I have some Chinese lrf books which I want to modify their font size etc. I used lrf2lrs.exe to convert them successfully into lrs. The lrs file has something like this:

<TextBlock objid="18" blockstyle="138" textstyle="133">
<P> <CR /></P><CR /><P>  脱弦之箭御风疾飞,气势逼人。(....)

You can see there are two big spaces at the beginning of the paragraph which serve as indentation to Chinese text. i.e. lrf2lrs.exe works perfectly.

My problem is that all these spaces disappear after I convert the lrs file back to lrf format by lrs2lrf.exe. Anything I can do to keep these spaces?

07-25-2008, 04:47 AM
Hmm I think this would qualify as a bug in lrs2lrf

07-25-2008, 10:11 PM
Hmm I think this would qualify as a bug in lrs2lrf

So, may I ask if it will be fixed in the near future? THX Kovid

07-25-2008, 10:17 PM
One can hope ;) But no promises, I have too much on my plate to make firm comittments.