Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2017, 11:33 AM   #16
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by PeterT View Post
I believe the LUE was just an example of adding an alphabetic prefix to the number 42.
correct
LifeUniverseEverythinh

There are experts that say foreign keys should not be meaningful
theducks is offline   Reply With Quote
Old 01-31-2017, 08:52 PM   #17
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,545
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
So maybe use YALE next time rather than LUE
PeterT is offline   Reply With Quote
Old 02-01-2017, 12:17 AM   #18
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaot View Post
Proper nomination of a matter seems to me particularly important here. So, the built in tool to generate a table of contents is the ToC, and there is a entry list in the File Browser, and there is a directory in the File Preview.

That would be my suggestion!

In these books the ToC is of less help, because of the sheer amount of headlines. The ToC, shown in my Tolino ereader includes about 80 pages, 8 entries per page. For navigation in the book (in the ereader) I need other instruments. I got an idea. You too?

I practiced to generate anchor (ID's), a little detour, but works fine. Per file method with filename, do you mean so:
Code:
Instead of
<a href="xyz.html#uCZEvuprkBTfz9FrYC7Blz5">Title</a> 
to use
<a href="xyz.html#Title">Title</a>
As I said, use the tools. And actually pay attention to what they do.

The ToC generator can go through the book and find all heading tags and create the NCX for you. If the heading is at the top of the file, it will not add an id as this is not needed. If the heading is not at the top of the file, or there are multiple headings in the file, a valid id is generated and put into the heading tag. And put into the NCX version of the ToC. If you don't want to use heading tags, you can use others so long as you can identify them somehow.

You can then use another tool to generate an in-line ToC from the NCX version. From memory, you can use a template to style this how you want. Or you can edit it afterward. And as long as you keep the NCX ToC up to date, you can regenerate whenever you need to.

As you seem to want back links from the headings to the ToC, then simply add the references to the headings that are entries in the ToC. To do this, regex is your friend. And to be explicit about this, for the heading:

Code:
<h2 id="uCZEvuprkBTfz9FrYC7Blz5">Chapter Heading</h2>
The search is:

Code:
(<h2.*?>)(.*)(</h2>)
The replace is:

Code:
\1<a href="toc.html">\2</a>\3
The result is:

Code:
<h2 id="uCZEvuprkBTfz9FrYC7Blz5"><a href="toc.html">Chapter Heading</a>\</h2>
That will turn a h2 tag into a link that will take the reader back to the in-line ToC.

Changing the search and replace to put a image as part of the link is simple. As is covering other heading levels. If you have decided to use other tags for the headings, then you need to adapt to the tag and probably the class.

And the question about "Per file method" simply means the link points to the file name without an anchor. If a heading at the top of the file has an id, linking to the heading or just to the file is effectively the same. The only reason to use the anchor for the heading is if you think you might be rearranging things.
davidfor is offline   Reply With Quote
Old 02-01-2017, 06:55 AM   #19
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: 79,798
Karma: 146391129
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 PeterT View Post
So maybe use YALE next time rather than LUE
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can insert a citation automatically? calven Calibre 3 01-21-2016 05:30 AM
How can insert a footnote automatically? calven Editor 0 12-29-2015 07:52 PM
NCX TOC section headings eggheadbooks1 ePub 13 06-08-2013 05:57 PM
Issue With Chapter Headings and TOC yoss15 Kindle Formats 5 02-07-2012 01:54 PM


All times are GMT -4. The time now is 09:04 PM.


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