Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2019, 02:23 AM   #1
hiyoungin
Junior Member
hiyoungin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2019
Device: RIDIPAGE
How to use "search_replace" code in advanced fetch news mode??

I want to use Search & Replace function during fetching the news.

When I try to convert the book, I can activate the search and replace function.
I also can check it out in "job details" ,like "search_replace: '[["\x20", "  "]]'." code in it.

I don't know how to use python because I am not programmer at all.
But I googled so many threads and tried to use python code.
However, it keeps showing ' 'search_replace': None,' in job details.
I couldn't find the solution..

Would you please help me to find the way how to put the code of search&replace from '\x20' to'&nbsp: ' while fetching news to the advanced recipe?
hiyoungin is offline   Reply With Quote
Old 02-24-2019, 06:37 AM   #2
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You use conversion_options in the recipe

Something like


conversion_options = {'sr1_search': 'X', 'sr1_replace': 'Y'}
kovidgoyal is online now   Reply With Quote
Advert
Old 02-24-2019, 08:08 PM   #3
hiyoungin
Junior Member
hiyoungin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2019
Device: RIDIPAGE
Thumbs up Thank you so much! It totally worked.

Actually Kindle App on Android or iPhone has a bug in which Korean letter's word spacing between the letters are totally ignored when sending docs by send to kindle function.
Your solution fixed the whole problem.
Thank you so much!
hiyoungin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"The Hindu" Fetch News Builtin Recipe Not Working gids Recipes 1 01-13-2017 07:09 AM
How do I remove things like "Fetch News" from my calibre? 20LEgend Calibre 3 03-02-2012 03:29 PM
how do i fetch news with "en" tagged as language - kindle3 schuster Recipes 0 05-09-2011 06:51 AM
Caliber 0.6.12 - "Fetch News" problem berniej Calibre 13 09-19-2009 10:39 AM
Questions on libprs500 "fetch news" function SpiderMatt Calibre 10 12-07-2007 04:17 AM


All times are GMT -4. The time now is 09:21 AM.


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