Installing the HTMLTTChess Package
How to view pages generated by HTMLTTChess
To view pages containing chessboards generated by HTMLTTChess, you simply need to:
See the compatibility section or the Chess Merida Unicode page for more information.
How to create pages with HTMLTTChess
Quickstart
- Download the HTMLTTChess package here,
- Install the Chess Merida Unicode font on your system.
- Use a compatible browser and operating system,
- Copy the HTMLTTChess files in a separate directory:
- The java script file
html_tt_chess.js, - The CSS file
html_tt_chess.css, - The minimum template page
template.html.
- The java script file
- Edit the template page as you which, following examples in the sample page, or the reference instructions given here.
- You can customize further the output following instructions given here.
Browser/OS Compatibility
Here we come in the nice world of standardization. HTMLTTChess uses a mix of tables, Unicode, Javascript and Cascade Style Sheets to
layout the chess boards correctly. All pages are valid XHTML 1.0
Transitional Chess (a custom DTD
identical to XHTML 1.0 Transitional but with addition of the custom tag <c:chess>). Also all pages
validate as CSS. So hopefully you should be able to see these pages correctly using any Unicode-, Javascript-
and CSS-compliant browser. If you have issues with chessboard rendering in color mode, you may want to give a try with
B&W mode, which is much simpler to render and makes almost no use of stylesheets.
The sample page shows how it is possible to display a button on the page to switch between both modes. You may reuse this code in your own web pages so that to let the visitor chooses which mode he prefers to use. A nice extension would be to also store this preference in a web cookie so that the preferred mode is automatically restored at the next visit.
The table below contains the pairs of browser/OS that I personally tested with this script, all giving excellent results in both color and black&white modes:
| Linux | The script has been successfully tested under OpenSUSE 10.2 with the following browsers:
|
|---|---|
| WinXP SP2 | The script has been successfully tested under Windows XP SP2 with the following browsers:
|
| Win2K | The script has been successfully tested under Windows 2000 SP3 with the following browsers:
|
| Macintosh | Not tested. May be did? |
