01-12-2020, 07:56 PM | #1 |
Enthusiast
Posts: 47
Karma: 12544
Join Date: Jul 2018
Device: None
|
Feature Request: regex processing of content ([\x80-\xff])
I have two feature requests :-)
Feature Request #1 Add a big scary EXPERT tab to the far left within convert book window... on this tab, include a "notepad++ like" capable advanced regex search/replace processing to the original file formats [only formats where applicable in npp] such that when converting compatible file types, said regex search/replace also occur. (Perhaps include in the convert job logs the names of files that matched regex when converting?) Feature Request #2 Similar to Feature Request #1 above. Add a separate advanced content regex tab to the bulk-edit window native Calibre regex search/replace of the content of the file types that are compatible with text editors (such as notepad++)? Imagine I can select twenty three titles that need to be regex fixed... without the export/delete/import process? Why I ask for this: I recently ran into a problem that could only be solved by regex search/replace of original content (text file format... although this could also apply to html format as well). Problem: ENF (among other plugins) stopped working reliably with Solution: 1) Remove all converted formats of affected titles 2) Export all affected titles in their original TXT files 3) Remove all affected titles from library 4) Notepad++ regex search for "([\x80-\xff])" and replace with <<blank>> against directories w/ exproted text files 5) Import fixed txt files 6) Reconvert txt files to epub 7) Re-run plugins against newly reconverted epub files |
01-12-2020, 09:00 PM | #2 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There already is search and replace with regexes in the conversion and bulk metadata dialogs.
|
Advert | |
|
01-19-2020, 02:42 AM | #3 |
Enthusiast
Posts: 47
Karma: 12544
Join Date: Jul 2018
Device: None
|
But... bulk-edit search/replace regex... does not apply to the _content_ of the file being converted to epub. Am I mistaken? Can I use this regex against the original text file (or docx or html) file I input to the library?
|
01-19-2020, 03:50 AM | #4 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No it does not apply to the input document, only to the output document. but if you want a docx with that change do a docx to docx conversion. then you will have both the original and the changed docx.
|
01-19-2020, 03:53 AM | #5 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Anything you put on the "Search & Replace" if the conversion is run against the contents of the input document. It doesn't change the source document, only what goes into the converted document.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Processing Content | booklover6 | Kobo Reader | 3 | 02-15-2015 06:58 PM |
Feature Request: content server / limit new books | domax64 | Calibre | 3 | 12-15-2014 09:11 AM |
Bug in Kobo processing of epub files causing hang in "Processing content" | BensonBear | Kobo Reader | 21 | 12-21-2012 05:47 AM |
Processing new content after FTP | Darth_Bane | Kobo Developer's Corner | 1 | 07-25-2012 02:13 PM |
Feature Request: Customising metadata.calibre file content | mornington | Calibre | 5 | 12-22-2010 05:51 AM |