08-08-2012, 11:03 AM | #1 |
Connoisseur
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> Code:
<a id="ch24"></a> Code:
<navPoint id="30" playOrder="30"> <navLabel> <text>Text here</text> </navLabel> <content src="xhtml/chapter24.html#ch24"/> </navPoint> actual code: Code:
<h2 class="h2"><a id="page_393"></a><a id="ch24"></a> and contents appears to do the same thing: Code:
<h2 class="h2"><a id="page_6"></a><a id="page_7"></a>Contents</h2> Last edited by curiousgeorge; 08-08-2012 at 11:11 AM. |
08-08-2012, 11:25 AM | #2 |
frumious Bandersnatch
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.
|
Advert | |
|
08-08-2012, 04:26 PM | #3 |
Resident Curmudgeon
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 } |
08-09-2012, 10:29 AM | #5 |
Connoisseur
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.
|
Advert | |
|
08-10-2012, 08:28 PM | #6 |
Resident Curmudgeon
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
|
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.
|
|
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 |