| 
			
			 | 
		#16 | 
| 
			
			
			
			 Technogeezer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,233 
				Karma: 1601464 
				Join Date: Nov 2006 
				Location: Virginia, USA 
				
				
				Device: Sony PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			These are the reasons that I don't code anymore.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#17 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It just seems to me that If I can create an editor that goes directly to LRS then I would be sure that it shows up the way I want it too.  That's my reasoning.  Then I can use lrs2lrf to convert it, and no problems with converting stuff.  I've had my share of problems with the different python converters. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I've been looking through this LRS document, and it doesn't seem any worse than HTML?. And if I create a Java library for writing LRS then I know that it's the quality I would like.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#18 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			LRS contains no semantic information. Even vanilla html contains header tags and tags like <em> <strong> <li> etc. And with CSS you can make HTML fully semantic. LRS on the other hand is purely layout oriented. And not very capable at that.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	There is no cross platform implementation of lrs2lrf though making one shouldn't be difficult. If you have problems with existing converters why not help improve them?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#19 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm more than willing, but I'm really a Java man.  I don't know python, and yours seems to be the best, except that it's in python.  But I would be willing to help, how does one help with the libprs stuff? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	On the other side though I would prefer for the whole thing to also be done in Java. I've seen that you've said that having both isn't a good idea, but I think that it brings more programmers.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#20 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Well far be it from me to stop you. Personally, I found python a remarkably easy language to pick up, so I encourage people to dive in. But then I'm still young enough to find learning a new language exciting :-) 
		
	
		
		
		
		
		
		
		
		
		
		
	
	If you want to help with libprs500, there are instructions at https://libprs500.kovidgoyal.net/wiki/Development You can always contact me if you have questions.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#21 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			What are the chances of our being able to make the PDF to HTML more powerful?  Is that a limitation with some library?  It completely removes all forms of formatting  
		
	
		
		
		
		
		
		
		
		
		
		
	
	  (not acceptable with the documents I'm reading rasterfarian works better).  I have your code, and have started to look through it. What development environment options do I have with python and windows?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#22 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			libprs500 relies on the pdftohtml library to first convert pdf to html and then process it. I'm afraid that pdftohtml already works as well as Adobe's own PDF to HTML conversion, so I doubt it can be improved more without considerable effort, but you're welcome to try.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	I'd recommend eclipse + pydev since you're coming from the java world.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#23 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Sep 2007 
				
				
				
				Device: PRS-500 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Anyone else willing to play with PDF to HTML to make it better??  It really needs to keep as much formatting as possible (without being ridiculous).  So that the books can be converted and still look basically the same. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Significant effort, but when we're done we'll have an actual solution. As of now, the PDF to HTML is worthless to me.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#24 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350 
				Karma: 705 
				Join Date: Dec 2006 
				Location: Mumbai, India 
				
				
				Device: Kindle 1/REB 1200 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#25 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Sure, I didn't mean to steal credit. There's also an implemetation of lrf2lrs which was first developed by roxfan and igorsk but that is also maintained as part of libprs500 by me.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#26 | 
| 
			
			
			
			 Addicted to Porting 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,697 
				Karma: 7194 
				Join Date: Oct 2006 
				Location: Indianapolis, IN 
				
				
				Device: iRex iLiad, Nokia 770, Samsung i760 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It would be nice if there was an LRS viewer written in C so that LRS formatted files could be viewed in Linux and on other mobile platforms.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#27 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm actually writing a LRF viewer, but it's going to be in python.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#28 | 
| 
			
			
			
			 Addicted to Porting 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,697 
				Karma: 7194 
				Join Date: Oct 2006 
				Location: Indianapolis, IN 
				
				
				Device: iRex iLiad, Nokia 770, Samsung i760 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#29 | 
| 
			
			
			
			 Zealot 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 116 
				Karma: 693 
				Join Date: Sep 2007 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			is there a way to compile python into a native executable on platforms other than windows?  I have only used python because the native scripting facilities in windows are to unintuitive, and pearl made me want to cry.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	Long live the interpreted languages, strongly typed, and otherwise (I love java and python)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#30 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442 
				Karma: 300001 
				Join Date: Sep 2006 
				Location: Belgium 
				
				
				Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You know a python-to-native compiler for windows? The closest I know is psyco and it's more like a JIT than a compiler.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			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 |