Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 12:47 PM   #1
Simons Mith
Enthusiast
Simons Mith began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2020
Device: none
Sigil index - semicolon bug

According to the online docs, marking an index entry with a semicolon is supposed to produce more than one entry

The example online uses entrya;entryb - I quote the relevant section below

Code:
[blank]: If you leave the name empty, then the exact words you highlighted will be used in the index.

words: If you enter a word or phrase, then that word or phrase will be used (e.g. Oak instead of oak).

heading/words: If you use a “/” in the name then a hierarchical group will be created (e.g. Forest/Tree/Oak will create an entry Oak filed under Tree filed under Forest).

entrya;entryb: If you use a “;” then multiple entries will be created for this word or phrase.
This hasn't worked for me on 2.8.1 or 2.8.5. I just get a single index entry containing "entrya;entryb" exactly as entered. The / character does work correctly

Last edited by Simons Mith; Yesterday at 12:50 PM.
Simons Mith is offline   Reply With Quote
Old Yesterday, 03:19 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,194
Karma: 7640000
Join Date: Nov 2009
Device: many
I will look into that.
KevinH is offline   Reply With Quote
Advert
Old Yesterday, 04:35 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,194
Karma: 7640000
Join Date: Nov 2009
Device: many
Okay, way back in Sigil 0.7.1 that feature for using a ';' ended up causing an empty html bug and so was removed by this commit from over 13 years ago.

https://github.com/Sigil-Ebook/Sigil...bc8313df0ba6e2

That was before we took over Sigil. If you found that ';' feature documented in a current Sigil User guide, we will have to fix the user guide to remove that feature. The tooltips in Sigil no longer mention that use of ';'.

Last edited by KevinH; Yesterday at 04:43 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 04:59 PM   #4
Simons Mith
Enthusiast
Simons Mith began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Oct 2020
Device: none
Oh, dang, I was going to use that. Thanks for checking so quickly.

What's the recommended way to do the same thing nowadays? Should I just index the next word along or something?
Simons Mith is offline   Reply With Quote
Old Yesterday, 05:27 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,194
Karma: 7640000
Join Date: Nov 2009
Device: many
Not sure as I have never tried to use that feature in the last 15 years. I'm not even sure what the expected output was.

When I get a free moment, I will try it in a really old Sigil (0.7.0)(if I can find one that works on recent MacOS) to see exactly what xhtml it creates in the index file. If you are a Windows user you may have better luck trying a binary that old to see exactly what it was expected to generate in the index.xhtml.

If you do that and post the output, we can try to figure out a way to do the same thing or something similar.

Last edited by KevinH; Yesterday at 05:43 PM.
KevinH is offline   Reply With Quote
Advert
Reply

Tags
index bug semicolon

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Index Creator bug maybe? Siggy15 Sigil 4 11-02-2026 01:21 PM
Strange bug (tuple index out of range) un_pogaz Calibre 4 08-15-2021 10:17 PM
Bug in index creation with Sigil Patrick V Sigil 6 02-11-2020 10:12 AM
[BUG] Index lists all words starting with string 1v4n0 Sigil 9 05-17-2018 02:28 PM
Sigil Plugin Index Thasaidon Plugins 0 10-04-2014 08:41 AM


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


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