Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2008, 02:06 PM   #601
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by ZioNemo View Post
When I have to be portable I use a VirtualBox Win machine to test, sometimes I use several ones (Xp, XpSp2, vista, ...). This has the added advantage I always work with a "clean" machine because I discard the changes after test and revert to the previous snapshot.

If You want I can test Your code this way.
Just tell me exactly what You want me to test... and where to find the latest version; should I get the SVN project or do I have to use some release (I didn't see it)?
Either I have to do a release and somebody builds a binary or you check out the latest version from subversion on the mobileread dev hub and setup perl on Windows. There is documentaion for it but kind of boring to do.

So best to wait for the next release (the changes not are so small so not worth a release). And then somebody can just test of opf2html works still and that it works from another directory.

Quote:
While I have You on line:
Some time ago I wrote some non-trivial perl scripts to convert from TeX source to .mobi; are You interested in them?
Might be interesting to look at. Do they do something else than what you get from latex2html and then html2mobi?
tompe is offline   Reply With Quote
Old 10-05-2008, 05:38 PM   #602
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Quote:
Originally Posted by tompe View Post
Might be interesting to look at. Do they do something else than what you get from latex2html and then html2mobi?
It actually produced a .opf file trying to guess Author, Title and a few other things by directly inspecting the .latex source.
It then called htmlatex to produce the .html file and did some massaging on the .html to produce a TOC understandable by mobigen.
It finally called mobigen.

I do not currently have the latest version since it is on a portable which is at work.

I will dig it out tomorrow.

Regards
ZioNemo
ZioNemo is offline   Reply With Quote
Advert
Old 10-06-2008, 04:46 PM   #603
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Quote:
Originally Posted by ZioNemo View Post
I do not currently have the latest version since it is on a portable which is at work.

I will dig it out tomorrow.
ok,
here it is.

Let me know if it can be useful somehow.

Regards
ZioNemo
Attached Files
File Type: pl mobi_builder.pl (18.5 KB, 385 views)
ZioNemo is offline   Reply With Quote
Old 10-13-2008, 10:17 PM   #604
Fordi
Junior Member
Fordi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2008
Device: BeBook
Hey, I've just finished a port of Mo(chaff)bi(chaff)De(chaff)DR(chaff)M.py for PHP. I don't have any eBooks to test on - I'm working on this as a bulwark towards potential purchases and the resulting headaches that would ensue.

If anyone knows enough PHP and Python to check my work, PM me, and I'll arrange to get you a copy of the new lib.
Fordi is offline   Reply With Quote
Old 10-15-2008, 09:53 PM   #605
kellyterryjones
Junior Member
kellyterryjones began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2008
Device: Kindle
TOC not clickable on Kindle, but fine in HTML file

Tip for anyone who gets Kindle books that have a non-clickable TOC. After doing this:

html2mobi --fixhtmlbr --gentoc --htmlfile psuedofile.html *.html

Run html2mobi AGAIN on psuedofile.html (I sort of though that's what html2mobi did anyway, but I guess not).

The result will be a MOBI file that works perfectly.

Questions: is this the correct way to post here? is the entire
mobiperl "board" a single topic? can I get an RSS feed of just this
message?

Last edited by kellyterryjones; 10-15-2008 at 10:01 PM. Reason: solved my own problem w/in minutes of posting
kellyterryjones is offline   Reply With Quote
Advert
Old 10-18-2008, 04:29 PM   #606
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by kellyterryjones View Post
Tip for anyone who gets Kindle books that have a non-clickable TOC. After doing this:

html2mobi --fixhtmlbr --gentoc --htmlfile psuedofile.html *.html

Run html2mobi AGAIN on psuedofile.html (I sort of though that's what html2mobi did anyway, but I guess not).
I thought so to

I just looked at the html2mobi code and it looks like a bug. It generates the TOC but does not extract the link information so it will not be clickable. The pseudofile.html will be a working html file with the links so when you run html2mobi (or mobigen) on that file you will get working links. A rather fun workaround...
tompe is offline   Reply With Quote
Old 10-18-2008, 05:53 PM   #607
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
I did a version 0.40 since I fixed the bug with TOC links. Available at

https://dev.mobileread.com/trac/mobiperl/

Changes from 0.39 are:
  • --removejavascript flag added to html2mobi
  • XML::Parser::Lite::Tree have changed tag field to element. Fix for this.
  • opf2mobi: Now works with filename containing directory path.
  • Fixed bug in html2mobi and collections. Now links should be generated and --gentoc should work.
tompe is offline   Reply With Quote
Old 10-22-2008, 03:50 PM   #608
Gudy
Wizard
Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.
 
Gudy's Avatar
 
Posts: 1,154
Karma: 3252017
Join Date: Jan 2008
Location: Germany
Device: Pocketbook Touch Lux (623)
Here are the Windows binaries for Mobiperl 0.40, as always largely untested by me.
Attached Files
File Type: zip mobiperl-win-0.0.40.zip (9.47 MB, 391 views)
Gudy is offline   Reply With Quote
Old 10-22-2008, 04:33 PM   #609
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Thanks, now also uploaded to the download directory.
tompe is offline   Reply With Quote
Old 11-10-2008, 07:34 PM   #610
badgoodDeb
Grand Sorcerer
badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.
 
badgoodDeb's Avatar
 
Posts: 8,550
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
Can the Windows binary person answer as to what versions of Windows this will run on? I'm eyeing a dual-core mac, but I hate to pay $180 to buy Windows XP when this is the *only* program I want to run. Will it run under, say, Windows 98?

[ Yeah, I know the Mac will do perl, but I've had no luck getting *all* the right bits to download, so that it will finally work. The windows binary is easier!!]

Nevermind --- the Mac can only DO Windows XP SP2 or Vista.

Last edited by badgoodDeb; 11-10-2008 at 08:52 PM.
badgoodDeb is offline   Reply With Quote
Old 11-10-2008, 09:11 PM   #611
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by badgoodDeb View Post
I'm eyeing a dual-core mac, but I hate to pay $180 to buy Windows XP when this is the *only* program I want to run. Will it run under, say, Windows 98?

[ Yeah, I know the Mac will do perl, but I've had no luck getting *all* the right bits to download, so that it will finally work. The windows binary is easier!!]

Nevermind --- the Mac can only DO Windows XP SP2 or Vista.
Mac will run the mobiperl stuff. I plan to add that to the visual guide soon. Are you running Leopard or Tiger? If you get a new mac of course it would be Leopard.

BOb
pilotbob is offline   Reply With Quote
Old 11-11-2008, 12:56 PM   #612
AZed
Connoisseur
AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.
 
Posts: 57
Karma: 307
Join Date: Oct 2008
Device: PalmOS PDA
I'd be very curious to hear what problems you were having with Perl on Mac. ActiveState Perl has a single-dmg Mac installer that should get you core perl with no trouble, and after that it's just a matter of getting the right PPM repositories installed.
AZed is offline   Reply With Quote
Old 11-11-2008, 01:01 PM   #613
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by AZed View Post
I'd be very curious to hear what problems you were having with Perl on Mac. ActiveState Perl has a single-dmg Mac installer that should get you core perl with no trouble, and after that it's just a matter of getting the right PPM repositories installed.
Actually Mac (Leopard anyway and I think Tiger) has perl pre-installed. I just checked and my current OS 10.5.5 has perl 5.8.8 on it.

I will be doing a visual guide on getting mobiperl running on Mac... probably this weekend.

BOb
pilotbob is offline   Reply With Quote
Old 11-11-2008, 06:56 PM   #614
badgoodDeb
Grand Sorcerer
badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.
 
badgoodDeb's Avatar
 
Posts: 8,550
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
Great! I'll have to keep watching this thread. Tiger (my desktop here) didn't have the up to date version of Perl. I guess I should try the ActiveState dmg. I just took the instructs at the top of this thread and said something like "update" ..... it kept going for a few hours, and finally quit with a non-success message. Some piece wasn't findable.

Yeah -- the proposed new macbook would be Leopard. That alone might help!
badgoodDeb is offline   Reply With Quote
Old 11-11-2008, 07:21 PM   #615
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by badgoodDeb View Post
Great! I'll have to keep watching this thread. Tiger (my desktop here) didn't have the up to date version of Perl. I guess I should try the ActiveState dmg. I just took the instructs at the top of this thread and said something like "update" ..... it kept going for a few hours, and finally quit with a non-success message. Some piece wasn't findable.

Yeah -- the proposed new macbook would be Leopard. That alone might help!
According to what I read Tiger comes with perl 5.8.6... I think it is probably some of the support libraries the mobiperl needs which you won't have by default. You need to install them... you can use CPAN. As I said, I will be outlining the steps soon.

BOb
pilotbob is offline   Reply With Quote
Reply

Tags
mobi2mobi, mobils


Forum Jump

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


All times are GMT -4. The time now is 12:52 AM.


MobileRead.com is a privately owned, operated and funded community.