View Single Post
Old 06-22-2009, 07:52 AM   #294
sirbruce
Provocateur
sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.sirbruce ought to be getting tired of karma fortunes by now.
 
sirbruce's Avatar
 
Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
The first two tests, creating the two PDB files, worked fine. Adding --format=ereader appeared to make no difference but I did not inspect the resulting files that closely.

The third test, creating the PDF file, appeared to work fine, but the PDF is just small, blank pages. Adding --format=ereader to the attempted PDF conversion resulted in an error.

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\calibre 0.6>ebook-convert.exe "Mobi - LRF TEST_PURIFIED.html"
"Mobi - LRF TEST.pdb"  --title="LRF TEST" --authors="Mobi" --language="english"
--page-breaks-before="PAGE_BREAKS_BEFORE" --preprocess-html --book-producer="Boo
kCreator" --tags="eZine"  --margin-left=3 --margin-right=3 --margin-top=3 --marg
in-bottom=0 --chapter-mark="pagebreak" --chapter "//h:p[re:test(@class, 'TWOCHAP
TERTITLE', 'i')]" --level1-toc="//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]"
--level2-toc="//h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE', 'i')]" --level3-toc
="//h:p[re:test(@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max-levels=2
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on C:\Program Files\calibre 0.6\Mobi - LRF
 TEST_PURIFIED.html
Language not specified
Creator not specified
Building file list...
Parsing file u'Mobi%20-%20LRF%20TEST_PURIFIED.html' as HTML
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
        Detected chapter: [QUOTE=MOBIUSER;428712]
        Detected chapter: [QUOTE=MOBIUSER;428712]
        Detected chapter: [QUOTE=MOBIUSER;428712]
Auto generated TOC with 3 entries.
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [7:2: panose-1]
Property: Unknown Property name. [10:2: panose-1]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDB Output...
67% Creating PDB Output
Compessing data...
PDB output written to C:\Program Files\calibre 0.6\Mobi - LRF TEST.pdb
Output saved to   C:\Program Files\calibre 0.6\Mobi - LRF TEST.pdb

C:\Program Files\calibre 0.6>ebook-convert.exe "Mobi - LRF TEST_PURIFIED.html"
"Mobi - LRF TEST.pdb"  --title="LRF TEST" --authors="Mobi" --language="english"
--page-breaks-before="PAGE_BREAKS_BEFORE" --preprocess-html --book-producer="Boo
kCreator" --tags="eZine"  --margin-left=3 --margin-right=3 --margin-top=3 --marg
in-bottom=0 --chapter-mark="pagebreak" --chapter "//h:p[re:test(@class, 'TWOCHAP
TERTITLE', 'i')]" --level1-toc="//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]"
--level2-toc="//h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE', 'i')]" --level3-toc
="//h:p[re:test(@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max-levels=2 --format=
ereader
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on C:\Program Files\calibre 0.6\Mobi - LRF
 TEST_PURIFIED.html
Language not specified
Creator not specified
Building file list...
Parsing file u'Mobi%20-%20LRF%20TEST_PURIFIED.html' as HTML
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
        Detected chapter: [QUOTE=MOBIUSER;428712]
        Detected chapter: [QUOTE=MOBIUSER;428712]
        Detected chapter: [QUOTE=MOBIUSER;428712]
Auto generated TOC with 3 entries.
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [7:2: panose-1]
Property: Unknown Property name. [10:2: panose-1]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDB Output...
67% Creating PDB Output
Converting XHTML to PML markup...
PDB output written to C:\Program Files\calibre 0.6\Mobi - LRF TEST.pdb
Output saved to   C:\Program Files\calibre 0.6\Mobi - LRF TEST.pdb

C:\Program Files\calibre 0.6>ebook-convert.exe "Week, Business - Sprint PCS_PURI
FIED.html"  "Week, Business - Sprint PCS.pdb"  --title="Sprint PCS" --authors="B
usiness Week" --language="english" --page-breaks-before="PAGE_BREAKS_BEFORE" --p
reprocess-html --book-producer="BookCreator" --margin-left=3 --margin-right=3 --
margin-top=3 --margin-bottom=0 --chapter-mark="pagebreak" --chapter "//h:p[re:te
st(@class, 'TWOCHAPTERTITLE', 'i')]" --level1-toc="//h:p[re:test(@class, 'TWOCHA
PTERTITLE', 'i')]" --level2-toc="//h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE',
'i')]" --level3-toc="//h:p[re:test(@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max
-levels=2
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on C:\Program Files\calibre 0.6\Week, Busi
ness - Sprint PCS_PURIFIED.html
Language not specified
Creator not specified
Building file list...
Parsing file u'Week%2c%20Business%20-%20Sprint%20PCS_PURIFIED.html' as HTML
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
        Detected chapter: Story
