11-18-2013, 01:43 AM | #1 |
Member
Posts: 24
Karma: 10
Join Date: Oct 2013
Device: none
|
css to exclude text from index
Hello,
I would like to use the index feature of Sigil only with the text body and exclude the endnotes and bibliography from being indexed. Can someone help me with the css or regex code to exclude endnotes in the index generator? I understand I can individually select text for index inclusion which is what most of my index has become because I can't exclude the endnotes otherwise. Is there a simpler solution? |
11-18-2013, 05:18 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
How would Sigil know what is a endnote and what is a normal link? I think your best bet is putting the endnotes in a seperate xhtml and remove the links in the generated index to that xhtml file.
|
Advert | |
|
11-18-2013, 10:17 AM | #3 |
Well trained by Cats
Posts: 30,455
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
When was the Xtal ball added
|
11-18-2013, 10:20 AM | #4 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It is part of the "holy grail" version of Sigil that everyone is so eager to find.
Xtal??? Your electronics is showing! |
11-18-2013, 10:32 AM | #5 |
Well trained by Cats
Posts: 30,455
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
11-18-2013, 12:43 PM | #6 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Tek is bit far away here, about 175 miles! I am 3 miles from the ocean in the city at the north end of the Oregon Dunes National Recreation Area, Florence. I do repair work for an outfit that was a spinoff from Tek, though.
It might be possible to remove endnotes from the index using search and replace, since they are usually formatted in a stylized manner. |
11-18-2013, 01:06 PM | #7 | |
Member
Posts: 24
Karma: 10
Join Date: Oct 2013
Device: none
|
Quote:
I would rather separate the indexer from seeing the endnotes but I don't know how to override the indexer's built-in generator. I am using some styles per endnote section as <div class="notes"> and was hopeful I could add css to have this class ignored in the index generator. The index is a work in progress presently and I've hand-done most of it just to get the index to no longer make reference to anything in the endnotes. I've yet to add the bibliography which might also have words the index generator will include, which I don't want. Because I keep adding words to the index right now I can't separate the endnotes with the hyperlinks in place without a mountain of testing and rewriting new links for over 200 entries to endnotes and pass flight crew. I am not experienced enough with regex to automate task creation of new hyperlinks outside the chapter text body. Last edited by kerliza; 11-18-2013 at 01:10 PM. |
|
Tags |
index editor, index generator, indexing |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS Help for Kindle DXI (darker fonts/text) | kolpazan | Calibre | 0 | 04-10-2012 03:16 PM |
Index: Making a linked index in epub | virtual_ink | ePub | 21 | 10-20-2011 12:23 AM |
changing text line-height in css | wjcroft | EPUBReader | 0 | 12-15-2010 04:13 PM |
CSS for a Kindle-like text formatting? | december | Sigil | 2 | 04-24-2010 08:44 AM |
Bidirectional text in XHTML/CSS | Jellby | Workshop | 3 | 02-21-2010 02:28 PM |