| 
			
			 | 
		#526 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You don't actually need --ignore-tables, since it automatically ignores table markup when cells are alrge. --ignore-tables causes it to ignore *all* table markup.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#527 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 39 
				Karma: 20 
				Join Date: Oct 2007 
				Location: Czech Republic 
				
				
				Device: Sony PRS-505 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi kovidgoyal, 
		
	
		
		
			thanks for all the useful tools. Im just trying to convert some web pages to see how it can handle the charset I use. I used this command Code: 
	html2lrf -o "c:\Program Files\libprs500\test\test.lrf" --link-levels=0 --serif-family="C:\Windows\Fonts, Times New Roman" "c:\Program Files\libprs500\test\default8391.html" The LRF viewer prints this: Code: 
	LRFParseError: Bad tag ID 00 at 1701355 Failed to render document Detailed traceback: Traceback (most recent call last): File "main.py", line 47, in run File "libprs500\ebooks\lrf\parser.pyo", line 38, in parse File "libprs500\ebooks\lrf\parser.pyo", line 62, in _parse_objects File "libprs500\ebooks\lrf\parser.pyo", line 70, in _parse_object File "libprs500\ebooks\lrf\objects.pyo", line 1102, in get_object File "libprs500\ebooks\lrf\objects.pyo", line 79, in __init__ File "libprs500\ebooks\lrf\tags.pyo", line 202, in __init__ LRFParseError: Bad tag ID 00 at 1701355 EDIT: I have just tryid downloading the site using web2disk and then converting but I got same results. (The site is http://www.mobilmania.cz/default.aspx?textver=1) Last edited by moneytoo; 10-27-2007 at 04:50 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#528 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Fixed in svn. Will be in next release.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#529 | 
| 
			
			
			
			 Ugly alien 
			
			![]() ![]() ![]() Posts: 144 
				Karma: 225 
				Join Date: Sep 2007 
				Location: Québec, QC 
				
				
				Device: tricorder 
				
				
				 | 
	
	
	
		
		
			
			 
				
				line spacing
			 
			
			
			Hi kovidgoyal, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	The --font-delta option seems to affect both line spacing and font size. Is there a way to change only the line spacing, without affecting font size? If not, could you incorporate this ability into a future version? Thanks!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#530 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The next version will have support for the CSS property line-height. Use 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	html2lrf --override-css "body {line-height: 200%}" myfile.html
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#531 | 
| 
			
			
			
			 Ugly alien 
			
			![]() ![]() ![]() Posts: 144 
				Karma: 225 
				Join Date: Sep 2007 
				Location: Québec, QC 
				
				
				Device: tricorder 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#532 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Use percentages smaller than 100%
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#533 | 
| 
			
			
			
			 Ugly alien 
			
			![]() ![]() ![]() Posts: 144 
				Karma: 225 
				Join Date: Sep 2007 
				Location: Québec, QC 
				
				
				Device: tricorder 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#534 | 
| 
			
			
			
			 Zealot 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 116 
				Karma: 693 
				Join Date: Sep 2007 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is there any way to get a multipage demo of this, with 3-4 html files in a zip, and that spine elements file? maybe even an image or two so I can see how all that is suppose to work? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#535 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You dont need to do anything special for images. As for the spine, just get any lit file and unpack it using clit, look at the .opf file for an example of the spine in action.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#536 | 
| 
			
			
			
			 Minister of Linux 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196 
				Karma: 73235 
				Join Date: Jul 2007 
				Location: Winter Haven, Florida, USA 
				
				
				Device: nook, T-Mobile MyTouch 3G Slide 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I've got a new question (I think) about html2lrf's capabilities. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I've been trying to convert a book with a great deal of endnotes. In the text where the endnote number is superscripted, I'm making the following tag: Code: 
	<a name="g1"></a><a href="#f1">[1]</a> When I run the html through html2lrf, it doesn't seem to be able to pick up on an empty "name" anchor. My browser seems to handle it just fine. Am I doing something wrong or is this just an example where I should wrap the "name" anchor around some text?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#537 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hmm that shouldn't happen. Can you attach a test case that demonstrates this behavior.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#538 | 
| 
			
			
			
			 Minister of Linux 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196 
				Karma: 73235 
				Join Date: Jul 2007 
				Location: Winter Haven, Florida, USA 
				
				
				Device: nook, T-Mobile MyTouch 3G Slide 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'll send you one of the books I"m working on via e-mail if you like.  It's still under copyright, so I won't post it here.
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by beartard; 11-02-2007 at 07:53 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#539 | 
| 
			
			
			
			 Groupie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156 
				Karma: 25846 
				Join Date: Apr 2007 
				Location: UK 
				
				
				Device: PRS505 
				
				
				 | 
	
	
	
		
		
			
			 
			
			This is great work - thanks for all your effort, this program may well convert me from buying a Gen3 to getting the new 505... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Can I have some clarification on zip files please. I assume I use zip files for sending more than 1 file to the converter (multiple html's for example), I can also add an opf file that then tells your software in which order to add the multiple files. I read earlier that the 'Spine' area of the opf in used for the file order - are the rest of the areas in the opf file ignored? (the 'manifest' area for example) Can I use this sytem to insert a cover image? I presume I can create an html file containing a link to the cover image I want, add both the file and my image to the zip, then add the name of the html file to the beginning of the 'spine' area of the opf file. I have tried this but it does not work: is there a maximum size (in dimensions or Kb) that the cover image I am using can be? Thanks for all your great work!!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#540 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			To have the cover detected from the zip file you can do the following: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	In the <guide> element have a <reference> element lije that shown below Code: 
	<reference type="cover" href="relative path to cover file" />  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| html2lrf, libprs500 | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Change font of header for LRF Output on PRS 505 | duckbill | Calibre | 3 | 05-15-2010 12:07 PM | 
| Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 02:14 PM | 
| Fonts for LRF output | krischik | Calibre | 1 | 10-03-2009 06:01 AM | 
| CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 07:44 AM | 
| libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 01:16 PM |