03-31-2012, 07:51 AM | #46 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But "Add Existing File" does correct internal links in CSS and for image files. I do it all the time. I haven't tested with your example, but maybe it's just not adjusting the xlink:href on SVG image statements after importing the image. Maybe a bug. UPDATE: Even the SVG image statement worked for me as expected using Add Existing File. It imported the image and properly corrected the xlink:href attribute. Just like File Open does. *shrug* But regardless... I agree that if it's working in a way that people are relying on, it shouldn't be messed with. Last edited by DiapDealer; 03-31-2012 at 08:30 AM. Reason: updated after testing |
|
03-31-2012, 08:22 AM | #47 | |
Imperfect Perfectionist
Posts: 464
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
Regards, Kim |
|
Advert | |
|
03-31-2012, 12:38 PM | #48 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
04-04-2012, 02:51 PM | #49 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Can you be more specific about what you mean by the first 'import' (open/add of same file/new file) and what works the first time then doesn't? If you have a sample zip of some file/css/images that'd help.
This is one of the reasons the consideration of Open came up. If you "Open" an HTML file, the metadata is loaded, but if you "Add Existing" an HTML file, the metadata is ignored (but the code originally suggested this should work so questions were asked). This appears to be reasonable behaviour, if undocumented. It might be that changing it so that "Add Existing" should load metadata as well - but that would have to avoid overwriting existing data and it may not be what people are expecting? Thoughts on whether it should behave as is, or be looked at to make "Add" also import metadata? As for correction of links behaving differently, I need to look into this more to compare Open/Add and initial load/subsequent loads. There was a bug about removing filenames that has a fix, but has to be checked using Open/Add to avoid breaking something, and it may or may not be related to the css/image linking mentioned above. |
04-04-2012, 03:43 PM | #50 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
what I mean is that the CSS reference is fixed on the first import but not subsequently. As the first time the CSS is copied as well but not afterwards and for that reason the CSS location in the html file is not fixed. I can't remember what else is different.
|
Advert | |
|
04-04-2012, 07:01 PM | #51 | ||
Cynic
Posts: 75
Karma: 51078
Join Date: Feb 2012
Device: Kindle
|
Quote:
Quote:
I don't know xhtml from qwhtml. I'm just seeing an easy fix to a possible problem and a lot of people "bound and determined" to maintain the status quo. |
||
04-04-2012, 07:16 PM | #52 | |
Grand Sorcerer
Posts: 5,185
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
Quote:
Presumably the difference is in options that aren't particularly relevant to most ebooks. |
|
04-04-2012, 07:43 PM | #53 | |
Cynic
Posts: 75
Karma: 51078
Join Date: Feb 2012
Device: Kindle
|
Quote:
I don't really know if it is "kosher" to paste text into the Sigil window. Nor do I know how I would look it up. At any rate, I have done it with varying results. Taking text from a separate document with no font formatting other than bold chapter headings, I am seeing odd displays of font. Some normal (not header) lines are bold, some are not, some are sized larger than others - a variety. This is part of what I referred to earlier as quirky. This next probably doesn't sound "similar" to you as programmer, but it is similar in screen appearance. Sometimes when I load an HTML file and start putting Header1 "marks" in, it ends up with the headers (Chapter 1 etc.) in the same font and size as the text only bolded. Sometimes I lose the header mark and have to set it again - whereupon the header font jumps up 2 or 3 sizes. Other times, when loading an HTML similarly and adding header1's the end result of it will be that the header font pops up in 16 or 20 size. "Remove formatting" the header makes the font smaller, but does not take it down to match the normal text font size. (I don't really know what remove formatting is actually supposed to do, because searching Helps gives me nothing.) These mixed results with fonts makes things pretty iffy/quirky. How do I know what will come out of it in the end if it varies on the screen? Last edited by JimLL; 04-04-2012 at 07:47 PM. Reason: clarifying |
|
04-04-2012, 07:48 PM | #54 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And your snarkiness on the topic seems utterly disproportionate to the issue at hand. Want html? Use an html editor. Want an epub? Use an ePUB editor. Conflating them simply confuses the issue. In the alternative, maybe you'd be happier with Jutoh or Calibre, or, I suspect, AWP (Atlantis Word Processor). Then you really don't need to use html at all. Lastly, you haven't explained, at ALL, why saving as an ePUB--which is nothing more than a bunch of zipped xhtml/html files--is such a big problem for you. So you save as an ePUB and keep working in Sigil? What, exactly, is the actual issue that this causes for you? You don't have to "go back to the original html" at all, after saving the epub, so, can you explain why this is so problematic? Save and keep editing. if you need to extract the file and put it back in an html editor, for whatever reason, simply explode the epub and grab the file you need and drag it into your html editor, OR, work in Sigil, OR, work in "tweak ePUB" in Calibre, depending upon your skill level. I don't think anyone understands--I certainly don't--why you find saving the file as an ePUB such a large hurdle, or how it negatively impacts your workflow. Good luck. Hitch |
|
04-04-2012, 09:46 PM | #55 | |
Cynic
Posts: 75
Karma: 51078
Join Date: Feb 2012
Device: Kindle
|
Exactly what is unreasonable about a couple lines of code that will do what I explained could be a backup to epub?
Quote:
|
|
04-04-2012, 09:53 PM | #56 |
Cynic
Posts: 75
Karma: 51078
Join Date: Feb 2012
Device: Kindle
|
I haven't read this whole board, because I'm a slow reader and a quick forgetter. But I don't know what you mean by having problems loading HTML. Does something bad happen if there is no X on it? Is there something great added if you do put X on it? Is there a notice in Sigil somewhere telling about that? Or are you left in the dark if you aren't an old timer here?
|
04-04-2012, 10:12 PM | #57 | |
Cynic
Posts: 75
Karma: 51078
Join Date: Feb 2012
Device: Kindle
|
1. If you don't know that things happen with computers, you haven't been in it very long.
Quote:
3. Sigil DOES have a quirky display. But I guess that's because it's free. 4. FREE? I made my donation before I ever posted here. I guess that's so problematic too. |
|
04-04-2012, 10:36 PM | #58 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
@jimLL
html is a component of EPUB. Your complaint is like expecting the chips that were soldered on to the Motherboard to still be just 'chips' afterwards. They are not, they are now part of something bigger (and hopefully better). Why are you not complaining about being able to save as a JPG? You can add Pictures to your Sigil EPUB. Notepad++ is a Free HTML (and other) code editor if you need one. I was never satisfied with the WYSIWYG editors when I started playing with HTML(3), and never bothered since, to try and use them for my main editing mode. Sigil allow me to (mostly) check my work and is a convenient way to break or join paragraphs. For all else, I usually work in CV. Last edited by theducks; 04-05-2012 at 10:46 AM. Reason: typo |
04-05-2012, 01:57 AM | #59 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Various people have explained several times that the reason is that Sigil is an ePUB editor, not an HTML editor. To make it more easy for its users, Sigil allows import of HTML. After the import, the HTML is essentially gone. It is part of the ePUB. And, don't forget, since usually an ePUB contains several XHTML files, which one to autosave? Autosave of the ePUB is very hard to do, since Sigil only allows structurally correct ePUB's. Due to the fact that ePUB is very flexible, it is very easy being temporary in a state where the ePUB is not structurally correct because you are working on the file. I think it is one of the strong points that Sigil only allows to save structurally correct ePUB's and I would definitively not have it sacrificed for an autosave. That being said, the other point you mention is about layout and copy/paste. Copy/paste from one program to the bookview of Sigil can be cumbersome. The results may not be what you want. I don't know why, but I assume there are several reasons for that. I use (x)HTML as input. If you change text to headers or back to text in bookview will cause Sigil to use the defined stylesheet for the layout. If you have not assigned a stylesheet, the default HTML style is applied for headers and so on. Those are the same as in browsers. If you want to change the layout, change it in a stylesheet and apply that stylesheet. As far as I know, that can only be done in Codeview. |
|
04-05-2012, 07:02 AM | #60 |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Using Sigil is like baking a cake, you assemble the ingredients (html/stylesheets/images/fonts) and output a cake (epub), when you made a cake, you can't usually then get the ingredients back.
But if you really want the individual html (that has been altered to work IN the epub) you can open the epub with a zip program and extract the relevant files, any html etc will be altered to have any links etc. relevant to other files as though it was in a structured epub, NOT as if it was a flat html. Does that make sense? Saving as html from Sigil is irrelevant and would cause further bug/error reports which aren't Sigil's fault because the files are to be used INSIDE an epub. If you want backups, just store a copy of the WHOLE epub somewhere else, then none of the individual components can't get lost/overwritten. It made sense when I was writing it |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iRiver Story HD robustness | gcobb | iRiver Story | 0 | 08-18-2011 04:26 PM |
DR800: robustness | alexxxm | iRex | 13 | 08-10-2010 04:17 AM |