Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2015, 12:11 PM   #1
estrellanavidad
Junior Member
estrellanavidad began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2015
Device: ipad 2
Change color automatically of one word everytime it appears in the book

Hi I would like to know if there is anyway to change the color o background color of the same word in the whole book. For example everytime the word house appears is in blue or highlighted.

I figured how to do it one mention at a time but I was hoping for a quicker way because I have like 3000 thousand books I have to do it to.

Thank you so much
estrellanavidad is offline   Reply With Quote
Old 12-10-2015, 12:50 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by estrellanavidad View Post
Hi I would like to know if there is anyway to change the color o background color of the same word in the whole book. For example everytime the word house appears is in blue or highlighted.

I figured how to do it one mention at a time but I was hoping for a quicker way because I have like 3000 thousand books I have to do it to.

Thank you so much
Wrap it in a span

search: \b(house)\b
Replace: <span class="makeblue">\1</span>

CSS: span.makeblue {background-color: blue;}

note, I limit the check for only the word House (not housekeeping) by looking at a boundary . I use the capture solely to make the replace simple
theducks is offline   Reply With Quote
Advert
Reply

Tags
color, css, word


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Author Profile is removed everytime I change the cover Julius Caesar Calibre 3 08-28-2013 08:47 PM
Author Sort - change automatically? StanByk Calibre 14 03-24-2012 02:10 AM
Automatically add tag if word/phrase found in ebook? eosrose Calibre 3 11-16-2011 06:48 AM
change book page background color jtpryan Nook Color & Nook Tablet 1 01-26-2011 04:13 PM
Automatically change titles to contain series info? HunterZ Calibre 8 08-15-2010 09:02 PM


All times are GMT -4. The time now is 10:58 AM.


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