Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2020, 05:41 AM   #1
jjk
Enthusiast
jjk began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
Request cloning html file

Hello Kovid
Rather often I'd like to have the possibility to clone one or more html files, because some of my epubs are based on an html template.
Currently I have to proceed in 3 or 4 stages : 1) select the source file, 2) export them, 3) import them 4) optionnaly, finally rename target files.

Could you add to the editor the possibility to clone html files ?
TIA

Best regards
jjk is offline   Reply With Quote
Old 11-09-2020, 07:51 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: 43,975
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ctrl+a then ctrl+c then create new file and ctrl+v
kovidgoyal is online now   Reply With Quote
Advert
Old 11-09-2020, 08:25 AM   #3
jjk
Enthusiast
jjk began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
Thanks Kovid.
But when before doing ctrl-v I have to select new file content to replace it. And then, I get errors in lines
Code:
<link href="css/myCSS.css"
<img src="image/myImg.jpg"
Error message is : "That link goes to a file that is not present in the book " or so (translated from french).
So I have to correct them in
Code:
<link href="../OEBPS/css/myCSS.css"
<img src="../OEBPS/image/myImg.jpg"
Why do I get those errors ?

And,so, there are many handlings. But I understand that perhaps my request is too unusual to deserve much work from you.

Anyway, cheers for your work

Best regards
jjk is offline   Reply With Quote
Old 11-09-2020, 09:14 AM   #4
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: 43,975
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ctrl+a and then ctrl+v

As for links, make sure your new html file is in the same sub-folder as the one you are cloning.
kovidgoyal is online now   Reply With Quote
Reply

Tags
editor


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help converting file from HTML>EPub. File is divided in several pages I want to merge leito360 Conversion 6 02-19-2016 12:31 PM
Merging multiple HTML files into one HTML file skoobwoman Workshop 45 07-11-2014 10:46 AM
HTML input plugin stripping text within toc tags in child html file nimblebooks Conversion 3 02-21-2012 03:24 PM
Convert HTML to MOBI (HTML recognized as ZIP file) pdubois Conversion 1 01-25-2011 12:55 PM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 09:15 PM


All times are GMT -4. The time now is 11:27 AM.


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