07-23-2014, 08:34 PM | #1 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Looking for suggestions for linking
I saw a nice technique (at least I thought it was pretty cool) to add an link in the text to an endnote and a backlink (?) from the endnote to the original text position.
I was able to get it to work using the [Insert Hyperlink] button but creating the IDs and the rest was tedious and pretty fiddly. Text file Code:
<p>asd<sup id="cite_01"><a href="notes_file.xhtml#note_01">1</a></sup> sdf</p> <p>asdfasfasdf</p> <p>asd<sup id="cite_02"><a href="notes_file.xhtml#note_02">2</a></sup> sdf</p> Code:
<p><sup id="note_01"><a href="text_file.xhtml#cite_01">1</a></sup> This is note ONE</p> <p>asdfasfasdf</p> <p><sup id="note_02"><a href="text_file.xhtml#cite_02">2</a></sup> This is note TWO</p> Thanks |
07-23-2014, 09:36 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
clips/macros.
Still on Kovid's TODO list. Or put in the unique info and regex it into shape. |
07-23-2014, 11:16 PM | #3 |
null operator (he/him)
Posts: 20,950
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@phossler - I do notes, citations, index etc in Word, which has tools to do all that. IIRC OO Writer has similar facilities to Word. Jutoh has some too. Calibre does a pretty good job of converting a DOCX and maintaining all the links etc.
Its hard to keep track of chapter (foot) and endnote numbering manually and a multilevel index is even harder. In a book with lots of notes, references and a solid index there's often almost as much markup as there is text BR |
07-24-2014, 08:51 AM | #4 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@all -- thanks for the info.
What seems to be harder would be the back link (text --> note --> text --> ... ) to return to the original point in the text I can add a few links in text to notes and manually add the 'back link' in the note, but adding the links and sup's and ID's etc. in both places and keeping them in sync can be pretty fiddely |
07-24-2014, 06:13 PM | #5 |
null operator (he/him)
Posts: 20,950
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
This ==>> Edit Book Plug-ins could be the means for creating/editing chapter & end notes, references, indexes etc.
Kovid has posted that it'll be in today's release - 1.46. BR Last edited by BetterRed; 07-24-2014 at 06:33 PM. |
07-24-2014, 09:55 PM | #6 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@BR -- interesting, but the way I read that means that someone (CERTAINLY not me -- I know when I'm out of my depth) could write the plugin to make the links, etc.???
|
07-24-2014, 10:23 PM | #7 | |
null operator (he/him)
Posts: 20,950
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
IIRC when the idea of editor plug-ins first came up, some folks wondered what they might be used for - this seems a possible candidate. BR |
|
10-16-2014, 10:48 AM | #8 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Sorry to resurrect an old post, but I recently had to fix a lot of broken links and it got me wondering again if there were any suggestions or ideas
The best convention I've come up so far is something like the to-from pairs below, BUT it's all manual, keeping track of current cite number, inserting the matching anchors / links, etc. In the text file Code:
blah blah blah blah blah blah blah blah blah.
<a class="cite" id="chap02_cite01" href="notes.xhtml#chap02_note01">[1]</a>
blah blah blah blah blah blah blah blah blah
In the Notes file Code:
<p class="note" id="chap02_note01">
<a href="chapter_2.html#chap02_cite01">[1]</a>
blah blah blah.</p>
Thanks |
10-17-2014, 09:35 AM | #9 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
It just goes through and looks for every "<sup>#</sup>" and begins counting up from 1 to end of chapter, creating links in this form: Code:
<a href="#fn9" id="ft9">[9]</a> Code:
<a href="#ft9" id="fn9">[9]</a>
I really should get around to programming it better, although I would rather focus my time on many other higher priority projects (or digitizing many more books). It works ok for me, and I am used to the bugs, so I get around them beforehand. Quote:
https://www.mobileread.com/forums/sho...d.php?t=225045 The important thing is to be CONSISTENT. (Of course, you can also expand upon it to make it more explicit): Code:
<a href="../Text/01.xhtml#fn9" id="ft9">[9]</a> <a href="../Text/01.xhtml#ft9" id="fn9">[9]</a> Code:
<a href="../Text/01.xhtml#fn01.9" id="ft01.9">[9]</a> <a href="../Text/01.xhtml#ft01.9" id="fn01.9">[9]</a> Last edited by Tex2002ans; 10-29-2014 at 03:48 PM. |
||
10-19-2014, 10:03 AM | #10 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Great answer
I don't do any OCR stuff, mostly just try to clean up PD books to make them readable (to me at least). Usually just (mostly) involves cleaning a lot of CSS, but I've started importing a 'standard' style sheet for the basics and a font-specific (or two) style sheets. Yea, not really footnotes, but more 'end of book' notes. I put them into a separate file just to be neat. The usual problem is caused by a poorly converted book -- I can spot them because that have 3-5 Calibre inserted TOC files Edit: I was trying to just make adding / correcting the 'back and forth' references to return to the source point after jumping to the endnote Last edited by phossler; 10-19-2014 at 12:04 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking to an image | EbookNoob | ePub | 9 | 05-12-2013 02:39 AM |
linking between books? | xmlgirl | ePub | 8 | 05-19-2012 04:23 PM |
Linking to a website | Rivka | General Discussions | 1 | 07-20-2011 06:41 PM |
anyway of linking Mobipocket | ratt1972 | Calibre | 4 | 07-09-2010 10:48 PM |
What are you linking? | gvtexas | Lounge | 14 | 02-29-2004 12:11 AM |