issue: Token ';' not allowed here, expecting a property name

613 views
Skip to first unread message

David Prendergast

unread,
Feb 19, 2013, 10:53:12 AM2/19/13
to epub...@googlegroups.com
have the following issue after converting a Quark 9 document to epub and running it through Epub check 3. see attached epub file. can anyone explain the following issue?? have tried epub version 2 and works fine but figured I should use latest version. preflight check is also fine. how do I resolve? using Windows 7 Home premium on pc with Java version 6. update 33. need to keep our retailers happy!!!

thanks

David

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\poolbeg>java -jar C:\Users\poolbeg\Desktop\epubcheck-3.0\epubcheck-3.0.
jar "F:\Devlin, Martina\Venus Reborn ebook\VENUS REBORN ebook.epub"
Epubcheck Version 3.0

Validating against EPUB version 2.0
WARNING: F:/Devlin, Martina/Venus Reborn ebook/VENUS REBORN ebook.epub/OEBPS/hor
izontal_style.css(24): Token ';' not allowed here, expecting a property name
WARNING: F:/Devlin, Martina/Venus Reborn ebook/VENUS REBORN ebook.epub/OEBPS/hor
izontal_style.css(25): Token ';' not allowed here, expecting a property name

Check finished with warnings or errors


C:\Users\poolbeg>
VENUS REBORN ebook.epub

Vincent Gros

unread,
Feb 19, 2013, 10:57:23 AM2/19/13
to epub...@googlegroups.com
Hello David,

Because there is two ";" by line (both line 24 et 25). Only one is needed:

     -epub-writing-mode: vertical-rl;;
     -webkit-writing-mode: vertical-rl;;

/ Vincent


2013/2/19 David Prendergast <desig...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to epubcheck+...@googlegroups.com.
To post to this group, send email to epub...@googlegroups.com.
Visit this group at http://groups.google.com/group/epubcheck?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Markus Gylling

unread,
Feb 19, 2013, 11:01:00 AM2/19/13
to epub...@googlegroups.com
That warning however, is a bug in the tool that will be fixed. I hope to get to it next week, or even friday.  

/markus

David Prendergast

unread,
Feb 28, 2013, 10:25:01 AM2/28/13
to epub...@googlegroups.com
Hi Markus

have the epub checker been updated yet with the bug below fixed? (in red highlighted)

Vincent had also mentioned the following which I can make no sense of? Perhaps Quark 9.3 is creating this error when I create the epub file. the same error is coming up in the last few ebooks I have created. How do I solve the issue in plain simple English? Our retailer is rejecting the file because of the error on the latest version of epub check. see another file attached with the same issue.

what do you think?

thanks for your help

David


Because there is two ";" by line (both line 24 et 25). Only one is needed:

     -epub-writing-mode: vertical-rl;;
     -webkit-writing-mode: vertical-rl;;



BLOODLINE ebook.epub

Matt Garrish

unread,
Feb 28, 2013, 12:08:03 PM2/28/13
to epub...@googlegroups.com

If it helps, the solution Vincent was pointing you to was to do a search and replace of two semicolons with one semicolon in the output CSS file(s). That’s the fastest way to make this “problem” temporarily go away until epubcheck gets updated.

 

If you have a program like oXygen, you can do this fix without unzipping your content (just open the CSS from the archive browser). If not, unzip your EPUB file, fix the CSS, and then run epubcheck on the unpacked directory to validate and zip it back up by adding the following arguments to the command: -mode exp -save

 

By way of explanation, since each property in a CSS class definition is delimited(/separated) by a semicolon, if you were to put one definition on each line your CSS would look like this:

 

-epub-writing-mode: vertical-rl;

;

-webkit-writing-mode: vertical-rl;

;

 

As you can see done this way, there are a couple of extra semicolons that don’t, in fact, delimit any properties (i.e., there is nothing between them). Epubcheck is presumably trying to be helpful in pointing this out, but it’s not a CSS error, and doesn’t affect the rendering of your content.

 

No doubt just a quirk of Quark…

 

Matt

 


David Prendergast

unread,
Feb 28, 2013, 3:44:49 PM2/28/13
to epub...@googlegroups.com
Thanks for your help Matt

Best

David
On 28 Feb 2013, at 17:08, Matt Garrish <matt.g...@bell.net> wrote:

If it helps, the solution Vincent was pointing you to was to do a search and replace of two semicolons with one semicolon in the output CSS file(s). That’s the fastest way to make this “problem” temporarily go away until epubcheck gets updated.
 
If you have a program like oXygen, you can do this fix without unzipping your content (just open the CSS from the archive browser). If not, unzip your EPUB file, fix the CSS, and then run epubcheck on the unpacked directory to validate and zip it back up by adding the following arguments to the command: -mode exp -save
 
By way of explanation, since each property in a CSS class definition is delimited(/separated) by a semicolon, if you were to put one definition on each line your CSS would look like this:
 
-epub-writing-mode: vertical-rl;
;
-webkit-writing-mode: vertical-rl;
;
 
As you can see done this way, there are a couple of extra semicolons that don’t, in fact, delimit any properties (i.e., there is nothing between them). Epubcheck is presumably trying to be helpful in pointing this out, but it’s not a CSS error, and doesn’t affect the rendering of your content.
 
No doubt just a quirk of Quark…
 
Matt
 

From: epub...@googlegroups.com[mailto:epubcheck@googlegroups.com] On Behalf Of David Prendergast
For more options, visithttps://groups.google.com/groups/opt_out.
 
 
 
 
-- 
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email toepubcheck+...@googlegroups.com.
To post to this group, send email toepub...@googlegroups.com.
Visit this group athttp://groups.google.com/group/epubcheck?hl=en.
For more options, visithttps://groups.google.com/groups/opt_out.
 
 
 
-- 
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email toepubcheck+...@googlegroups.com.
To post to this group, send email toepub...@googlegroups.com.
Visit this group athttp://groups.google.com/group/epubcheck?hl=en.
For more options, visithttps://groups.google.com/groups/opt_out.
 
 
 
-- 
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email toepubcheck+...@googlegroups.com.
To post to this group, send email toepub...@googlegroups.com.
Visit this group athttp://groups.google.com/group/epubcheck?hl=en.
For more options, visithttps://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages