|  04-19-2008, 03:08 PM | #481 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 opf files are documented on the MobiPocket web site. The contain meta information and pointers to the html files that te book consists of. Thinking about it a bit more I think it will work if you just put the guide thing in the correct place in the html file (the header). html2mobi should expand the links to a filepos and it should work. | |
|   |   | 
|  04-19-2008, 03:27 PM | #482 | ||
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 Quote: 
 EDIT: Yes, it works if I add the <guide></guide> thing in the <head> section of the HTML file. Now the only thing missing, for the moment, is how the reader computes the location for the "Start Reading" link, since it doesn't seem to be defined anywhere. Last edited by Jellby; 04-20-2008 at 12:49 PM. | ||
|   |   | 
|  04-24-2008, 12:20 PM | #483 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
			
			I will do a new release in a couple of days. I have added possibility to set language and description and will add setting of subjects. I will probably also add an imageresize flag in spite of my opinion about this... Anything else simple I should add when I am looking at the code? Concerning language setting. Now you can set all languages if you specify the number for it. I also have in my code: Code: my %langmap = ("en-us" => 0x0409,
               "sv"    => 0x041d,
               "fi"    => 0x000b,
               "en"    => 0x0009,
               "en-gb" => 0x0809); | 
|   |   | 
|  04-24-2008, 01:38 PM | #484 | 
| 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 | 
			
			Yeah, how about a simple usage message when no arguments are passed.   This is helpful when the perl code is compiled into a windows executable and you no longer have access (OK easy access) to the source code and documentation therein. Nothing fancy, just straight forward command line syntax. BTW, if you look at mobi2imp.pl, I went overboard there!   Last edited by nrapallo; 04-24-2008 at 01:40 PM. | 
|   |   | 
|  04-24-2008, 01:56 PM | #485 | |
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 http://msdn2.microsoft.com/en-us/lib...fo(VS.71).aspx | |
|   |   | 
|  04-24-2008, 02:12 PM | #486 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
  But that is writing documentation and not simple... I will add something. | |
|   |   | 
|  04-26-2008, 08:47 PM | #487 | |
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | Quote: 
 I have now added printout of usage if programs are started without arguments. | |
|   |   | 
|  04-27-2008, 07:51 AM | #488 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
				
				Version 0.0.38 available (no Windows binaries yet...)
			 
			
			Verson 0.0.38 is available at https://dev.mobileread.com/trac/mobiperl/ The actual release files are at https://dev.mobileread.com/dist/tompe/mobiperl/ No Windows binaries for this version yet. Feel free to contribute them... Changes in 0.0.38: 
 | 
|   |   | 
|  04-27-2008, 09:00 AM | #489 | 
| Wizard            Posts: 1,154 Karma: 3252017 Join Date: Jan 2008 Location: Germany Device: Pocketbook Touch Lux (623) | 
			
			Here you are.
		 | 
|   |   | 
|  04-27-2008, 09:24 AM | #490 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
			
			Thanks. Windows binaries also uploaded to dist directory.
		 | 
|   |   | 
|  04-27-2008, 07:08 PM | #491 | 
| Groupie        Posts: 152 Karma: 772 Join Date: Mar 2008 Location: Perth, Western Australia Device: Cybook Gen3 | 
			
			Thanks for the great update Tommy. I'll look at adding the new flag options into the Mobi2Mobi GUI shortly. Thank you also Gudy for the Win32 compile. Makes my life easier if the Perl & Win32 versions are available at the same time to keep the GUI in sync. | 
|   |   | 
|  04-27-2008, 09:12 PM | #492 | 
| Grand Sorcerer            Posts: 7,452 Karma: 7185064 Join Date: Oct 2007 Location: Linköpng, Sweden Device: Kindle Voyage, Nexus 5, Kindle PW | 
			
			Remember that there can be more then one Subject in the EXTH. All are printed on the output. But the flag only change the first one.
		 | 
|   |   | 
|  05-02-2008, 10:16 AM | #493 | 
| Junior Member  Posts: 6 Karma: 10 Join Date: May 2008 Device: iliad | 
				
				Error on html2mobi
			 
			
			Hi I've been trying to convert a pdf to mobi file using initially pdfread, this seems to hang after conversion to html. So i tried the html2mobi prog from the latest windows binary (0.38) and it begins to convert but hangs after a couple of images. When I resize the image by 1 or 2% and restart the process it continues  and hangs a little further on.  The error message will be something like this: Could not shrink image file size for 66.png at mobiperl/Util.pm line 555. I should mention that i am using the -- imagerescale 0 option to try and get the best image for my iliad. Any suggestions? Jontom | 
|   |   | 
|  05-02-2008, 10:19 AM | #494 | 
| Resident Curmudgeon            Posts: 80,742 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			Try converting the images to JPG and editing the HTML to reflect that they are now JPG and try again.
		 | 
|   |   | 
|  05-02-2008, 10:31 AM | #495 | |
| 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 | Quote: 
 May I suggest that you create an empty file called 'debug' in the PDFRead install directory (usually C:\Program Files\PDFRead) and then try the conversion again. This time, at the end, the html and images used in making the .prc will be retained. I use a modified html2mobi (from version 0.37) that forces the 'imagerescale 0' option so as to get the largest possible images on the iLiad. If you already have access to the resulting .html and .opf, then ignore the above. Please post your .html and .opf files only here so that we can see if there is something going amiss with your conversion. Also, if you have any full-sized images (.png), what are their sizes generally? s/b 768x935! | |
|   |   | 
|  | 
| 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 |