Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2014, 09:58 PM   #76
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: 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
KevinH is online now   Reply With Quote
Old 07-22-2014, 10:49 PM   #77
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: 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?
JSWolf is offline   Reply With Quote
Advert
Old 07-22-2014, 11:41 PM   #78
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: 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.

Quote:
Originally Posted by JSWolf View Post
Is there any way to fix Sigil so there is an option to leave the structure of the ePub alone without changing it?
KevinH
KevinH is online now   Reply With Quote
Old 07-23-2014, 08:16 AM   #79
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: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
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
I think he's talking about the structure of the zip archive itself. Sigil silently rearranges all archives into a homogeneous folder hierarchy (regardless of Tidy settings). Has always done so. From what I've seen ... way too much of what Sigil does is predicated on that specific hierarchy being present to be able to easily "fix" it. That would require an overhaul IMO.

Last edited by DiapDealer; 07-23-2014 at 08:28 AM.
DiapDealer is online now   Reply With Quote
Old 07-23-2014, 08:59 AM   #80
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: 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:
Originally Posted by KevinH View Post
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
What Sigil does is it moves the files around to it's own idea of where they belong.

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.
JSWolf is offline   Reply With Quote
Advert
Old 07-23-2014, 09:36 AM   #81
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
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.
I don't know if Sigil uses the XML version of Tidy when generating/formatting the .ncx file, but I've noticed that it'll delete manually inserted <pageList> nodes if the user regenerates the NCX TOC via Generate Table of Contents...
(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.
Doitsu is offline   Reply With Quote
Old 07-23-2014, 09:37 AM   #82
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by JSWolf View Post
What Sigil does is it moves the files around to it's own idea of where they belong.

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.
Use calibre. Don't expect Sigil to turn into calibre ebook-edit -- there'd be no point in having it.
eschwartz is offline   Reply With Quote
Old 07-23-2014, 10:48 AM   #83
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: 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:
Originally Posted by JSWolf View Post
What Sigil does is it moves the files around to it's own idea of where they belong.

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.
KevinH is online now   Reply With Quote
Old 07-23-2014, 10:56 AM   #84
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: 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:
Originally Posted by Doitsu View Post
I don't know if Sigil uses the XML version of Tidy when generating/formatting the .ncx file, but I've noticed that it'll delete manually inserted <pageList> nodes if the user regenerates the NCX TOC via Generate Table of Contents...
(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).
KevinH is online now   Reply With Quote
Old 07-23-2014, 11:18 AM   #85
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
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.
Thanks for looking into this!

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.
Doitsu is offline   Reply With Quote
Old 07-23-2014, 11:25 AM   #86
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by KevinH View Post
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
DiapDealer has it.

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.
theducks is offline   Reply With Quote
Old 07-23-2014, 11:27 AM   #87
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 07-23-2014, 11:38 AM   #88
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 07-23-2014, 11:52 AM   #89
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
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.
Keep up the good fight.

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).
Tex2002ans is offline   Reply With Quote
Old 07-23-2014, 12:02 PM   #90
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by mrmikel View Post
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.
Wrong, I am in favor as well.

Although it should be able to be suppressed.
eschwartz is offline   Reply With Quote
Reply

Tags
crashes, mavericks, osx 10.9.4, sigil 7.4


Forum Jump

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


All times are GMT -4. The time now is 08:36 AM.


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