Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2018, 01:15 PM   #1
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Error Message Question

When load my HTML into Sigil, I get the following error.

This page contains the following errors:

error on line 17 at column 16: Namespace prefix 'mbp' not declared
Below is a rendering of the page up to the first error.

I am using Notjohn's template and not sure if this is a problem.

These are the other 2 errors I get.


Error(prcgen):E24010: Hyperlink not resolved in toc (One possible reason can be that the link points to a tag with style display:none):C:\Users\Jim\AppData\Local\Temp\mbp_ 7E1_C_1F_12_34_1D_172_1748_2EC4_1\OEBPS\Text\Secti on0001.xhtml#

Error(prcgen):E24001: The table of content could not be built.

Thanks for the help.

PS

I am publishing to Amazon.
jray9242 is offline   Reply With Quote
Old 01-01-2018, 01:22 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Epubs need to use xhtml (or html5 for epub3). Mbp: is not valid xhtml (or html5). It sounds like your html contains raw mobi markup to me.

I can't really help with Kindlegen/Previewer errors. I don't use it.
DiapDealer is offline   Reply With Quote
Advert
Old 01-01-2018, 02:05 PM   #3
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Ad mbp:
You have two options.
1. Find all <mbp:something> (for example <mbp:pagebreak/>) tags and remove them
2. Add in the appropriate files...
Now you probably have such an entry:
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
Change to:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mbp="www.mobipocket.com">
It does not make much sense, but the error should not appear.


Ad kindlegen.
You must check especially the file Section0001.xhtml and specific link from the TOC file.
The destination has a style display:none declared.

It can be a direct declaration, e.g.
PHP Code:
<h1 style="display: none">Title blahblahblah</h1
or by CSS style:
PHP Code:
<h1 class="hidden-header">Title blahblahblah</h1
with declared class:
Code:
.hidden-header {display: none;}
Of course, the style names will be different.
BeckyEbook is offline   Reply With Quote
Old 01-01-2018, 10:52 PM   #4
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Thank you both for the information.I used mbpagebreak for formatting based on Notjohn's blog on posting to Amazon.

I have posted this book before and didn't have a problem, but now I do.

Once I create the ePub. is there a reason for me to use Kinder Reader?

I will take your advice and apply these changes.

Thanks again.

Jim
jray9242 is offline   Reply With Quote
Old 01-02-2018, 12:09 PM   #5
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Quote:
Originally Posted by Roshni Patel View Post
I didn't get your errors actually. What is it for?
I believe it formats the eBook page breaks.
Attached Thumbnails
Click image for larger version

Name:	2018-01-02_12-08-14.jpg
Views:	238
Size:	88.6 KB
ID:	161178  
jray9242 is offline   Reply With Quote
Advert
Old 01-02-2018, 03:48 PM   #6
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
This fixed one of my problems:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mbp="www.mobipocket.com">

I don't use the <H1> so I will look at the TOC error again.

Thanks for the help.
jray9242 is offline   Reply With Quote
Old 01-02-2018, 06:24 PM   #7
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Great news!

I now have no errors when I open it with the Kindle viewer.

Now I have to figure out why my TOC links are not working. They work in HTML and in Sigil but not with the Kindle viewer.

Thanks again all for the help!

Jim

Last edited by jray9242; 01-02-2018 at 06:28 PM.
jray9242 is offline   Reply With Quote
Old 01-02-2018, 07:43 PM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
Epubs need to use xhtml (or html5 for epub3). Mbp: is not valid xhtml (or html5). It sounds like your html contains raw mobi markup to me.
I agree. Better to just remove that non-standard <mbp> code and stick with normal XHTML.

Quote:
Originally Posted by jray9242 View Post
Thank you both for the information.I used mbp:pagebreak for formatting based on Notjohn's blog on posting to Amazon.
If you were trying to get page breaks, it would probably be best to use CSS.

HTML:

Code:
<p class="pagebreak">* * *</p>
CSS:

Code:
p.pagebreak {
	page-break-before: always;
}
Or just split each individual piece into its own HTML file (the only real universal solution to guarantee it will be on their own pages).

Quote:
Originally Posted by jray9242 View Post
I don't use the <H1> so I will look at the TOC error again.

[...]

