|  08-25-2008, 01:05 AM | #736 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Can you open a ticket about that with a test case, I'll try to fix it for the next release.
		 | 
|   |   | 
|  08-25-2008, 12:27 PM | #737 | |
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | Quote: 
 A very minimal demo file is here: http://www.pepak.net/tmp/demo.zip | |
|   |   | 
|  08-25-2008, 01:18 PM | #738 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Hmm sqlite database corruption. Should be fixed now. Please try again.
		 | 
|   |   | 
|  08-28-2008, 09:11 AM | #739 | 
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | 
			
			I feel like a complete idiot, but I simply can't figure out how does chapter-detection and toc-generation work. I am still using the HTML code described earlier: Code: <h2 id="chapter-10">The Attack</h2> <p>Something attacked you. You are dead.</p> 1) --add-chapters-to-toc is required if I want the TOC. 2) --chapter-regex=. should, as I understand it, match any h1-h6 tag whose content ("The Attack", in my case) is at least one character long. 3) --chapter-attr=h2,id,chapter should match any <h2 id="chapteranything"> But it does not. If I use all three or just 1 and 2 or 1 and 3, I always get the same result: no TOC items at all. | 
|   |   | 
|  08-28-2008, 11:22 AM | #740 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Is there an OPF file in the same directory as the html file?
		 | 
|   |   | 
|  08-28-2008, 02:07 PM | #741 | 
| Junior Member  Posts: 8 Karma: 10 Join Date: Jul 2008 Device: Sony | 
				
				html2lrf and some unicode chars in LRF
			 
			
			Hi, I've used calibre's html2lrf to convert a html utf-8 file to LRF. When I use calibre's viewer, the document renders correctly. However with Sony's viewer or on the Ereader itself I can't see some characters. For example unicode 233 (é) is OK, but 257 (ā) is not. I've tried embedding a font using html2lrf but haven't gotten this to work. Is this a conversion problem or an Ereader issue? How do I get around this? Thanks | 
|   |   | 
|  08-28-2008, 03:06 PM | #742 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			font embedding is a chancy thing. You have to try with various fonts until you hit a good combination.
		 | 
|   |   | 
|  08-28-2008, 03:19 PM | #743 | 
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | |
|   |   | 
|  08-28-2008, 03:48 PM | #744 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			And was the exact commandline you used?
		 | 
|   |   | 
|  08-28-2008, 08:22 PM | #745 | 
| Junior Member  Posts: 8 Karma: 10 Join Date: Jul 2008 Device: Sony | |
|   |   | 
|  08-29-2008, 03:12 AM | #746 | 
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | 
			
			Well, I really don't get it: today it worked with the same command line: Code: html2lrf.exe --no-links-in-toc --chapter-attr=h2,id,. --force-page-break-before-tag=h2 --add-chapters-to-toc --lrs "demo.htm" | 
|   |   | 
|  08-29-2008, 10:19 AM | #747 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Yeah the chapter detection options are a bit of a mess (mainly for legacy reasons). In the next release of calibre, you'll be able to set the attribute value to none to match tags with no attributes.
		 | 
|   |   | 
|  09-29-2008, 01:51 AM | #748 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Aug 2007 Device: sony ereader | 
			
			i have an html file which is about 14 mb.. the program crash all the times when i try to open it with calibre.. the htlm file is all text.. it is the penal law for new
		 | 
|   |   | 
|  09-29-2008, 02:19 AM | #749 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			zip it up and then add it.
		 | 
|   |   | 
|  09-29-2008, 01:48 PM | #750 | 
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | 
			
			html2lrf is able to convert a <hr> tag to horizontal line across the whole display. Is there a way to get the same result using CSS only? "border: solid 1px black" didn't work when I tried it, but maybe there's another way of forcing html2lrf to produce a solid horizontal line? (Actually, a box around a certain element would be even better, but I suspect LRF format doesn't support that.) | 
|   |   | 
|  | 
| 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 11:07 AM | 
| Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 01:14 PM | 
| Fonts for LRF output | krischik | Calibre | 1 | 10-03-2009 05:01 AM | 
| CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 06:44 AM | 
| libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 12:16 PM |