Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-08-2012, 12:03 PM   #1
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
Unusual ID

I have a valid epub that was given to me by a friend to examine. I see in one particular page it shows the h2 class but than it shows two ids.

One id is
Code:
<a id="page_393"></a>
the second:
Code:
<a id="ch24"></a>
I understand the second and see it in the toc.ncx file and it calls the page
Code:
<navPoint id="30" playOrder="30">
	  <navLabel>
	   <text>Text here</text>
	  </navLabel>
	<content src="xhtml/chapter24.html#ch24"/>
	</navPoint>
but when epub is viewed in adobe digital page 393 is not right. Im trying to figure out where the id 393 is being called at and what it is for.

actual code:
Code:
<h2 class="h2"><a id="page_393"></a><a id="ch24"></a>
edit:
and contents appears to do the same thing:

Code:
<h2 class="h2"><a id="page_6"></a><a id="page_7"></a>Contents</h2>
By looking at it it appears to be an order structure???

Last edited by curiousgeorge; 08-08-2012 at 12:11 PM.
curiousgeorge is offline   Reply With Quote
Old 08-08-2012, 12:25 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,310
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Those are probably anchors marking the pages in some printed edition of the book. They are probably invisible, and may be actually unused. They do no harm and only take some space (some caution may be necessary with the spacing around them, though), and could be useful for future references... They have absolutely no relation with the "page" number that ADE might show.
Jellby is offline   Reply With Quote
 
Advertisement
Old 08-08-2012, 05:26 PM   #3
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: 38,499
Karma: 19471833
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Removing these page numbers ID tags is actually a very good idea as then the page number ADE displays is a lot more accurate to show the size of the ePub. You don't need to jump to an anchor point in the ToC since you would just be jumping to the top of the page in that chapter's XML.

Also, for most of your paragraphs, just use <p>text of the paragraph</p> and again, you will have more accurate page numbers. Just remember to proper define the p style.

for example...

p {
margin-top: 0;
margin-bottom: 0;
margin-right: 0;
margin-left: 0;
text-indent: 1.2em
}


And if you need to modify the paragraph style such as a paragraph with no indent, use...

<p class="noindent">text of paragraph</p>

.noindent {
text-indent: 0
}
JSWolf is offline   Reply With Quote
Old 08-08-2012, 06:29 PM   #4
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,124
Karma: 4861354
Join Date: Dec 2010
Device: Kindle PW2
It looks like the book contains a pagemap.
Doitsu is offline   Reply With Quote
Old 08-09-2012, 11:29 AM   #5
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
I dont know what it is. I was tasked with fixing epubs so I am learning as I go. So far I have 15 epubs corrected and validate to epub 3.0. Still learning what some errors mean.
curiousgeorge is offline   Reply With Quote
Old 08-10-2012, 09:28 PM   #6
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: 38,499
Karma: 19471833
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by curiousgeorge View Post
I dont know what it is. I was tasked with fixing epubs so I am learning as I go. So far I have 15 epubs corrected and validate to epub 3.0. Still learning what some errors mean.
Please don't make then ePub 3. That will cause all kinds of trouble that you don't want and don't need. Most readers/reading apps won't work with ePub 3.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR1000 Unusual directory names andre8x8 iRex 8 10-04-2011 10:28 AM
Sorting 'unusual' names travger Library Management 4 07-08-2011 09:30 AM
America's Most Unusual Addictions Over Lounge 2 10-18-2008 04:50 PM
What is so unusual about this paragraph? Madam Broshkina Lounge 11 04-24-2008 04:04 PM


All times are GMT -4. The time now is 02:49 AM.


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