Now I have to figure out why my TOC links are not working. They work in HTML and in Sigil but not with the Kindle viewer.
What's the code?

Side Note: Instead of using something like:

Code:
<p class="part">Part 1</p>
<p class="chapter">Chapter 1</p>
it is better to use <h1-h6> for chapters/subchapters:

Code:
<h1>Part 1</h1>
<h2>Chapter 1</h2>
Marking documents with headings will allow Sigil to generate a correct TOC very easily for you. It also brings many other long-term benefits.

Last edited by Tex2002ans; 01-02-2018 at 08:22 PM.
Tex2002ans is offline   Reply With Quote
Old 01-02-2018, 10:33 PM   #9
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Tex2002ans,

I did get everything working but think creating each chapter in a separate HTML might work better.

I will research this so I don't bother you all to much.

Thank you all very much for the help and will use CSS for my page breaks from here on out.
jray9242 is offline   Reply With Quote
Old 01-03-2018, 12:20 AM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by jray9242 View Post
I did get everything working but think creating each chapter in a separate HTML might work better.


That really is the best and most easiest choice.

It is the only guaranteed way to work + it helps keep the filesizes of each HTML file small to help older devices (many older ereaders croak if the HTML file becomes larger than ~300 KB).
Tex2002ans is offline   Reply With Quote
Old 01-03-2018, 10:21 AM   #11
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Let me ask this one last question.

Do I create each chapter as a standalone HTML complete with CSS and then merge them in Sigil?

I have been searching and haven't found any examples yet.

Thanks again.
jray9242 is offline   Reply With Quote
Old 01-03-2018, 10:57 AM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by jray9242 View Post
Let me ask this one last question.

Do I create each chapter as a standalone HTML complete with CSS and then merge them in Sigil?

I have been searching and haven't found any examples yet.

Thanks again.
Just use the Sigil split tool (manual) on the toolbar
OR
put
Code:
<hr class="sigil_split_marker" />
at the split point
I use Search and replace to insert the code when there is a good trap condition.
<F6> executes the split (do a save before, is a good practice)
theducks is offline   Reply With Quote
Old 01-03-2018, 12:11 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by jray9242 View Post
Do I create each chapter as a standalone HTML complete with CSS and then merge them in Sigil?
Just keep every chapter in a seperate file.

Instead of having one giant HTML file like this:

Code:
<body>
<p class="pagebreak">Copyright info</p>

<p class="pagebreak">Chapter 1</p>
<p>Text in Chapter 1.</p>

<p class="pagebreak">Chapter 2</p>
<p>Text in Chapter 2.</p>
</body>
You want seperate HTML files:

copyright.xhtml:

Code:
[...]
<body>
<p>Copyright info</p>
</body>
Chapter1.xhtml:

Code:
[...]
<body>
<h2>Chapter 1</h2>
<p>Text in Chapter 1.</p>
</body>
Chapter2.xhtml:

Code:
[...]
<body>
<h2>Chapter 2</h2>
<p>Text in Chapter 2.</p>
</body>
As theducks said, you can use the Split at Cursor button:

Click image for larger version

Name:	SigilSplitAtCursor.png
Views:	181
Size:	42.5 KB
ID:	161203

if you want to split each file one-by-one.

Or you could use the Insert > Split Marker + Edit > Split at Markers method.

In the end, your EPUB should look something like this:

Click image for larger version

Name:	AfterSigilSplitChapters.png
Views:	199
Size:	21.8 KB
ID:	161204
Tex2002ans is offline   Reply With Quote
Old 01-03-2018, 12:14 PM   #14
jray9242
Member
jray9242 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
Great information and thank you!

Jim
jray9242 is offline   Reply With Quote
Old 01-03-2018, 12:14 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Mbp has to do with Mobipocket. Where did the HTML come from that has Mobipocket code in it?
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Error communicating with device message techie6 Devices 5 04-02-2018 09:25 PM
Calibre Error Message Question pjmpjm Library Management 2 03-17-2016 12:45 AM
KindleGen error message: E1003 Unknown error in class String. Doitsu Kindle Formats 1 06-25-2014 12:29 PM
Error message: "TEMPLATE ERROR Single '}' encountered in format string" frank14612 Calibre 22 07-02-2013 11:05 AM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 01:47 PM


All times are GMT -4. The time now is 07:14 AM.


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