07-22-2014, 09:58 PM | #76 |
Sigil Developer
Posts: 7,658
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
It is official ... user_none has added the new preserve entities patch to Sigil's github trunk. I still need to find and fix tidy to stop it from making svg single image into empty pairs since that freaks out kindlegen. If anyone else has any minor changes they need to related to tidy, let me know and I will try to track those tidy issues down at the same time I am tracking my own. KevinH |
07-22-2014, 10:49 PM | #77 |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there any way to fix Sigil so there is an option to leave the structure of the ePub alone without changing it?
|
Advert | |
|
07-22-2014, 11:41 PM | #78 |
Sigil Developer
Posts: 7,658
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
You would have to be much more specific. Exactly what structure are you talking about? Please provide concrete examples of something Sigil changes when tidy is off, that you think it should not. Please note that Tidy itself makes many changes to make the code at least be technically correct ... no improperly nested tags, no missing end tags, etc. Those changes must be made so that wysiwyg editing has some chance to be successful. KevinH |
07-23-2014, 08:16 AM | #79 | |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 07-23-2014 at 08:28 AM. |
|
07-23-2014, 08:59 AM | #80 | |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
OEBPS/Styles OEBPS/Images OEBPS/Fonts OEBPS/Text So even if you have it structured how you want it, Sigil will change that to what it wants. I want an option to allow the structure to remain as is. |
|
Advert | |
|
07-23-2014, 09:36 AM | #81 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(You can test this with my pageList test file from the KindleUnpack thread.) I understand that changing the NCX code so that it'll preserve existing <pageList> nodes isn't really worth the effort, since hardly anybody is using pageLists anyway, but it would be nice to have Sigil at least display a deletion warning if the user selects Generate Table of Contents... from the menu and the .ncx file contains <pageList> nodes (or other non-TOC nodes). Last edited by Doitsu; 07-23-2014 at 09:38 AM. |
|
07-23-2014, 09:37 AM | #82 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
07-23-2014, 10:48 AM | #83 | |
Sigil Developer
Posts: 7,658
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Why?
I can understand how not touching the xhtml makes it easier to edit in CodeView and helps the person creating the ebook. But what does the layout of the epub zip structure have to do with it? It will not be seen and does not impact your ability to find and edit files in Sigil, since the gui handles that. You need to ask yourself: "Is this really truly important in the big scheme of things?" If so why don't you simply create a repackager program in python that moves things to the format you want, updates the opf, and the relative links. It is not that hard to do. Since I am already volunteering my time in a number of projects, I was only looking to handle serious bugs inside of Sigil and things that impact getting real work done, and not things that could be handled in post processing. Sorry, KevinH Quote:
|
|
07-23-2014, 10:56 AM | #84 | |
Sigil Developer
Posts: 7,658
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi Doitsu,
My guess is, it assumes that when it says "regenerate" it, you already know it will throw out everything there and build a new one by parsing for titles in each xhtml page, and the contents of h1, h2, etc, tags. But not everyone thinks of "regeneration" in the same way. So, I agree, if the ncx exists, it should warn you that everything in the ncx will be lost upon regeneration and ask you if you want to continue. That is something I can look creating a patch for when I get some free time. Take care, KevinH Quote:
|
|
07-23-2014, 11:18 AM | #85 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Ideally, Sigil should only display the warning if the .ncx contains content that Sigil cannot automatically generate. E.g. if a Calibre generated .ncx file contains TOC links to non-heading tags or manually added pagelist nodes. Otherwise Sigil users who don't use pagelists, but like re-generating the TOC as they add new content to a book might get upset about Sigil warning them that generating the TOC will overwrite the existing .ncx file. I.e., if you display the warning indiscriminately, some users will most likely request a patch that suppresses this warning. As I've said, this is a nice-to-have feature that very few users will benefit from and should only be implemented if it can be done with minimal code changes and without alienating the majority of Sigil users. |
|
07-23-2014, 11:25 AM | #86 | |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Sigil has a single OEBS folder structure (Text, Images, Styles) You can NOT import multiple HTML safely with any overlapping path filenames because Sigil flattens the import, then shoves those into the above structure. All filenames must be unique to survive a Sigil import. |
|
07-23-2014, 11:27 AM | #87 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I think it makes sense regardless to not show this warning all the time, and allow people to ignore it.
calibre, for instance, allows on pretty much any warning popup to check a box "Don't show this message again". At the very least, it could be shown only the first time in each session. |
07-23-2014, 11:38 AM | #88 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Unlike everyone else, it seems, I would be in favor of a warning that I am going to knock out an existing file so I get a chance to save myself from myself.
|
07-23-2014, 11:52 AM | #89 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Don't let any Negative Nancies suck your soul! The entities patch sounds fantastic. I personally only go from a big list of entities -> unicode char, and I set up a large group in "Saved Searches" to handle all of the ones I come across. The oddities I have not included deserve closer inspection (might be an OCR mistake, or typo, or something else). |
|
07-23-2014, 12:02 PM | #90 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
Tags |
crashes, mavericks, osx 10.9.4, sigil 7.4 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.7.4 on Maverick crashing | Geoff_C8 | Sigil | 6 | 01-17-2014 01:40 AM |
Sigil keeps crashing | kksdragons | Sigil | 18 | 11-14-2013 06:20 AM |
Sigil is crashing in Windows | lindaw2396 | Sigil | 4 | 04-22-2013 05:42 PM |
crashing and crashing | bookjunky | Calibre | 2 | 01-16-2011 05:59 PM |
0.7.9 crashing on OS X? | riverteeth | Calibre | 7 | 07-21-2010 11:02 AM |