09-22-2018, 04:58 AM | #1 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Indexing whole words only
Hello, a question regarding Sigil's marvelous Index Tool.
Is it possible for it to index an entry only when it is a whole word, and not just part of a longer word? That is, if under "text to include" I write "White", I want it to index only the instances of "White" as a stand-alone word, and not, say, "Whiteman", "Whitestone"; etc. I seem to recall it was like that in older versions, but I might be wrong. Thanks. |
09-22-2018, 05:27 AM | #2 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Use:
Code:
^White$ $ – end of the word Last edited by BeckyEbook; 09-22-2018 at 05:31 AM. |
Advert | |
|
09-22-2018, 05:28 AM | #3 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
In the "Text to include" tab? That was easy
|
09-22-2018, 06:35 AM | #4 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Wait, where should the "$" go? I tried this in the Index Editor and it doesn't work.
I tried "White[^a-z]" though, and it does work. Last edited by 1v4n0; 09-22-2018 at 06:46 AM. |
09-22-2018, 07:56 AM | #5 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
You right.
This not work if "White" is inside sentence. Works only for single words. Better solution: Code:
\bWhite\b Last edited by BeckyEbook; 09-22-2018 at 09:11 AM. |
Advert | |
|
09-30-2018, 02:10 PM | #6 |
Zealot
Posts: 100
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
|
\w = any “word” character (roughly [A-Za-z], but Unicode-aware; \W = any non-word character.
\WWhite\W should pick up “‘White’” and “White.” which some other suggestions here would miss. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T3 T3 indexing | jjansen | Sony Reader | 10 | 10-30-2013 07:39 PM |
Indexing - please consider this | misterstudebaker | Calibre | 5 | 07-17-2013 07:36 PM |
Troubleshooting Indexing | latepaul | Amazon Kindle | 13 | 01-15-2013 05:22 PM |
Troubleshooting Indexing | Bricorn | Amazon Kindle | 5 | 03-26-2011 04:02 PM |