Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-13-2014, 08:36 AM   #16
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
It opens in my browser (Safari). I can right click and tell it to open in Text Edit.

When I click on the CSS in Sigil it just opens a tab and displays everything right there.
rosshalde is offline   Reply With Quote
Old 12-13-2014, 08:58 AM   #17
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
Quote:
Originally Posted by Doitsu View Post
This might be a file association problem.

I had problems with the Linux version in the past: css files were automatically opened with Geany (a text editor) instead of the web browser. Uninstalling and re-installing Geany fixed the problem.
If you've had success altering/restoring .css file associations, I'll not argue, but that doesn't really jive with what I'm seeing in Sigil's code. The CSS Validation tool in Sigil never tries to open the css file with a default application. It just dumps the contents of the css file to a temporary html file (as form data which will auto-submit to the correct W3C url after 3 seconds), and then opens that temp html file with whatever the default handler for html files is on that system.
DiapDealer is offline   Reply With Quote
Advert
Old 12-13-2014, 09:12 AM   #18
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
The only time a .css file opens in a default program (safari) is if I am dealing with a css outside of Sigil...clicking directly on the css in some folder directory.

In Sigil, if I click the css, it just opens a tab in Sigil to display it, but absolutely nothing (that I can see) happens when I try to use the CSS validation tool.

I will wait to hear from a Mac user to see what they are doing differently (besides getting a PC)
rosshalde is offline   Reply With Quote
Old 12-13-2014, 10:38 AM   #19
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,483
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi,
I'm away for the weekend without access to anything but my ipad. I will test this on my Mac and fix it (if it needs fixing) and let you know upon my return.

One guess is you have no default set to open .html files as that is what should be launched with the report. Or is is set to some editor and now a web browser that can take arguments to open a file.

Take care,

Kevin

Quote:
Originally Posted by rosshalde View Post
The only time a .css file opens in a default program (safari) is if I am dealing with a css outside of Sigil...clicking directly on the css in some folder directory.

In Sigil, if I click the css, it just opens a tab in Sigil to display it, but absolutely nothing (that I can see) happens when I try to use the CSS validation tool.

I will wait to hear from a Mac user to see what they are doing differently (besides getting a PC)
KevinH is offline   Reply With Quote
Old 12-13-2014, 12:04 PM   #20
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Kevin, I think it would be better to remove the option from Sigil completely. I will write a CSS validator as plugin instead, just like the epub validator.
That should be more stable and could be used offline.
Toxaris is offline   Reply With Quote
Advert
Old 12-13-2014, 01:52 PM   #21
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
Quote:
Originally Posted by Toxaris View Post
Kevin, I think it would be better to remove the option from Sigil completely. I will write a CSS validator as plugin instead, just like the epub validator.
That should be more stable and could be used offline.
I see nothing wrong with an alternative CSS validation plugin, but I wouldn't want to see the current feature removed from Sigil's core. Not just yet anyway. Maybe in the future when/if Sigil supports official or internal plugins that can be distributed with Sigil, sure. Doing so now would force new users to 1) find the plugin, and 2) install an interpreter before they could use it.

I'd love to see some alternative validation plugins, though. Whether or not the core feature remains a part of Sigil shouldn't discourage anyone from making those happen.

Last edited by DiapDealer; 12-13-2014 at 01:56 PM.
DiapDealer is offline   Reply With Quote
Old 12-13-2014, 03:04 PM   #22
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
I see nothing wrong with an alternative CSS validation plugin, but I wouldn't want to see the current feature removed from Sigil's core. Not just yet anyway. Maybe in the future when/if Sigil supports official or internal plugins that can be distributed with Sigil, sure. Doing so now would force new users to 1) find the plugin, and 2) install an interpreter before they could use it.

I'd love to see some alternative validation plugins, though. Whether or not the core feature remains a part of Sigil shouldn't discourage anyone from making those happen.
You are right.
Toxaris is offline   Reply With Quote
Old 12-13-2014, 05:59 PM   #23
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,631
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by rosshalde View Post
The only time a .css file opens in a default program (safari) is if I am dealing with a css outside of Sigil...clicking directly on the css in some folder directory.

In Sigil, if I click the css, it just opens a tab in Sigil to display it, but absolutely nothing (that I can see) happens when I try to use the CSS validation tool.

I will wait to hear from a Mac user to see what they are doing differently (besides getting a PC)
Right click the stylesheet, select Validate with W3C.

NG Macs have a two button mouse - don't they?

