| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			why dont you use html2lrf?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Member 
			
			![]() 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Member 
			
			![]() 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			html2lrf support all this. Code fonts can be the fixed width font.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I know it does.  I'm just interested in understanding the format
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Or does no one actually understand the LRS format?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Gizmologist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,615 
				Karma: 929550 
				Join Date: Jan 2006 
				Location: Republic of Texas Embassy at Jackson, TN 
				
				
				Device: Pocketbook Touch HD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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.  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			wait, can html2lrf convert from html to lrs?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Member 
			
			![]() 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).  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | |
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Gizmologist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,615 
				Karma: 929550 
				Join Date: Jan 2006 
				Location: Republic of Texas Embassy at Jackson, TN 
				
				
				Device: Pocketbook Touch HD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			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 |