Man...I disappear for a little bit and you guys go and do all kinds of really cool things...
Toxaris,
I got this unhandled exception message when I ran the plugin on my shell/default epub saying that ':first-letter' has an invalid token:
Quote:
Status: success
Processing C:\Users\Dion\AppData\Local\sigil-ebook\sigil\plugins\ePUBOptimizer\dummy.epub
Get unique characters per font
Unhandled Exception: System.Xml.XPath.XPathException: '//*[contains(concat(' ',normalize-space(@class),' '),' SecBrk2 ')]:first-letter' has an invalid token.
at MS.Internal.Xml.XPath.XPathScanner.NextLex()
at MS.Internal.Xml.XPath.XPathParser.ParsePredicate(A stNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNod e qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseRelativeLoc ationPath(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseLocationPat h(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(As tNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(A stNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(A stNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseMultiplicat iveExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExp r(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseRelationalE xpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExp r(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(Ast Node qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstN ode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseExpresion(A stNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpres ion(String xpathExpresion)
at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
at System.Xml.XPath.XPathNavigator.Select(String xpath)
at HtmlAgilityPack.HtmlNode.SelectNodes(String xpath)
at Toxaris.ToxarisePUB.FunColl.ApplyStylesheetAsInlin e(String html, String style)
at ePUBOptimizer.Main.HandleePUB(String ePUB)
at ePUBOptimizer.Main.Main()
|
Does this not support pseudo-classes? or am I making a heretofore undiscovered mistake in my css?
CSS:
Quote:
.SecBrk2:first-letter {font-family:FunkyFont}
|