|
|
#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?
|
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,257
Karma: 61916418
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 |
|
|
|
|
|
#3 |
|
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
|
|
|
|
|
|
#4 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,257
Karma: 61916418
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
a space after should stop that. I added a starting space required as well (this won't find if the first and second word are the matchCode:
\s(\w+)\s\1\s |
|
|
|
|
|
|
#5 | |
|
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Quote:
Sorry if I was unclear. |
|
|
|
|
|
|
#6 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,012
Karma: 30277294
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 08:52 PM. |
|
|
|
|
|
#7 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,257
Karma: 61916418
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 |
|
|
|
|
|
#8 |
|
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
|
|
|
|
|
|
#9 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,012
Karma: 30277294
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 09:45 PM. |
|
|
|
|
|
#10 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,012
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
|
|
#11 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,607
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's no such functionality. You would need to write a plugin for it.
|
|
|
|
|
|
#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. |
|
|
|
|
|
|
#13 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,012
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And when you've done, set Highlight to None and repeat F&R. BR |
|
|
|
|
|
|
#14 | |
|
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Quote:
|
|
|
|
|
|
|
#15 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
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 03:09 AM |
| Replace repeated item with the number of times it is repeated | 1v4n0 | Sigil | 3 | 04-01-2021 04:41 PM |
| Find duplicate books | MOJOJE | Library Management | 1 | 08-13-2020 05:59 PM |
| Repeated text pdf to epub conversion | magicman1223 | Conversion | 3 | 04-25-2014 02:02 PM |
| Find duplicate books... | silentguy | Calibre | 10 | 12-10-2010 11:03 AM |