Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2017, 06:37 AM   #1
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
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
Attached Files
File Type: txt A Child Looked Back - Flopsy.txt (4.7 KB, 116 views)
File Type: epub A Child Looked Back - Flopsy.epub (4.9 KB, 135 views)
Tanjamuse is offline   Reply With Quote
Old 04-24-2017, 05:09 AM   #2
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
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
Tanjamuse is offline   Reply With Quote
Advert
Old 04-24-2017, 08:47 AM   #3
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,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.
kovidgoyal is online now   Reply With Quote
Old 04-24-2017, 10:12 AM   #4
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
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.
The reason I would much prefer this to be deleted in conversion is that I have a lot of files to go through 20.000+ and that would be very tedious to do.

Thanks to all who looked at my first question.
Tanjamuse is offline   Reply With Quote
Old 04-25-2017, 02:20 AM   #5
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
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.
Tanjamuse is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:20 AM.


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