Andrew T. Sullivan

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromAndrew T. Sullivan
ToMe
SubjectProblem printing tutorials with Prince...
Date30 January 2008 19:50
Tarquin

I have just found your tutorials about html, css etc and find them very
useful, as I am trying to learn more about these topics rather than just
use a "wysiwyg" web page creator.  I have tried to print them with
Prince, but I get errors, as follows:

HTML Tutorial
andrew@[Linux brand]:~$ prince --no-embed-fonts
http://www.howtocreate.co.uk/tutorials/html/combinedpage ~/tutorial.pdf
prince: http://www.howtocreate.co.uk/tutorials/html/combinedpage:1788:
error: ID waystohear already defined
prince: http://www.howtocreate.co.uk/tutorials/html/combinedpage:1794:
error: ID prevvisit already defined
prince: http://www.howtocreate.co.uk/tutorials/html/combinedpage:1819:
error: ID perscmnt already defined

CSS Tutorial
andrew@[Linux brand]:~$ prince --no-embed-fonts
http://www.howtocreate.co.uk/tutorials/css/combinedpage ~/tutorial.pdf
prince: http://www.howtocreate.co.uk/tutorials/css/combinedpage:778:
error: Unexpected end tag : ul
prince: http://www.howtocreate.co.uk/tutorials/css/combinedpage:951:
error: Unexpected end tag : dd

JS Tutorial
andrew@[Linux brand]:~$ prince --no-embed-fonts
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage
~/tutorial.pdf
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3400:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3400:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3670:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3670:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3709:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3709:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3760:
error: htmlParseEntityRef: no name
prince:
http://www.howtocreate.co.uk/tutorials/javascript/combinedpage:3760:
error: htmlParseEntityRef: no name

Am I doing something wrong?

Thanks in advance for your help

Andrew
FromMe
ToAndrew T. Sullivan
SubjectRe: Problem printing tutorials with Prince...
Date30 January 2008 21:33
Andrew,

> I have tried to print them with Prince, but I get errors, as follows:
> error: ID waystohear already defined

This is a known bug in Prince - it thinks an input's NAME and ID attributes
are both ID attributes. You can safely ignore this warning.

> error: Unexpected end tag : ul

That's a mistake on my part. Fixed.

> error: htmlParseEntityRef: no name

Prince does not like unambiguous ampersands, even though they are allowed,
per spec. I have replaced all of them with entities to be nice to Prince.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromAndrew T. Sullivan
ToMe
SubjectRe: Problem printing tutorials with Prince...
Date31 January 2008 01:05
Tarquin

Many thanks for such a prompt reply.  All four tutorials are now residing on
my PC as pdf files.  In fact, the JS tutorial may well have worked anyway -
I didn't realise it was so large!  Caused my poor old Linux ([brand])
box to virtually grind to a halt for half an hour or so, but it got there in
the end.

Thanks again.

Andrew
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.