Playing Cards

This specification defines two syntaxes and use cases for representing card decks and indicating their respective images.

The namespace is http://rayrobdod.com/specs/cards.

Each deck contains a group of backs and a group of suits. Each suit contains a group of ranks.

A goal of this specification is that many types of playing cards are supported. Yes, these are probably tailored to make the creation of French Playing Cards easier than others, but it should be able to equally support a tarot cards, french playing cards, german playing cards and even unthemed decks which may have 6 suits and 20 cards each, and as long as enough cards exist in a deck, all of them should be able to be used in an application which uses these cards. And there shouldn't be any requirement to shoehorn a german bells suit in by calling it a spades suit.

Table of Contents

  1. Elements

Related Resources

relaxng.xml

A relaxng thing for cards files

example.css

A CSS document that can be used to style standalone card documents, as in not included in a SVG's metadata.

example.xml

A template for a standalone card document, as in not included in a SVG's metadata.

example.json

A template for a standalone card document, using the JSON format.