Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2013, 01:00 AM   #1
laurent68
Junior Member
laurent68 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2013
Device: Ipad
error with --level1-toc

Hi,

convert html to epub.
from GUI works fine, just have to set //h:h1[re:test(@align, 'center', 'i')] for h1

but from command line,
I try many things
with various --level1-toc="//h:h1[re:test(@align, 'center', 'i')]"
with or without various --chapter="//h:h1 [re:test(@align, 'center', 'i')]"

I search on the forum... no way

error message :
PropertyValue: Missing token for production choice(colorValue, Dimension, URIValue, Value, variable, MSValue, function): ('CHAR', u',',19,13)
etc but not the more important I suppose

but this :
Removing invalid fragment identifier u'L orange' from TOC
etc
for 12 lines

other H1 are ok, and still is ok from Calibre GUI.

any idea ?



Laurent
Attached Files
File Type: zip Imagier-Fr-Fruit.zip (2.5 KB, 167 views)
laurent68 is offline   Reply With Quote
Old 10-31-2013, 01:20 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fix your quoting.

You want eiither

"--chapter=..."
or
--chapter "..."

not --chapter="...."
kovidgoyal is offline   Reply With Quote
Old 10-31-2013, 07:19 AM   #3
laurent68
Junior Member
laurent68 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2013
Device: Ipad
Hi,

I try so many things... that I wrote one solution.

of course I already try
with various --level1-toc "//h:h1[re:test(@align, 'center', 'i')]"
with or without various --chapter "//h:h1 [re:test(@align, 'center', 'i')]"

and it still doesn't work.

any idea ?
many thanks
laurent68 is offline   Reply With Quote
Old 10-31-2013, 07:27 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Since the CLI and the GUI use exactly the same code, the only difference if the options you are passing in. You can get the lsit of options by adding -vv to the command line for the CLI and by looking at the job log in the GUI. Compare them.
kovidgoyal is offline   Reply With Quote
Old 11-01-2013, 08:48 AM   #5
laurent68
Junior Member
laurent68 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2013
Device: Ipad
Hi,

actualy I have the same error message with the GUI.

so it's normal ...

many thanks

Laurent
laurent68 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC attribute validation error curiousgeorge ePub 3 04-18-2013 04:07 PM
PROBLEM TOC VALIDATION ERROR IN SIGIL Ibn ePub 7 06-06-2012 03:28 AM
TOC errors in PDF to EPUB conversion - software or user error? AhShoo5n Conversion 4 08-28-2011 08:05 AM
Epub validation error (toc) StirlingEditor Sigil 4 07-22-2011 09:04 PM
TOC error when converting HTML poloman Calibre 2 12-14-2008 04:05 PM


All times are GMT -4. The time now is 01:38 AM.


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