![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
TXT to EPUB - Search and Replace Help Needed
I want to wrap all URL’s in a text file in HTML <a href> tags.
I did it manually to the attached ePub (output of TXT->EPUB conversion) using the calibre editor, but I’d like to automate it in conversion. In addition, is there some way, other than by using the Book Editor, to suppress the creation (or to remove) first html file in the ePub – the one before the file that starts Chapter 1. Tanjamuse |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
If it makes a difference, then I don't mind converting them to Epubs first and then do another conversion for the S&R.
I hope someone has some inputs. Thanks |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not sure what you are asking for. What's preventing you from using the search and replace function in the conversion dialog?
As for removing the first file -- remove the ocrresponding content in the TXT file and it will not be created. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
The only thing I'm now asking for is a way to delete all the following from every file before converting. I don't care if I have to do a double conversion or something like that.
Code:
A Child Looked Back by Flopsy Category: Joey Language: English Status: Completed Published: 2005-10-15 Updated: 2005-10-15 Packaged: 2013-05-23 09:34:16 Rating: K Chapters: 1 Words: 824 Publisher: www.fanfiction.net Story URL: http://www.fanfiction.net/s/2620848/1/ Author URL: http://www.fanfiction.net/u/571403/Flopsy Summary: When she looked at the man before her all understanding of who she was and what she wanted was lost. A Jolex story. Please RnR. Thanks to all who looked at my first question. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I'm sorry if I haven't explained myself well enough, didn't think you needed to know why I no longer needed to wrap some of the text in HTML.
I've discovered that I can import all the information via the Import List plugin. That gives me all the metadata I needed. The only thing that's left is that I would really like a way to automatically delete all the text I've posted above in the conversion. It doesn't matter to me if I have to convert them from txt to something else first. Because it would still be much easier than having to delete that from 20.000+ books. I hope someone has some ideas if this is possible. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |
Mass search and replace word in epub | Fangles | Library Management | 4 | 07-26-2016 05:23 PM |
save multiple search/replace, or search/replace multiple ebooks | user743 | Editor | 12 | 04-12-2014 02:38 AM |
search and replace - drops blanks in replace ? | cybmole | Conversion | 10 | 03-13-2011 03:07 AM |
Eco Reader - urgent help needed - unable to read Chinese txt | PinkTissue | HanLin eBook | 18 | 05-01-2010 03:02 AM |