![]() |
#46 | |
Connoisseur
![]() Posts: 72
Karma: 10
Join Date: Nov 2012
Device: none
|
Quote:
I'm not suggesting a line by line comparison now, but when we get more info and a clear picture, it may become necessary to know what changed. I hope not because it is a lot of work for a non-critical glitch. |
|
![]() |
![]() |
![]() |
#47 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
|
I have occasionally seen this problem, not frequently enough to pin down the exact cause regrettably.
Currently running Sigil 0.8.2 on Windows 7 64-bit. I have only seen this problem when creating an epub from a scanned pbook which has then been edited and cleaned up in an external editor. I have a number of template html files which define standard elements of an ebook (front cover, title page, colophon...) and a number of pre-defined chapter layouts. I have separate stylesheets for each pre-defined element. The workflow process I have been using when this problem occurs is: - Import some pre-defined html files into a new Sigil document; - Import the corresponding pre-defined css files into the document; - Link the stylesheets to the html templates; (At this point, the styling applied to each html template is visible and working) - Select which of my pre-defined html files I will use as a chapter template for the current document; - Delete the unwanted html and the unwanted css files. Sometimes, the css files which I have retained are still present in the epub, but the content has been deleted - opening the stylesheet reveals a blank page. This is of course discovered when the formatting for a particular template suddenly reverts to bog-standard. I have not been able to consistently reproduce the behaviour. I don't find it to be a showstopper - I just copy/paste the missing css back into the blank stylesheet and save the epub pdq. I have a suspicion that this may occur, inconsistently, if a new Sigil document has css files deleted from it before it has been saved for the first time, however the frequency of occurrence is so low that the little b*****d of a problem has defeated my efforts to trap it. |
![]() |
![]() |
Advert | |
|
![]() |
#48 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you read that post I sent carefully, I think you'll find that the OP was able to overcome the problem by reinstalling and reconfiguring the Comodo Firewall. And the OP did have a repeatable scenario. IIRC The Windows Explorer replacement instance was also solved with a reinstall & reconfigure. BR Last edited by BetterRed; 03-24-2015 at 06:15 PM. |
|
![]() |
![]() |
![]() |
#49 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Run Windows bare on an open (to the outside) network ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#50 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@theducks - at the time if writing - off line on a bus - Comodo & Avast hadn't been posted, only your AVG. Would have thought my phrasing indicated I didn't believe what I saw - mayhap too subtle for literalists
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,316
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#52 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,318
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
OH NO!!!
It just happened again. CSS blanked.... I Guess I can go back to my workaround again! Working with Sigil 8.4... yadda yadda (Windows 8.1, Firefox, windows explorer, and skype) I was almost done with the book...already had styles.css imported and edited...I "Generated the table of contents" then realized I had not imported the sgc-toc.css so I did that. Then "created HTML toc". The toc appeared formatted correctly per my imported sgc-toc file. I went in and manually edited some of the titles in the toc.html, then manually edited some of the titles in the toc.ncx (to match the toc.html). In the preview pane the formatting for the toc appears as I had formatted it...but it was just a stale view. The toc file had closed itself from the code view and the sgc-toc.css file was still in the book browser section...but completely blank. I re-opened the toc.html and all my manual edits were still there...and the file was still properly linked to the sgc-toc.css....just no formatting since the css file was blank. I had not saved the book from the point right before importing the sgc-toc.css file. Here's my sgc-toc.css template if anyone thinks that will help: Spoiler:
-- Hope that helps! Last edited by Turtle91; 03-25-2015 at 12:27 AM. |
![]() |
![]() |
![]() |
#53 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#54 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Can I ask why you do that the way you do (importing a css file named sgc-toc.css)? If you want to use a template for the sgc-toc.css file, I suggest either 1) placing your template sgc-toc.css in your Sigil preferences directory: which will then automatically be added to your epub whenever generating an HTML toc ... ... or 2) saving your template css file under a name other than the name used by the the auto-generation routine. You can then link the new css file and remove the link to the sgc-toc.css file. The first method seems custom tailored to your needs. That's exactly why, in fact, the ability to have a template sgc-toc.css in the Preferences directory (which gets autoimported) was added to the Create HTML ToC feature in the first place. It doesn't excuse the bug, but I believe you're probably tempting fate by having a pre-existing sgc-toc.css file (in an unsaved state) in a Sigil epub when running a routine that also wants to create an sgc-toc.css file -- under certain situations that may be causing race conditions. Last edited by DiapDealer; 03-25-2015 at 10:29 AM. |
|
![]() |
![]() |
![]() |
#55 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
A side note: ( I do not always Generate a HTML TOC)
Generate HTML TOC was (?) a problem for me in that it it almost always CRASHED Sigil just as it was painting the screen with the TOC file. (Stock operation, no custom CSS on Windows 7 and XP) Conditions for a 99.9% no crash: Fresh session, no edits/deletions/adds (or splits) Conditions for a crash: unknown combination of ![]() |
![]() |
![]() |
![]() |
#56 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,318
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
.... .... ![]() I'm a creature of habit and hadn't thought about that... ![]() ![]() Although I did it for my "add cover" template....OK...done now. Thanks for the prod...lol |
||
![]() |
![]() |
![]() |
#57 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Another reason I may have never experienced this before is that I almost never import/add css files to a Sigil epub by themselves. I typically only add (x)html files. Those (x)html files already have linked-in resources (css and images) that automatically come along for the ride. Or I create blank css files and paste contents to it from somewhere else (that, and I tend to save like a maniac ![]() |
|
![]() |
![]() |
![]() |
#58 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,493
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I have now recreated this on current Sigil master.
1) Open Sigil (default document is present) 2) File->Add->Existing Files - Move to any existing .css file and add it 3) Right Click on only file (Section0001.xhtml) and choose Link to Stylesheets and choose your newly added stylesheet 4) Tools->Table of Contents -> Generate HTML Table of Contents 5) File -> Save As save to junk.epub Now leave Sigil and go and unzip your new junk.epub and look at the css file you added, it will be blank and have size zero bytes. This is 100% percent repeatable for me. Will someone else please verify they can recreate the exact same issue. If so, I will try and track down what is actually going on here. Thanks, KevinH Last edited by KevinH; 03-25-2015 at 12:59 PM. |
![]() |
![]() |
![]() |
#59 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can recreate the exact same issue (following your steps) with Sigil v0.8.4 on Windows Vista 32-bit. Same results every time. The newly added css file ends up blank.
EDIT: Recreatable using your latest git master branch of Sigil on Linux 64-bit as well. Quote:
Last edited by DiapDealer; 03-25-2015 at 01:19 PM. |
|
![]() |
![]() |
![]() |
#60 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,318
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
![]() ![]() ![]() I'm not able to get it to recreate with those steps... HOWEVER!! I went in and removed the sgc-toc.css file that I had stored in the preferences folder this morning....and then it DID confirm!! So, somewhere between creating a new sgc-toc.css file vs. using a templated one?? Is this a good summary of what we've seen reported here? -creating a new sgc-toc.css blanks an existing stylesheet -linking to an existing sgc-toc.css blanks the existing sgc-toc.css -adding a template sgc-toc.css keeps everything normal Last edited by Turtle91; 03-25-2015 at 01:30 PM. |
![]() |
![]() |
![]() |
Tags |
css changes |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ADE breaks CSS --> CSS Validation: Parse Error / Value Error | dasboeh | ePub | 4 | 12-10-2012 03:25 AM |
Override ePub CSS with userStyle.css? | barium | Sony Reader Dev Corner | 11 | 07-16-2011 03:25 PM |
CSS Help Please | Japes | Calibre | 21 | 06-23-2011 05:05 PM |
epub CSS versus "Regular" CSS | konrad | ePub | 4 | 02-18-2011 09:29 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |