Previous: A technical description of the Match ID, Up: Technical Notes
As mentioned above GNU Backgammon writes a CSS style sheet along with the generated XHTML file. The CSS style sheet may be written verbatim in the header section of the XHTML file, to an external file named gnubg.css, or inside the tags using the style attribute. If you wish to make any modifications to the style sheet without modifying the actual source code of GNU Backgammon you have to choose one of the first two methods. Note that the special export for Kit Woolsey's GammOnLine uses the third method since the XHTML is pasted into a web page without the possibility to modify the header section of the page where the style sheet is defined. Thus, it's not possible to modify the style of the generated XHTML for GammOnLine without modifications of the source code or extensive search and replace in the generated XHTML.
Below follows a description of the CSS classes used in the XHTML export:
Class | Description
|
.movetable | Style applied to the entire table used for the move analysis
|
.moveheader | The header of the move analysis table
|
.movenumber | The rank number of a move in the move analysis
|
.moveply | The column indicating the number of plies or rollout
|
.movemove | The formatted move, e.g., 13/7 8/7.
|
.moveequity | The column with the equity or MWC.
|
.movethemove | Special style for row that contains the actual move chosen by the player
|
.moveodd | Special style for the odd rows. Can be used to give an alternating color for the rows.
|
.percent | Style for the game winning probabilities and equities in the move analysis.
|
.blunder | Emphasis blunders, e.g., Alert: missed double or Alert: bad move.
|
.joker | Emphasis very good or bad rolls, e.g., Alert: unlucky roll.
|
.stattable | The style applied to the entire table with game, match, and session statistics
|
.stattableheader | The header row of the statistics table
|
.result | Style for the text indicating the outcome of the game or match, e.g., Jørn Thyssen wins 16 points.
|
.tiny | Currently unused.
|
.cubedecision | The style applied to the entire cube decision table
|
.cubedecisionheader | Style for the header row of the cube decision table
|
.cubeequity | Style for any equity or MWC in the cube decision table
|
.cubeaction | Style for the text indicating the correct cube action
|
.cubeply | Style for the text that states the level of evaluation
|
.cubeprobs | Style for the game winning probabilities in the cube decision table
|
.comment | The style applied to the entire table used for annotations or comments, e.g., the kibitzing from imported SGG files
|
.commentheader | The style applied to the header row of the annotations' table
|
.number | Currently unused
|
.fontfamily | Style applied to the entire body of the XHTML document.
|
.block | Style applied to the images in the export to avoid gaps between individual pictures both horizontally and vertically.
|
.positionid | Style for the Position ID and match ID.
|