Thread: ePUB Optimizer
View Single Post
Old 03-01-2015, 12:45 AM   #56
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,370
Karma: 20212733
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
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}
Turtle91 is online now   Reply With Quote