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 03-03-2008, 02:49 AM   #391
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by tompe View Post

So what would be useful for other people to have? Which information is useful? What is the best way to display it? Since there are so many way to do things I will add features that people find useful and which I think is sensible.

One thing I added myself with a few lines of code is default settings for mobi2html.

So when I use the syntax "mobi2html MyBook"

It will assume prc as extention and the output will be placed the subdirectory MyBookHtml. It also generates the raw output in the same directory with the name "Mybook Raw.HTML" Both versions can come in handy when you are oing some cleaning up.

Another nice thing for new or inexperienced users can be that you print the syntax on screen when there are no parameters at all. It is something I do when I create programs. When you use a tool every day it is obvious what the syntax is. But even my own tools that I use only once every month or every three monts need sometimes a small reminder
Ortep is offline   Reply With Quote
Old 03-03-2008, 05:51 AM   #392
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)
Quote:
Originally Posted by Ortep View Post
Another nice thing for new or inexperienced users can be that you print the syntax on screen when there are no parameters at all. It is something I do when I create programs. When you use a tool every day it is obvious what the syntax is. But even my own tools that I use only once every month or every three monts need sometimes a small reminder
Yes, please! Needing to look at the Perl source code to learn about the possible parameters sucks, doubly so for the Windows binary builds. Having the tools print out usage information when started without any parameters (or with any one of -? /? -h /h -help /help --help) would add a lot for the casual user.

Since I want to do some testing for the mobils binary under Windows, expect a Windows binary build from me sometime this evening. (Unless someone beats me to it, of course.)
Gudy is offline   Reply With Quote
Advert
Old 03-03-2008, 06:22 AM   #393
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by Gudy View Post
Yes, please! Needing to look at the Perl source code to learn about the possible parameters sucks,
The code is easy, something like:

Code:
# Get parameters

$bookname=shift @ARGV;
$param1=shift @ARGV;
$param2=shift @ARGV;


# When not enough parameters, generate user help

unless ( $bookname ) {
    die
    "\nProgram to extract html from mobifile\n
    Version xxx.yyy.zzz
    Author: Me
    Usage: Mobi2html bookname --parameter1 --parameter2 --etc\n";
}
Ortep is offline   Reply With Quote
Old 03-03-2008, 07:53 AM   #394
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 Ortep View Post
Another nice thing for new or inexperienced users can be that you print the syntax on screen when there are no parameters at all. It is something I do when I create programs. When you use a tool every day it is obvious what the syntax is. But even my own tools that I use only once every month or every three monts need sometimes a small reminder
I always do this for things I write in my work but here I forgot about it. I will add something to the next release.

I will think about default directory also.
tompe is offline   Reply With Quote
Old 03-03-2008, 12:54 PM   #395
TallMomof2
Kindlephilia
TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.
 
TallMomof2's Avatar
 
Posts: 2,017
Karma: 1139255
Join Date: Nov 2007
Location: Snowpacolypse 2010
Device: Too many to count
I think I'll take the plunge and install Perl, this is getting quite interesting programming-wise.
TallMomof2 is offline   Reply With Quote
Advert
Old 03-03-2008, 01:42 PM   #396
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)
Quote:
Originally Posted by Gudy View Post
Since I want to do some testing for the mobils binary under Windows, expect a Windows binary build from me sometime this evening.
And here it is (hopefully, anyway. The "Manage Attachments" window doesn't work reliably for me when attachments go beyond a certain size).

The mobils binary works just fine under Windows. The only possible drawback is that the output contains slashes instead of backslashes as the separator, but that is easily dealt with if you want to process the output in any way.
Attached Files
File Type: zip mobiperl-win-0.0.36.zip (9.45 MB, 353 views)
Gudy is offline   Reply With Quote
Old 03-03-2008, 03:01 PM   #397
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by Gudy View Post
And here it is (hopefully, anyway. The "Manage Attachments" window doesn't work reliably for me when attachments go beyond a certain size).
Same thing here! I recently uploaded 10 MB in attachments and it took forever. At first the upload speed is fine, at about 100 Mbytes/sec, but near the middle it goes down to 8 Kbytes/sec and stays there until it's finished.

I've heard of 'scarce resource allocation' schemes, but this seems a bit much!

How about allowing 'regulars' to post at a higher upload speed? Kind of discourages a guy from posting good stuff...
nrapallo is offline   Reply With Quote
Old 03-05-2008, 06:55 PM   #398
wmaurer
Enthusiast
wmaurer doesn't litterwmaurer doesn't litter
 
Posts: 44
Karma: 100
Join Date: Oct 2007
Device: Nook Simple Touch, HTC Desire
I received my Asus EEE yesterday, and have trashed the preinstalled Xandros and installed Ubuntu. I have the mobiperl scripts working, though it took some time to get all the prerequisites installed.

Tompe, I've been putting together a simple eBook in html. For this book I don't want the first line of the paragraph indented, but the html2mobi script is doing so. Is this an option in the mobipocket file format?

-Wayne
wmaurer is offline   Reply With Quote
Old 03-05-2008, 06:59 PM   #399
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by wmaurer View Post
I received my Asus EEE yesterday, and have trashed the preinstalled Xandros and installed Ubuntu. I have the mobiperl scripts working, though it took some time to get all the prerequisites installed.

Tompe, I've been putting together a simple eBook in html. For this book I don't want the first line of the paragraph indented, but the html2mobi script is doing so. Is this an option in the mobipocket file format?

-Wayne
It is likely that the html contains & nbsp; characters at the beginning of the paragraphs. Mobi doesn't support CSS so they can be crude in formatting sometimes.

Dale
DaleDe is offline   Reply With Quote
Old 03-05-2008, 07:07 PM   #400
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 wmaurer View Post
Tompe, I've been putting together a simple eBook in html. For this book I don't want the first line of the paragraph indented, but the html2mobi script is doing so. Is this an option in the mobipocket file format?

-Wayne
The default in MobiPocket is to use paragraphs with first line indented. html2mobi does not add anything related to this.

http://www.mobipocket.com/dev/articl...tification.htm

explains how to avoid indentation (one way is <p width= 0>).

Last edited by tompe; 03-06-2008 at 08:10 AM.
tompe is offline   Reply With Quote
Old 03-06-2008, 07:59 AM   #401
wmaurer
Enthusiast
wmaurer doesn't litterwmaurer doesn't litter
 
Posts: 44
Karma: 100
Join Date: Oct 2007
Device: Nook Simple Touch, HTC Desire
Okay, thanks Tompe. Now I feel a little silly for not looking at the Mobipocket documentation. I won't make the same mistake again
wmaurer is offline   Reply With Quote
Old 03-06-2008, 08:37 AM   #402
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by nrapallo View Post
Same thing here! I recently uploaded 10 MB in attachments and it took forever. At first the upload speed is fine, at about 100 Mbytes/sec, but near the middle it goes down to 8 Kbytes/sec and stays there until it's finished.
What sort of internet connection do you have which gives you upload speeds of 100 MBytes/sec?
HarryT is offline   Reply With Quote
Old 03-06-2008, 09:29 AM   #403
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by HarryT View Post
What sort of internet connection do you have which gives you upload speeds of 100 MBytes/sec?
That upload speed is just at the beginning , but I have an extreme internet connection with (theoretical) 700 MBytes/sec download and 100 MBytes/sec upload 700 KBytes/s download and 100 KBytes/s upload speeds.

Come to think about it, my upload speed deterioration may be the result of my ISP's (rogers.com) attempt at traffic-shaping to limit bit-torrents!

EDIT: I should have said 700 KBytes/s and 100 KBytes/s. Sorry for the confusion!

Last edited by nrapallo; 03-06-2008 at 09:59 AM. Reason: I should have said 700 KBytes/s and 100 KBytes/s
nrapallo is offline   Reply With Quote
Old 03-06-2008, 09:31 AM   #404
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 nrapallo View Post
That upload speed is just at the beginning , but I have an extreme internet connection with (theoretical) 700 MBytes/sec download and 100 MBytes/sec upload speeds.

Come to think about it, my upload speed deterioration may be the result of my ISP's (rogers.com) attempt at traffic-shaping to limit bit-torrents!
You might have that speed but are you sure it is not 700Mbit/s and 100Mbit/s?
tompe is offline   Reply With Quote
Old 03-06-2008, 09:56 AM   #405
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by tompe View Post
You might have that speed but are you sure it is not 700Mbit/s and 100Mbit/s?
Sorry, it is in KBytes/s. I should have said 700KBytes/s and 100KBytes/s. I'll re-edit my previous posts to correct this!

In Mbit/s it is 6 Mbit/s download and 1 Mbit/s upload.

Here's a link to my Extreme internet connection service
nrapallo 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 04:57 PM.


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