BR
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 2014-12-14 , 09_54_38.jpg
Views:	127
Size:	23.0 KB
ID:	132431  
BetterRed is offline   Reply With Quote
Old 12-13-2014, 06:06 PM   #24
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,170
Karma: 144286760
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 DiapDealer View Post
I see nothing wrong with an alternative CSS validation plugin, but I wouldn't want to see the current feature removed from Sigil's core. Not just yet anyway. Maybe in the future when/if Sigil supports official or internal plugins that can be distributed with Sigil, sure. Doing so now would force new users to 1) find the plugin, and 2) install an interpreter before they could use it.

I'd love to see some alternative validation plugins, though. Whether or not the core feature remains a part of Sigil shouldn't discourage anyone from making those happen.
But the problem with the link to the online CSS validator is that it barfs when there are embedded fonts. That's not how a properly working CSS validator should work. And when you up the CSS level, you also validate for things that aren't valid in ePub 2. So it's not as useful as you might think.
JSWolf is online now   Reply With Quote
Old 12-13-2014, 07:25 PM   #25
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
Quote:
Originally Posted by JSWolf View Post
But the problem with the link to the online CSS validator is that it barfs when there are embedded fonts. That's not how a properly working CSS validator should work. And when you up the CSS level, you also validate for things that aren't valid in ePub 2. So it's not as useful as you might think.
Issues you may have with WHAT the validator passes/fails, Jon, aren't really appropriate here. We were discussing why the tool might not be working AT ALL, and what might need to be fixed if there's situations/platforms where it's not. Your complaint is something else entirely.

And for the record... it doesn't "barf" with embedded fonts. It correctly notes the fact that the 'font-family" property doesn't exist for the CSS-level it was told to validate against (CSS 2.1). Unfortunate for validating ePubs with embedded fonts? Yes. Barf? No.

Last edited by DiapDealer; 12-13-2014 at 08:09 PM.
DiapDealer is offline   Reply With Quote
Old 12-13-2014, 07:29 PM   #26
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,170
Karma: 144286760
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 DiapDealer View Post
Issues you may have with WHAT the validator passes/fails, Jon, isn't really appropriate here. We were discussing why the tool might not be working AT ALL, and what might need to be fixed if there's situations/platforms where it's not. Your complaint is something else entirely.

And for the record... it doesn't "barf" with embedded fonts. It correctly notes the fact that the 'font-family" property doesn't exist for the CSS-level it was told to validate against (CSS 2.1). Unfortunate for validating ePubs with embedded fonts? Yes. Barf? No.
But regardless, the validator doesn't work properly. So it would be best not to include it since it can show errors that are not errors.
JSWolf is online now   Reply With Quote
Old 12-13-2014, 07:29 PM   #27
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
Quote:
Originally Posted by BetterRed View Post
Right click the stylesheet, select Validate with W3C.

NG Macs have a two button mouse - don't they?

BR
This brings up a good point. There are two ways to validate css: from the context menu of css files in the Book Browser, and from the Tools menu in Sigil's main menu.

@rosshalde:
Do both methods appear to do nothing?

Last edited by DiapDealer; 12-13-2014 at 08:09 PM.
DiapDealer is offline   Reply With Quote
Old 12-13-2014, 07:33 PM   #28
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
Quote:
Originally Posted by JSWolf View Post
But regardless, the validator doesn't work properly. So it would be best not to include it since it can show errors that are not errors.
Stop it, Jon. You're butting in and confusing the issue with irrelevant input.
DiapDealer is offline   Reply With Quote
Old 12-13-2014, 08:04 PM   #29
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: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Sigil has never validated to device specific limitations.
MRSDK barfs on allowed codes that it is supposed to ignore.

I can't fault it for intolerance to malformed code (Sigil/Calibre tolerate some errors, thus adding to when it hits the device and fails..)

The above malformed will almost always result in the CSS being ignored by MRSDK (a clue)

CSS quick proof read
a Attribute never has a space (page-break-after)
values with units have no space (5em)
theducks is online now   Reply With Quote
Old 12-14-2014, 03:09 AM   #30
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
And when you up the CSS level, you also validate for things that aren't valid in ePub 2.
The problem with CSS is that everything is valid. As long as the syntax is correct, you can add any property you like and it doesn't make it invalid. It may work as expected, or it may be ignored, but it shouldn't harm.

If a CSS validator for epub was to be designed, it could issue warnings for properties or values not specified as required in the spec, or known to be poorly implemented in some readers, but no errors.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil loses format in bulleted list mlamb Sigil 17 03-20-2014 04:35 AM
Audio in epub format using sigil TStphnsn Sigil 6 10-27-2012 04:39 PM
List format in Sigil crutledge Sigil 4 07-23-2012 02:22 PM
Preserving format from ePub (Sigil) to Mobi jeff47 Calibre 9 10-22-2010 10:17 PM
SIGIL format DaleDe Sigil 7 10-13-2009 11:00 AM


All times are GMT -4. The time now is 04:29 PM.


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