Auto generated TOC with 1 entries.
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [7:2: panose-1]
Property: Unknown Property name. [10:2: panose-1]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDB Output...
67% Creating PDB Output
Compessing data...
PDB output written to C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.p
db
Output saved to   C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.pdb

C:\Program Files\calibre 0.6>ebook-convert.exe "Week, Business - Sprint PCS_PURI
FIED.html"  "Week, Business - Sprint PCS.pdb"  --title="Sprint PCS" --authors="B
usiness Week" --language="english" --page-breaks-before="PAGE_BREAKS_BEFORE" --p
reprocess-html --book-producer="BookCreator" --margin-left=3 --margin-right=3 --
margin-top=3 --margin-bottom=0 --chapter-mark="pagebreak" --chapter "//h:p[re:te
st(@class, 'TWOCHAPTERTITLE', 'i')]" --level1-toc="//h:p[re:test(@class, 'TWOCHA
PTERTITLE', 'i')]" --level2-toc="//h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE',
'i')]" --level3-toc="//h:p[re:test(@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max
-levels=2 --format=ereader
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on C:\Program Files\calibre 0.6\Week, Busi
ness - Sprint PCS_PURIFIED.html
Language not specified
Creator not specified
Building file list...
Parsing file u'Week%2c%20Business%20-%20Sprint%20PCS_PURIFIED.html' as HTML
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
        Detected chapter: Story
Auto generated TOC with 1 entries.
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [7:2: panose-1]
Property: Unknown Property name. [10:2: panose-1]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDB Output...
67% Creating PDB Output
Converting XHTML to PML markup...
PDB output written to C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.p
db
Output saved to   C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.pdb

C:\Program Files\calibre 0.6>ebook-convert.exe "Week, Business - Sprint PCS_PURI
FIED.html"  "Week, Business - Sprint PCS.pdf"  --title="Sprint PCS" --authors="B
usiness Week" --language="english" --page-breaks-before="PAGE_BREAKS_BEFORE" --p
reprocess-html --book-producer="BookCreator" --paper-size="a6"  --orientation="p
ortrait"  --margin-left=3 --margin-right=3 --margin-top=3 --margin-bottom=0 --ch
apter-mark="pagebreak" --chapter "//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]
" --level1-toc="//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]" --level2-toc="//
h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE', 'i')]" --level3-toc="//h:p[re:test(
@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max-levels=2
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on C:\Program Files\calibre 0.6\Week, Busi
ness - Sprint PCS_PURIFIED.html
Language not specified
Creator not specified
Building file list...
Parsing file u'Week%2c%20Business%20-%20Sprint%20PCS_PURIFIED.html' as HTML
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
        Detected chapter: Story
Auto generated TOC with 1 entries.
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [7:2: panose-1]
Property: Unknown Property name. [10:2: panose-1]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDF Output...
67% Creating PDF Output
PDF output written to C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.p
df
Output saved to   C:\Program Files\calibre 0.6\Week, Business - Sprint PCS.pdf

C:\Program Files\calibre 0.6>ebook-convert.exe "Week, Business - Sprint PCS_PURI
FIED.html"  "Week, Business - Sprint PCS.pdf"  --title="Sprint PCS" --authors="B
usiness Week" --language="english" --page-breaks-before="PAGE_BREAKS_BEFORE" --p
reprocess-html --book-producer="BookCreator" --paper-size="a6"  --orientation="p
ortrait"  --margin-left=3 --margin-right=3 --margin-top=3 --margin-bottom=0 --ch
apter-mark="pagebreak" --chapter "//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]
" --level1-toc="//h:p[re:test(@class, 'TWOCHAPTERTITLE', 'i')]" --level2-toc="//
h:p[re:test(@class, 'TWOONECHAPTERSUBTITLE', 'i')]" --level3-toc="//h:p[re:test(
@class, 'TWOTWOCHAPTERSUBTITLE', 'i')]" --max-levels=2 --format=ereader
Usage: ebook-convert.exe input_file output_file [options]

Convert an ebook from one format to another.

input_file is the input and output_file is the output. Both must be specified as
 the first two arguments to the command.

The output ebook format is guessed from the file extension of output_file. outpu
t_file can also be of the special format .EXT where EXT is the output file exten
sion. In this case, the name of the output file is derived the name of the input
 file. Note that the filenames must not start with a hyphen. Finally, if output_
file has no extension, then it is treated as a directory and an "open ebook" (OE
B) consisting of HTML files is written to that directory. These files are the fi
les that would normally have been passed to the output plugin.

After specifying the input and output file you can customize the conversion by s
pecifying various options. the available options depend on the input and output
file types. To get help on them specify the input and output file and then use t
he -h option.

For full documentation of the conversion system see
http://calibre.kovidgoyal.net/user_manual/conversion.html

Whenever you pass arguments to ebook-convert.exe that have spaces in them, enclo
se the arguments in quotation marks.

ebook-convert.exe: error: no such option: --format

C:\Program Files\calibre 0.6>
sirbruce is offline