![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
About selecting and highlighting
Hi
Forgive me if there is a plain way of doing it. I did not find it... Sometimes, when proofreading, we wish to highlight words, or punctuation signs scattered along the text files. It can be a list of suspicious (in the OCR sense) words, it can be anything. For example, my last book had to be checked because I realized that after a poor scan, there were too many dots and not enough comas. If you are unable to highlight them, you'll lose both your sight and sanity trying to check every d... occurrence of these tiny signs. So my question is: how can I select and highlight all the dots? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's no such functionality, the best you can do is jump from one match to the next using the search. Or alternatively, use search and replace to surround every instance with <b> tags it will then be pretty obvious in code view or if you want to see it in preview use <u> or <span style="background-color:red">
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for your answer.
Maybe it would be useful to add such a functionality because I can see many ways how it could be used to edit ebooks.... |
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,705
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Not so much for punctuation as for 'suspicious' words, except I'd probably prefer to see them highlighted in Preview. BR |
|
![]() |
![]() |
![]() |
#5 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
and once you are done with reviewing, use a search/replace to unwrap. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
I guess if I wish to highlight a list of words, I would have to use a function? Last edited by roger64; 09-16-2020 at 02:08 AM. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, you can have a single search expression match multiple words with the | operator.
|
![]() |
![]() |
![]() |
#8 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I comeback to you on the dot question. I tried to use a set of two regex, red+ and red-, the first one to highlight the dots, the second one to suppress all highlighting (see below). However, the first regex also highlights the dots in the <head> of the xhtml files which is unpleasant. Is there a way to avoid this side-effect? searches 0 case_sensitive false dot_all false find "(\\.)" mode "regex" name "red+" replace "<span style=\"background: red\">\\1</span>" 1 case_sensitive false dot_all false find "<span style=\"background: red\">(.*?)</span>" mode "regex" name "red-" replace "\\1" version 1 |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Selecting a link | Frenchguy | Editor | 1 | 08-20-2019 09:54 AM |
Selecting option. | stanislas | Plugins | 10 | 12-11-2015 10:08 AM |
Selecting all books? | Jwt0001 | Marvin | 2 | 07-15-2014 12:03 PM |
Selecting mobi only ? | Ron. | Calibre | 2 | 07-30-2011 02:41 PM |
Is the kindle practical(fast) for extensive text selecting(highlighting&clipping) | Douglasco | Amazon Kindle | 10 | 02-23-2009 02:22 PM |