05-17-2024, 06:17 PM | #1 |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Find Repeated/Duplicate Text
Is there a way to find (and possibly highlight) repeated word groups in ePubs?
|
05-17-2024, 07:38 PM | #2 |
Well trained by Cats
Posts: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
try
(\w+)\s\1 |
Advert | |
|
05-17-2024, 08:26 PM | #3 |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
|
05-17-2024, 08:58 PM | #4 | |
Well trained by Cats
Posts: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
\s(\w+)\s\1\s |
|
05-17-2024, 09:19 PM | #5 | |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Quote:
Sorry if I was unclear. |
|
Advert | |
|
05-17-2024, 09:37 PM | #6 |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@mikapanja - Do you want to find and highlight all occurrences of let's say: "cathode ray tube" ?
BR Last edited by BetterRed; 05-17-2024 at 09:52 PM. |
05-17-2024, 09:42 PM | #7 |
Well trained by Cats
Posts: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Actually, Spell check can do that.
remove the tick for only misspelled words Double click on the word (left side), repeat it (the d-click) jumps to the next occurrence |
05-17-2024, 10:38 PM | #8 |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
|
05-17-2024, 10:39 PM | #9 |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Sigil's PageEdit might be a better starting point, it's a lightweight wysiwyg content editor. I'll have a look-see
BR Last edited by BetterRed; 05-17-2024 at 10:45 PM. |
05-17-2024, 11:12 PM | #10 |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
05-17-2024, 11:48 PM | #11 |
creator of calibre
Posts: 44,650
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's no such functionality. You would need to write a plugin for it.
|
05-18-2024, 12:02 AM | #12 | |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Quote:
It would also be useful to be able to define the group size (say, 3-5 words, or 3 words and larger). I was hoping one of our resident experts could come up with a relevant regex or function. I know it's doable in Word via macro, albeit on a sentence level. |
|
05-18-2024, 01:12 AM | #13 | |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And when you've done, set Highlight to None and repeat F&R. BR |
|
05-18-2024, 08:50 AM | #14 | |
Perfectionist
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Quote:
|
|
05-18-2024, 09:27 AM | #15 | |
Grand Sorcerer
Posts: 5,645
Karma: 23456789
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Repeated text after page turn. | Pawel1212 | Onyx Boox | 6 | 01-13-2023 04:09 AM |
Replace repeated item with the number of times it is repeated | 1v4n0 | Sigil | 3 | 04-01-2021 05:41 PM |
Find duplicate books | MOJOJE | Library Management | 1 | 08-13-2020 06:59 PM |
Repeated text pdf to epub conversion | magicman1223 | Conversion | 3 | 04-25-2014 03:02 PM |
Find duplicate books... | silentguy | Calibre | 10 | 12-10-2010 12:03 PM |