Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-12-2007, 01:05 PM   #1
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
Understanding LRS format

Does anyone know how the LRS xml format works? I'm looking for it's capabilities, and examples on using it.

Specific needs:

I need to be able to make a file that has Headers, normal fonts, code fonts, images, and possibly <HR>'s.

Do you know how to do these with an example LRS file? Or know where i can get some LRS files that have examples like this. Book Designer would work, except it doesn't work with images (that I know of), and I'm not really ready to install bookCreator. I'd be most interested in documents that explain the format, and example files that use the format to it's capabilities
silkcom is offline   Reply With Quote
Old 09-12-2007, 01:07 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,536
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by silkcom View Post
Book Designer would work, except it doesn't work with images (that I know of),
Yes Book Designer does work with images. Just not inline images.
JSWolf is offline   Reply With Quote
 
Advertisement
Old 09-12-2007, 01:13 PM   #3
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
why dont you use html2lrf?
kovidgoyal is offline   Reply With Quote
Old 09-12-2007, 01:13 PM   #4
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
Ok, sorry I mean inline images. I need to be able to have images in the middle of text.
silkcom is offline   Reply With Quote
Old 09-12-2007, 01:14 PM   #5
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
I'm maining interested in understanding the limitations of the format. I'm a programmer and would like to make a BBeB editor that actually works and is Open Source.
silkcom is offline   Reply With Quote
Old 09-12-2007, 01:15 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,536
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by silkcom View Post
Does anyone know how the LRS xml format works? I'm looking for it's capabilities, and examples on using it.

Specific needs:

I need to be able to make a file that has Headers, normal fonts, code fonts, images, and possibly <HR>'s.
html2lrf support all this. Code fonts can be the fixed width font.
JSWolf is offline   Reply With Quote
Old 09-12-2007, 01:16 PM   #7
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
I know it does. I'm just interested in understanding the format
silkcom is offline   Reply With Quote
Old 09-12-2007, 01:57 PM   #8
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
Or does no one actually understand the LRS format?
silkcom is offline   Reply With Quote
Old 09-12-2007, 02:00 PM   #9
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,605
Karma: 926222
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Nook STGR
You mean outside of Sony? You may very possibly be onto something there, silkcom.

I think scotty1024 may have understood it, but he doesn't seem to come around much anymore.
NatCh is offline   Reply With Quote
Old 09-12-2007, 02:18 PM   #10
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
wait, can html2lrf convert from html to lrs?
silkcom is offline   Reply With Quote
Old 09-12-2007, 02:54 PM   #11
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Yes, use the --lrs switch.
LRS specification is available at www.prslabs.com.
igorsk is offline   Reply With Quote
Old 09-12-2007, 03:40 PM   #12
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
igorsk you're a genius. Thank you.

The website has a PDF on it that goes into every aspect of the .lrs format (in case anyone is interested in the future).
silkcom is offline   Reply With Quote
Old 09-12-2007, 04:21 PM   #13
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by silkcom View Post
I'm maining interested in understanding the limitations of the format. I'm a programmer and would like to make a BBeB editor that actually works and is Open Source.
Why? BBeB is not a good format to store books in. So it would not be a good idea to encourage people to post process LRF files. I have toyed with making an opensource LRF *viewer* but haven't found the time do it yet.

Incidentally most of the LRS Spec, as well as the conversion from LRS->LRF (which is not documented by SONY) is defined through an object library pylrs, which is part of libprs500.

Last edited by kovidgoyal; 09-12-2007 at 04:23 PM.
kovidgoyal is offline   Reply With Quote
Old 09-12-2007, 04:24 PM   #14
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by NatCh View Post
You mean outside of Sony? You may very possibly be onto something there, silkcom.

I think scotty1024 may have understood it, but he doesn't seem to come around much anymore.
I think there are a few more of us that know our way around the format
kovidgoyal is offline   Reply With Quote
Old 09-12-2007, 04:52 PM   #15
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,605
Karma: 926222
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Nook STGR
Yes, of course! I didn't mean to imply that scotty1024 was the only one! He just leapt to mind mostly because I knew he'd been working with the format since the Librié days.
NatCh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting LRS to LRF mcortez Sony Reader 1 11-28-2007 12:26 PM
PRS-500 Create LRS and LRF files from Python with pylrs Falstaff Sony Reader Dev Corner 37 08-04-2007 08:49 PM
LRS to LRF on Mac OSX - any suggestions? Lime2K Sony Reader 3 07-29-2007 11:15 PM
PRS-500 Span tags in LRS and LRF files -- do I understand them? Falstaff Sony Reader Dev Corner 2 01-31-2007 11:34 AM
PRS-500 BBeB Xylog XML (LRS) final spec released igorsk Sony Reader Dev Corner 5 01-12-2007 03:04 AM


All times are GMT -4. The time now is 01:40 AM.


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