![]() |
#1 |
Connoisseur
![]() ![]() ![]() Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Command Line Options for ebook-convert
I have just realized that html2lrf is no longer available, and that now we have to use the command line tool ebook-convert.
In the past I was using Code:
html2lrf --bottom-margin=10 file.html Code:
ebook-convert file.html file.lrf --bottom-margin=10 By the way, is there some place where we can find the command line options for ebook-convert? |
![]() |
![]() |
![]() |
#2 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Quote:
Code:
ebook-convert <existing_html_file_name> anything.lrf --help |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Quote:
By the way I suggest to the developers to modify "ebook-convert --help" in such a way that at least it tells you that you can get specific information about a particular format (lrf or any other) using Code:
ebook-convert <existing_html_file_name> anything.format --help |
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Quote:
Not to mention that I find it strange (to say the least) that to get a command line help, I must not only specify the input and output formats, but the input file must actually exist! It's not as if anything was read from it - if I create a zero-byte HTML file, I will get my help, but if I use a nonexistent filename, I get an error message... |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
Quote:
Pepak is not out of line here -- even if there may exist tools that don't do help in the fashion he states. Kovid, have you ever seen the zenity help? It's pretty cool: you could do something similar, like --help-2lrf, --help-2epub, etc. Nonetheless, I'm sure you're annoyed by the repeated requests to change the help system, something that you have decided is settled. And I've surely annoyed you further. m a r |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sigh. Here are some command line tools that dont print a complete help with --help, just like ebook-convert
svn, bzr, mplayer, gnuplot, gcc Basically any command line tool that does anything non-trivial. Now if someone has some concrete suggestion as to how to improve the help interface of ebook-convert, keeping in mind the oft repeated constraint that the available options depend on the input and output formats, please say so, otherwise hold your peace. And I should note that both the concrete suggestions in this thread have been implemented for the next release, in particular: 1) Adding a sentence about how to get more detailed help by specifying input and output formats 2) Not requiring that the input file exists when getting help |
![]() |
![]() |
![]() |
#9 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Including a separate readme.txt for ebook-convert containing all available options/permutations would be much appreciated while you're still working on the online manual. Besides, I think I'd much rather view the help file in my favorite text viewer/editor rather than in shell.
It doesn't even have to be pretty. I'm not sure how ebook-convert limits the options (by input format? output format? both?), but a readme containing the following would probably work well enough for most people: Code:
Syntax:
ebook-convert .....
General Options:
blah... //output of ebook-convert --help
List of Supported Input Formats:
List of Supported Output Formats:
FORMAT-SPECIFIC OPTIONS
EPUB //if options change based on output format
HTML to EPUB //if options change based on both input and output formats
blah... //output of ebook-convert file.html .epub --help
LRF //if options change based on output format
HTML to LRF //if options change based on both input and output formats
blah... //output of ebook-convert file.html .lrf --help
etc...
Code:
@echo off
ebook-convert --help>ebook-convert-readme.txt
echo >>ebook-convert-readme.txt
echo **********************>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo * EPUB (html2epub) *>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo **********************>>ebook-convert-readme.txt
ebook-convert file.html .epub --help>>ebook-convert-readme.txt
echo >>ebook-convert-readme.txt
echo *******************>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo * LIT (any2lit) *>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo *******************>>ebook-convert-readme.txt
ebook-convert file.html .lit --help>>ebook-convert-readme.txt
echo >>ebook-convert-readme.txt
echo *********************>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo * MOBI (any2mobi) *>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo *********************>>ebook-convert-readme.txt
ebook-convert file.html .mobi --help>>ebook-convert-readme.txt
echo >>ebook-convert-readme.txt
echo ************************>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo * OEBPS (html2oebps) *>>ebook-convert-readme.txt
echo * *>>ebook-convert-readme.txt
echo ************************>>ebook-convert-readme.txt
ebook-convert file.html folder --help>>ebook-convert-readme.txt
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#11 | |
Still wondering why
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
|
Quote:
![]() I really aprreciate Kovid's humor!! ![]() |
|
![]() |
![]() |
![]() |
#12 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Whoops. Guess I'm behind the times.
![]() ![]() Still, I think including a copy of that HTML file with the Calibre install would be a good idea, specially for people who occasionally need to work on ebooks when they don't have internet access. Then, just point people to that HTML file. I also suggest switching the link in ebook-convert --help from: http://calibre.kovidgoyal.net/user_m...onversion.html to: http://calibre.kovidgoyal.net/user_m...k-convert.html At least, temporarily, while the first link is still empty. |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That HTML file is 2.2MB I don't think I want to distribute it. People that want to refer to it offline can just save it from their browsers.
I'll add a link to the main conversion documentation pointing to the ebook-convert docs until that is ready. |
![]() |
![]() |
![]() |
#14 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#15 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disable Cover for Command Line ebook-convert | bcolflesh | Calibre | 9 | 02-21-2013 11:02 AM |
ABBYY Finereader - Possible to command line/auto convert? | tessel | Workshop | 3 | 04-06-2011 11:08 AM |
ebook-convert not recognized as a command | p3aul | Calibre | 11 | 10-11-2009 03:19 PM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
Errors on Command Line | drnkusv | Calibre | 11 | 11-07-2008 02:59 PM |