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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2026, 06:13 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,098
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Find & Replace

I got some ideas in my earlier post

https://www.mobileread.com/forums/sh...highlight=tags

but I can't figure out if it's possible to ignore a 'Find' if it's inside a tag(s)

Say for example i have

<p class="big black">See the big cat</p>

and I want to just replace 'big' with 'large' but only in the text

<p class="big black">See the large cat</p>

How to do it?

It'd be nice if there was a F&R checkbox to "Ignore in tags"
phossler is offline   Reply With Quote
Old 09-14-2026, 08:37 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 54,431
Karma: 182161789
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
An equivalent to Sigil's Text checkbox to restrict search to text?
DNSB is offline   Reply With Quote
Advert
Old 09-14-2026, 09:53 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,481
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Click the search menu and in there you will find search ignoring HTML markup
kovidgoyal is offline   Reply With Quote
Old Yesterday, 08:23 AM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,098
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks for pointing that out

However

1. The setting doesn't seem to be persistent, i.e. once set it does not stay set for the next search

2. I get this error

Quote:
calibre, version 9.14.0
ERROR: Unhandled exception: <b>AttributeError</b>:'builtin_function_or_method' object has no attribute 'setFocus'

calibre 9.14 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.14.7
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-parallel.exe
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 34, 0) && Package KFX (from KFX Input) (2, 34, 0) && KFX Output (2, 20, 1) && Action Chains (1, 20, 10) && Clean Comments (0, 2, 3) && Diaps Editing Toolbag (0, 5, 0) && Editor Chains (1, 1, 9) && EpubMerge (3, 3, 0) && EpubSplit (3, 12, 0) && Generate Cover (2, 4, 1) && Hyphenate This! (0, 1, 4) && Integrity Analysis (1, 5, 0) && KFX metadata reader (from KFX Input) (2, 34, 0) && From KFX (2, 34, 0) && KFX Input (2, 34, 0) && Set KFX metadata (from KFX Output) (2, 20, 1) && Manage Series (1, 5, 4) && Modify ePub (1, 8, 9) && Quality Check (1, 14, 7) && ScrambleEbook (0, 6, 0) && View Manager (1, 10, 5)
Traceback (most recent call last):
File "calibre\gui2\tweak_book\boss.py", line 1257, in show_text_search
AttributeError: 'builtin_function_or_method' object has no attribute 'setFocus'
I have <p class = "bold"> ....... in the document, and I try regular Find it finds the text inside the tags

I I need to find the word in plain old text and if I select {Search], [Search ignoring HTML markup] I get the error.

Am I doing something the wrong way?

Last edited by phossler; Yesterday at 08:27 AM.
phossler is offline   Reply With Quote
Old Yesterday, 09:08 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,481
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the error is harmless and will be removed in the next release. and its not a setting it open a new panel (usually in the bottom left corner) where you can do searches ignoring HTML markup
kovidgoyal is offline   Reply With Quote
Advert
Old Yesterday, 10:23 AM   #6
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,098
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
OK, i found the new panel it opens and it does Find non-tagged text

My unsolicted comments are that it seems to operate very differently than the 'standard' Find/Replace

I can't do a [Replace] or [Replace all] or [Replace find next]. The triangle icons for Find next and find previous work nicely but only to jump to the next occurance.

It would be my guess that if a user was looking for non-tagged text, a replacement would be common thing to do

I'd be my thought that just using a fourth check box by
[ ] Case Sensitive [ ] Wrap [ ] Dot all [ ] Ignore HTML markup
would be more flexible
phossler is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate a page split... Find & Replace doesn't work for this LostOnTheLine Sigil 24 11-28-2022 12:55 PM
Curious problem with find/replace & regex JoeBloe Editor 1 11-07-2014 04:45 AM
Weird problem with Find & Replace lastjuan Sigil 3 01-17-2013 03:55 AM
Grep Find & Replace Fabe Sigil 3 12-06-2010 12:00 PM
Help with Word - Find & Replace Big Kev Workshop 3 09-21-2010 06:51 PM


All times are GMT -4. The time now is 05:22 AM.


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