| 
			
			 | 
		#1 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
			
			 
				
				lrf2lrs
			 
			
			
			I've updated the decompiler slightly so that it now handles all the sample boks bundled with the Reader. I was not able to get 100% recompilable files yet (it seems the format is changed slightly from Librie), but the produced .lrs should give you some insight into how to make better lrfs for Reader. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	clicky.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Actually I take that back... after I changed the BookID and removed the readings, I could recompile the "Winning" excerpt, and the footnote links worked! (at least in the Connect software... didn't try the Reader yet)
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			cool thanks, this will be very useful.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Gizmologist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,615 
				Karma: 929550 
				Join Date: Jan 2006 
				Location: Republic of Texas Embassy at Jackson, TN 
				
				
				Device: Pocketbook Touch HD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			igorsk, you continue to rock. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	All of you ... 'unofficial developers' totally rock. ![]() I just wanted to say that.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Gadget Force® 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 705 
				Karma: 2733 
				Join Date: Jun 2006 
				Location: The Netherlands 
				
				
				Device: Sony PRS-300 + Cybook with funny screen :P 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I totally agree with you NatCh!  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Quick way to make the output .lrs compilable with lrs2lrf: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	1) in the <BookInfo> section, remove all readings, e.g.: Code: 
	<Title reading="">Winning (Excerpt)</Title> Code: 
	<BookID>FBUS12511000A00T</BookID> P.S. I didn't try it with all books. Let me know if you run into any issues.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Do you know what the reading attribute is supposed to be for? 
		
	
		
		
		
		
		
		
		
		
		
		
		
			EDIT: Nevermind, its for sorting Last edited by kovidgoyal; 11-29-2006 at 01:04 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Gadget Force® 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 705 
				Karma: 2733 
				Join Date: Jun 2006 
				Location: The Netherlands 
				
				
				Device: Sony PRS-300 + Cybook with funny screen :P 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Does anybody know where to find xylogxml.dll that you need for lrs2lrf? 
		
	
		
		
		
		
		
		
		
		
		
		
		
			On the yahoo group I read it comes with BookCreator but I have that installed and it's not there. Last edited by diabloNL; 12-02-2006 at 10:28 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Jah Blessed 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,295 
				Karma: 1373 
				Join Date: Apr 2003 
				Location: The Netherlands 
				
				
				Device: iPod Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I think it's bundled with the lrs2lrf distribution.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | ||
| 
			
			
			
			 Gadget Force® 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 705 
				Karma: 2733 
				Join Date: Jun 2006 
				Location: The Netherlands 
				
				
				Device: Sony PRS-300 + Cybook with funny screen :P 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]() EDIT: THis is the English translation of the error reported in the log file: Quote: 
	
 Last edited by diabloNL; 12-02-2006 at 11:58 AM.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I guess the .lrs generated by lrf2lrs was not valid. Which book did you try to decompile?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Gadget Force® 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 705 
				Karma: 2733 
				Join Date: Jun 2006 
				Location: The Netherlands 
				
				
				Device: Sony PRS-300 + Cybook with funny screen :P 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Different books that I created with makelrf. Then I converted them with lrf2lrs. But when I try to convert the unchanged file back with lrs2lrf it goes wrong. Do you have a sample lrs file for me that should work?  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Gadget Force® 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 705 
				Karma: 2733 
				Join Date: Jun 2006 
				Location: The Netherlands 
				
				
				Device: Sony PRS-300 + Cybook with funny screen :P 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I got it to work. Played around with the header and then finally got it working. Thanks igorsk.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 257 
				Karma: 960 
				Join Date: Dec 2006 
				
				
				
				Device: REB1200; REB2150; Sony 500/350; EZReader; IREX DR800SG; Nook/Color 
				
				
				 | 
	
	
	
		
		
			
			 
				
				I am probably a noob.
			 
			
			
			I have this error poping up and 0 bytes lrs as a result. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Parsing objects... done. Traceback (most recent call last): File "C:\lrf2lrs\lrf2lrs.py", line 1584, in <module> sys.exit(main(sys.argv[1:])) File "C:\lrf2lrs\lrf2lrs.py", line 1578, in main out.write(h.toXml()); File "C:\lrf2lrs\lrf2lrs.py", line 1511, in toXml xml += self.objects[self.TocObjId].toXml(self.objects) KeyError: 0 Any idea?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Looks like your file has no TOC specified... where did you get it? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	You could fix the problemt by changing that line into: Code: 
	if self.TocObjId in self.objects: xml += self.objects[self.TocObjId].toXml(self.objects)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| lrs2lrf and lrf2lrs are not campatible? | sn123py | Calibre | 3 | 08-12-2009 03:23 PM | 
| How do I use lrf2lrs on a Mac? | DanielCoffey | Workshop | 1 | 06-20-2009 04:08 PM | 
| lrf2lrs -> lrs2lrf loses header | ShellShock | Calibre | 6 | 12-01-2008 03:40 PM | 
| lrf2lrs error | JSWolf | Calibre | 3 | 11-01-2008 09:52 AM |