Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2020, 01:51 PM   #1
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Add existing file error

I have just installed the latest Sigil version 1.3.0. Whenever I try to add a particular .xhtml file nothing happens. On a second attempt I get a message saying that the file already exists in the book even though the window shows only the default code. Any ideas? Ultimately, I just had to copy and paste the file in the window and no errors were at any stage detected.
Derek R is offline   Reply With Quote
Old 10-20-2020, 01:57 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try renaming it. Maybe it's because it's the same name as existing file.
JSWolf is offline   Reply With Quote
Advert
Old 10-20-2020, 02:07 PM   #3
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Thanks, but no, it doesn't want to load, even renamed. Other .xhtml files that I've loaded in the past (presumably successfully) are returning coding errors, but this one file won't load at all.
Derek R is offline   Reply With Quote
Old 10-20-2020, 02:15 PM   #4
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Okay, I got it to load as an html file rather than a xhtml extension. I'm really a bit confused about the difference to be honest. But presumably it is fine to create epubs from html files anyway?
Derek R is offline   Reply With Quote
Old 10-20-2020, 03:56 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
No, epub needs xhtml but you can modify html to work.

That said, I could not follow what problem you are reporting.

Which Window shows only the default code? Re youtalking the BookBrowser or some other Window.

My guess is you are using a non-standard layout and the file was loaded, just not where you expected it to be.
KevinH is offline   Reply With Quote
Advert
Old 10-20-2020, 04:25 PM   #6
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Hello, Kevin, I was talking about the main window that shows the code for the book. When you say you can modify html to work, what exactly do you mean? What I have done historically is to create an html file, wrap it in the basic xhtml doctype and tags -

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>

<body>
<p>my html here</p>
</body>
</html>

- save it as an xhtml file extension and then add it as an existing file in Sigil.
Am I doing something fundamentally wrong this way?
Derek R is offline   Reply With Quote
Old 10-20-2020, 04:41 PM   #7
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
PS I have just had my file validated on WC3 and yet it will not appear in Sigil by adding it as an existing file. Very odd.
Derek R is offline   Reply With Quote
Old 10-20-2020, 05:09 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Are you saying it does not Appear in the BookBrowser window at all?
KevinH is offline   Reply With Quote
Old 10-20-2020, 05:14 PM   #9
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,582
Karma: 14328510
Join Date: Nov 2019
Device: none
I don't know why you're having a problem but what I do, which should sidestep it, is in Sigil's Book Browser right click and select Add Blank HTML File. Then replace the <p>(space entity)</p> line with everything between the two body tags in the file you're adding, copying the text from notepad or whatever. Ctl-C everything between the body tags in the original file, then in Sigil Ctl-V after selecting that <p>(space entity)</p> line (click on its line number). That ensures that you get a well formed html file up to the body tag.
hobnail is offline   Reply With Quote
Old 10-20-2020, 05:44 PM   #10
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
No, doesn't show up at all for whatever reason
Derek R is offline   Reply With Quote
Old 10-20-2020, 05:47 PM   #11
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Yes, that is how I got around it too, but I'm still puzzled as to why it can't be added as an existing file. I didn't have this problem in previous versions and not being able to easily toggle between the code and book views is a bit of a backward step.
Derek R is offline   Reply With Quote
Old 10-20-2020, 05:56 PM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What is the exact name of the existing file you are trying to add? Can you show us a screenshot of the Book Browser window before you try to add the existing file (named above).
DiapDealer is offline   Reply With Quote
Old 10-20-2020, 06:26 PM   #13
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Okay, thanks to your questions I did a bit of further testing and after several trials I discovered that the file would import under a different name, as JSWolf initially suggested. I have no idea what the glitch was with the original file, but there you go. Thank you for helping out with this.
Derek R is offline   Reply With Quote
Old 10-20-2020, 10:25 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
There is no such thing as a glitch. As DiapDealer said we need to know the exact name of the file you tried to add that gave you trouble. And a screenshot of the BookBrowser Window both before and after.
KevinH is offline   Reply With Quote
Old 10-21-2020, 02:44 AM   #15
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Kevin, first, I haven't used Sigil in quite a while so hadn't realised that an added file wouldn't automatically open in the code window. The name of the wayward file is whats-the-best.xhtml. However, when I pasted the body contents into a new document with the xhtml doctype and tags and saved it as test.xhtml the file imported without a problem. I've been unable to figure out how to upload images from my PC for this reply, but I assure you that the before and after images are identical and the file does not appear in the Book Browser file directory under Section0001.xhtml. But when I attempt to add the file again I get the message "Unable to load 'whats-the-best.xhtml' A file with this name already exists in the book". At least I know now how to proceed if the issue happens again. Many thanks.
Derek R is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre, version 4.2.0 ERROR: No existing library found: There is no existing library Alastair1646 Library Management 1 10-28-2019 09:26 AM
Sigil crashes when trying to add existing file holdit Sigil 18 07-16-2013 06:59 AM
Fonts - can't 'add existing file' spinningdoc Sigil 6 05-27-2012 03:09 AM
[Old Thread] import library or export to single file add to existing library PCreighton Calibre 4 04-10-2011 01:08 AM
Add the Commments in meta data to an existing LRF file mgrunk Calibre 3 07-26-2009 12:35 PM


All times are GMT -4. The time now is 04:22 AM.


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