|  01-25-2008, 10:00 AM | #181 | 
| Connoisseur  Posts: 60 Karma: 10 Join Date: Dec 2007 Location: Aachen Device: Gen3 | 
			
			Hello tompe,  I did create myself a small tool to download and parse/reformat books from the German Project Gutenberg. I write all content into a single HTML and create a "TOC" at the top of the page with inter page links. When I convert this page using the Mobipocket Reader, The "TOC" works. When I use html2mobi, the links do not work. I do not want to split all into different pages if not necessary. Any other way to make a TOC with HTML2MOBI ? (I am sure it got written somewhere already - I just can not find it). Thank you | 
|   |   | 
|  01-25-2008, 10:54 AM | #182 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 | |
|   |   | 
|  02-07-2008, 05:22 PM | #183 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			@tompe Would you mind improving you mobi2html utility a little so I can write mobi2lrf 1) Allow passing of absolute paths to mobi2html for the .mobi file 2) Post process the generated HTML to remove mobipocket specific tags and attributes. For e.g. <mbp  age-break/> -> <br style="page-break-after:always/> and so on | 
|   |   | 
|  02-07-2008, 06:25 PM | #184 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 | |
|   |   | 
|  02-07-2008, 06:40 PM | #185 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Thanks, 'preciate it. Enjoy your N800
		 | 
|   |   | 
|  02-08-2008, 06:26 PM | #186 | 
| Member       Posts: 12 Karma: 636 Join Date: Feb 2008 Device: none | 
				
				Breakthrough on Igor Skochinsky's Blog
			 
			
			Check out Igor Skochinsky's blog! At the bottom of the comments, there's a very interesting Python program. It lets you use the same mobipocket .PRC file on multiple devices, even if it was previously locked to a specific device. | 
|   |   | 
|  02-09-2008, 09:40 AM | #187 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 1) Fixed. 2) I removed some of the tags and the attribute you mentioned. But I did not find a list of Mobipocket specific attributes. And can't you just ignore attributes you do not recognize? Let me know if some more changes should be done to the html file. And a test file is always good to have when fixing these kind of things. | |
|   |   | 
|  02-09-2008, 11:45 AM | #188 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Thanks. Here's the list of custom tags http://www.mobipocket.com/dev/articl...agref_mobi.xml Most of them seem to be pretty useless. Yeah I can ignore unknown tags and attributes, but at least for the few that contain useful information, it's good to convert them. | 
|   |   | 
|  02-09-2008, 01:23 PM | #189 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 | |
|   |   | 
|  02-10-2008, 12:16 AM | #190 | 
| GuteBook/Mobi2IMP Creator            Posts: 2,958 Karma: 2530691 Join Date: Dec 2007 Location: Toronto, Canada Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN | 
			
			Hi, tompe! I have recently been converting .prc (mobipocket) files into .IMP format using your 'mobi2html' and my own perl script. Especially .prc with color illustrations and images. I too have had to filter/change (I'm not complaining here) mobi specific tags, in particular: 1. My text editor opens the resulting .html as one-line (and word-wrapped). As a result, I like to replace '/div>' with '/div>\n' to get some line-breaks for visual purposes. Makes some things 'line-up' vertically to aid in error-correcting. 2. '<mbp: pagebreak' with '<p style="page-break-before:always' to avoid format-specific tags. For personal reasons/preferences, I also change: 3. '<body' with '<body style="margin-left:2%; margin-right:2%; text-align:justify' to allow small margins and justified text. For those that do not want this, then it would be easy to change as this would appear in only one place, at the beginning of the file. 4. '<img align="baseline"' with '<img' as the eBook Publisher software I use strangely positions ALL images on the first page with the baseline keyword there. Please note that to ensure the maximum conversion, I often leave out a leading '<' or trailing '>' as seen above. These replacements above work better by doing this. By the way, would it be easy to incorporate my 'html2imp.pl' perl script within your 'Mobiperl' so that you can also produce .IMP format ebooks? You could call it 'mobi2imp'. Sorry, but I don't mean to lengthen your to-do list too much.  -Nick Last edited by nrapallo; 02-10-2008 at 12:19 AM. Reason: typo | 
|   |   | 
|  02-10-2008, 12:53 AM | #191 | 
| New York Editor            Posts: 6,384 Karma: 16540415 Join Date: Aug 2007 Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7 | |
|   |   | 
|  02-10-2008, 06:36 AM | #192 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
			
			No, the HTML file is actually just one line. When you generate the HTML from a tree there is no natural places to put end of line so therefore I had not added any newlines. But now I added the suggestion to place a newline after /div>.
		 | 
|   |   | 
|  02-10-2008, 06:40 AM | #193 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
			
			Probably. If you give me the script I will look at it.
		 | 
|   |   | 
|  02-10-2008, 08:19 AM | #194 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
				
				Verson 0.0.28 (no Windows binaries)
			 
			
			Verson 0.0.28 is available at http://www.ida.liu.se/~tompe/mobiperl/ No Windows binaries for this version. I will do a binary version when more important things have changed or when somebody need the Window binaries. Changes in 0.0.28: 
 
 | 
|   |   | 
|  02-10-2008, 08:24 AM | #195 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  | 
| Tags | 
| mobi2mobi, mobils | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM | 
| Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM | 
| Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM | 
| PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM | 
| gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |