Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-08-2012, 11:03 AM   #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 11:11 AM.
curiousgeorge is offline   Reply With Quote
Old 08-08-2012, 11:25 AM   #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: 7,516
Karma: 18512745
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
Advert
Old 08-08-2012, 04: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: 73,989
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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 online now   Reply With Quote
Old 08-08-2012, 05:29 PM   #4
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
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, 10: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
Advert
Old 08-10-2012, 08: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: 73,989
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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 online now   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 06:20 PM.


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