04-18-2017, 12:12 PM | #1 |
Miskatonic U. Class of 97
Posts: 20
Karma: 10
Join Date: Apr 2015
Location: Ethersphere
Device: iPad, Kindle, Nook,
|
:help:How do I locate where in the line this is?
Okay I'm currently working on a 1200+ page ePub, I just ran it through EPUB checker, it came up with 20+ errors. Yesterday I whittled that down to 2. Those 2 errors are in the same line somewhere but, unfortunately the line is VERY long, it's an entry from the index section. Now my question is, what/where does the col #value stand for? How do I search via that value so I can know exactly where the problem lies in the long string? Is that a character count? I have tried on fixing it manually, but don't see any errors in the code. (example: line 71, col 4205) |
04-18-2017, 12:47 PM | #2 |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
col value is the column WHEN the error becomes obvious to the checker.
The actual error can be somewhere before eg You open a <div, but it never closes. When you hit </body, all tags inside the body must have been closed: <bzzz> Error, but it does not know where it belonged Kovid is going to add Tag Matching, but that only helps so far Other less obvious Open a <h3, close a </p While you can use a <div pair for a paragraph ... using <p prevents the missing </div problem because you can not start another <p until the previous closes |
Advert | |
|
04-18-2017, 12:58 PM | #3 |
Miskatonic U. Class of 97
Posts: 20
Karma: 10
Join Date: Apr 2015
Location: Ethersphere
Device: iPad, Kindle, Nook,
|
|
04-18-2017, 01:07 PM | #4 | |
Well trained by Cats
Posts: 29,799
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:
The only time the error message location is WITHIN the line is when the error is detected before the close. BTW isnt there a better way to do all those anchors. Break them up into groups with no visual space between the groups. Code:
<div class="wholegroup"> <div class="asmallgroup">stuff</div> <div class="asmallgroup">stuff</div> <div class="asmallgroup">stuff</div> </div> |
|
04-18-2017, 01:22 PM | #5 |
Miskatonic U. Class of 97
Posts: 20
Karma: 10
Join Date: Apr 2015
Location: Ethersphere
Device: iPad, Kindle, Nook,
|
Thank for your help, if you notice there were two hrefs that had improper syntax, somehow (eg <a href="./Text/..., instead of <a href="../Text/) one period and not two. Arrgh!
|
Advert | |
|
04-18-2017, 01:26 PM | #6 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Create a Report using Sigil's tools and look under links It will tell you exactly which anchor's target is missing which is what is generating your error message.
Also generating one long long line of links is not generally a good idea. You can use Search and replace to split it up sensibly as theducks memtioned. |
04-18-2017, 10:54 PM | #7 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In the future, you could also do something like this: Code:
<p>Alexandria, <a href="">123</a>, <a href="">124</a>, <a href="">125</a>, <a href="">126</a>, <a href="brokenlink">127</a>, <a href="">128</a></p> Search: ,\s Replace: ,\r\n After: Code:
<p>Alexandria, <a href="">123</a>, <a href="">124</a>, <a href="">125</a>, <a href="">126</a>, <a href="brokenlink">127</a>, <a href="">128</a></p> Quote:
Tools > Reports > Links, then sort by the "Target Exists?" column. If it says "no" then you can go take a closer look. As an example, "page800" accidentally "page80": |
||
04-19-2017, 07:02 AM | #8 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
I just wanted to mention -- yes, rewyn, the "Column Number" IS the character count. (I didn't see any acknowledgement of that fact in the thread, forgive me if I missed that)
If you look down on the status bar of the Sigil window, it tells you what LINE and what COLUMN your cursor is currently located. |
04-19-2017, 02:32 PM | #9 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Shameless plug: if you install my epubcheck Sigil plugin, clicking an error message in the validation pane will take you to the character position/column number reported by epubcheck.
Note that epubcheck will often report the position of the closing tag. |
04-20-2017, 09:09 AM | #10 | |
Groupie
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I know this has been asked but I can't locate the thread | bulldogmo | Calibre | 2 | 12-31-2016 06:58 PM |
Locate library - on device or PC? | delaing | Library Management | 3 | 06-26-2014 05:11 PM |
Cannot locate any books in Calibre | samanthalincoln | Devices | 1 | 07-19-2012 12:47 AM |
Trying to locate a signature. Help? | Witchbaby | Lounge | 0 | 03-09-2011 12:52 AM |
trying to locate books to read | JLYates | Reading Recommendations | 9 | 07-03-2010 05:19 AM |