Kindlegen now fails in Scrivener 3.0.1 -- Invalid nav element.

User avatar
thomasalmy
Posts: 22
Joined: Tue Nov 21, 2017 11:50 pm
Platform: Mac
Location: Oregon, USA
Contact:

Fri Dec 22, 2017 5:20 am Post

Just upgraded to Scrivener 3.0.1 and now I can't compile for KF8/MOBI. Here is the log file for Kindlegen, abreviated:

Code: Select all

*************************************************************
 Amazon kindlegen(MAC OSX) V2.9 build 1028-0897292
 A command line e-book compiler
 Copyright Amazon.com and its Affiliates 2014
*************************************************************
Warning(prcgen):W30013: Invalid "nav" element in Navigation file. Please refer to Kindle Publishing Guidelines about usage of EPUB3 Navigation support. A "nav" element can have two child elements, an optional heading and a mandatory ol ordered list  in file: /private/var/folders/23/w76xjg0j5jv4jw_yt50swsdm0000gn/T/EBOOK_TEMP/test_X/contents.xhtml line: 8
Error(prcgen):E24012: Epub Navigation file could not be built.
Info(prcgen):I1038: MOBI file could not be generated because of errors!


Generated NAV is:

Code: Select all

<nav epub:type="toc" id="toc">
<p class="page-title">Contents</p>
<ol>
<li><a href="body.xhtml">Dedication</a></li>
<li><a href="body1.xhtml">Foreword</a></li>
<li><a href="body2.xhtml">Chapter One - Chapter</a>
<ol>
<li><a href="body3.xhtml">Section Uno</a></li>
<li><a href="body4.xhtml">Section Dos</a></li>
</ol>
</li>
</ol>
</nav>


Edited addition to post: I created a new project from the General Non-Fiction template, did absolutely nothing to it, and told it to compile KF8/MOBI and it fails the same way. So this is very easy to replicate.
Last edited by thomasalmy on Fri Dec 22, 2017 4:09 pm, edited 1 time in total.

User avatar
nontroppo
Posts: 1032
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Fri Dec 22, 2017 4:00 pm Post

Temporary fix is to compile to EPub3, edit the <p> to <h2> manually, then use kindlegen...

See also viewtopic.php?f=2&t=49949 & http://www.literatureandlatte.com/forum ... =2&t=49946

User avatar
nontroppo
Posts: 1032
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Sat Dec 23, 2017 1:30 am Post


User avatar
thomasalmy
Posts: 22
Joined: Tue Nov 21, 2017 11:50 pm
Platform: Mac
Location: Oregon, USA
Contact:

Sat Dec 23, 2017 9:13 pm Post

Workaround works, but it is bizarre. I don't understand that HTML Elements pane at all (and the documentation isn't clear to me in the slightest).
Anyway, this gets me going, but I'll be happy when 3.0.2 arrives.

User avatar
KB
Site Admin
Posts: 20114
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Fri Jan 05, 2018 3:33 pm Post

Argh, a fix for something else broke this. Fixed for 3.0.2.
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

Al
AlanReynolds
Posts: 6
Joined: Thu Oct 18, 2012 10:46 am
Platform: Mac
Location: Monnickendam, Netherlands
Contact:

Sun Jan 14, 2018 7:12 am Post

i am having the same problem. Glad to read that it is fixed in 3.02. When I check for updates my copy of Scrivener says, "Scrivener 3.0.1 is currently the newest version available." Is 3.02 available?
Best regards,

Alan

br
brookter
Posts: 1713
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Sun Jan 14, 2018 10:57 am Post

3.02 hasn't been released yet.