Knights Markup Language

Appendix C. Knights Markup Language

The Knights Markup Language is a variation on HTML with the specific purpose of formatting and displaying PGN data. The formatting is actually done using Qt's default rich-text commands. Since these are already explained at length on Trolltech's website, they will not be covered here.

This appendix lists the macros used within KML to represent PGN data. These macros are case-sensitive.

%whiteimage% - This will be replaced with an image showing the white player's picture, or a generic image if Knights can't find it.

%blackimage% - This will be replaced with an image showing the black player's picture, or a generic image if Knights can't find it.

%moves% - This represents the move data. Recursive annotations appear in italics, while comments appear in bold type.

%site% - Represents the PGN tag: Site.

%date% - Represents the PGN tag: Date.

%round% - Represents the PGN tag: Round.

%result% - Represents the PGN tag: Result.

%white% - Represents the PGN tag: White.

%whitetitle% - Represents the PGN tag: White Title.

%whiteelo% - Represents the PGN tag: White ELO.

%whiteuscf% - Represents the PGN tag: White USCF.

%whitena% - Represents the PGN tag: White NA.

%whitetype% - Represents the PGN tag: White Type.

%black% - Represents the PGN tag: Black.

%blacktitle% - Represents the PGN tag: Black Title.

%blackelo% - Represents the PGN tag: Black ELO.

%blackuscf% - Represents the PGN tag: Black USCF.

%blackna% - Represents the PGN tag: Black NA.

%blacktype% - Represents the PGN tag: Black Type.

%time% - Represents the PGN tag: Time.

%utctime% - Represents the PGN tag: UTC Time.

%utcdate% - Represents the PGN tag: UTC Date.

%event% - Represents the PGN tag: Event.

%eventdate% - Represents the PGN tag: Event Date.

%eventsponsor% - Represents the PGN tag: Event Sponsor.

%section% - Represents the PGN tag: Section.

%stage% - Represents the PGN tag: Stage.

%board% - Represents the PGN tag: Board.

%opening% - Represents the PGN tag: Opening.

%variation% - Represents the PGN tag: Variation.

%subvariation% - Represents the PGN tag: Subvariation.

%eco% - Represents the PGN tag: ECO.

%nic% - Represents the PGN tag: NIC.

%timecontrol% - Represents the PGN tag: Time Control.

%termination% - Represents the PGN tag: Termination.

%setup% - Represents the PGN tag: Setup.

%fen% - Represents the PGN tag: FEN.

%annotator% - Represents the PGN tag: Annotator.

%mode% - Represents the PGN tag: Mode.

%plycount% - Represents the PGN tag: Plycount.

KDE Logo