![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 150390
Join Date: Nov 2011
Location: Pacific NorthWest
Device: Kindle Fire
|
Bug? No --search-replace processing in Windows
Forgive me if this has been covered; there's also a bug in the forum software, that a search for --search-replace finds so many threads without the string that it's useless.
ebook-convert src.pdf dest.mobi --search-replace convert_regex.txt --enable-heuristics -d debug -v -v > out.txt Never processes, and never shows an error. The out.txt includes: 'search_replace': '[]', 'series': None, 'series_index': None, 'share_not_sync': False, 'smarten_punctuation': False, 'sr1_replace': '', 'sr1_search': '', 'sr2_replace': '', 'sr2_search': '', 'sr3_replace': '', 'sr3_search': '', the regex file is two lines, the first is: <a id=\"\d{1,4}\"></a><b>G.*</b> The second is, as documented, blank. And it is UTF-8 encoded. Any ideas? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works for me (although I tried on linux not windows) Is the convert_regex.txt file in the current directory? Try specifying the full path to it.
Although there should be an error in the log if it fails to find the file. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 150390
Join Date: Nov 2011
Location: Pacific NorthWest
Device: Kindle Fire
|
The convert_regex.txt file is in the cwd, and I did try the full path also.
It's the lack of a logging error that stymies me. It's as if the parameter wasn't specified at all. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regex in search problems (NOT Search&Replace; the search bar) | lairdb | Calibre | 3 | 03-15-2017 07:10 PM |
Calibre 2.25 Bug in Convert Book Search and Replace Linux Mint 17 | gbm | Conversion | 2 | 04-24-2015 10:20 AM |
save multiple search/replace, or search/replace multiple ebooks | user743 | Editor | 12 | 04-12-2014 02:38 AM |
Bug in Kobo processing of epub files causing hang in "Processing content" | BensonBear | Kobo Reader | 21 | 12-21-2012 05:47 AM |
Search and Replace - possible bug? | PL_kolek | Conversion | 2 | 11-01-2012 06:56 AM |