Table of Contents

Dance instruction formatting for this wiki

This is the index page for dance instructions. Please add a link here as appropriate when you have posted a set of instructions. Note that pages in RED still need to be supplied. Others may still need work (it would be nice to have an amber link!??) There are names in grey boxes that MAY (or may not) be dances for which instructions are available. The tag '??rename' is to indicate that the link does not have the prefix 'ins_' which is desirable to allow us to count the dances.

Tags for finding special material

The following tags can be put in pages. Eventually I (JN) will try to establish some mechanisms for searching. In the meantime, they will serve to help people find music etc. for dances.

Formatting dances

Dances generally are easiest to “line up” with the tags for the parts of the music (e.g., A1, A2, B1, B2, C) if you use a monospace (typewriter-like) font to maintain spacing. This is best done in a text editor (the most common in Windows is Notepad.)

Dokuwiki displays text that is bracketed by the tags <code> and </code> in a monospace font. This is likely the simplest way to present dance instruction blocks.

For formatting to index cards, see dance on card.

One of the easiest ways to submit a new dance is as follows:

This sounds like a lot because the instructions here are rather detailed. Essentially we are copying a dance and then editing it.

A prototype tool for spacing

The following Perl script will add the spaces. It is executable in Linux and likely Mac command box, and possibly a Windows Command.com box, but may need to be run via

perl towikibox.pl file.txt
#!/usr/bin/perl
# towikibox.pl -- add spaces to beginning of text file to get boxes in Dokuwiki and Mediawiki
use strict;
my $infile = @ARGV[[0]];
print "towikibox on file $infile, result in $infile.box";

open (INFILE, $infile);
my $outfile = "$infile.box";
open (OUTFILE, ">$outfile");
my @all =<INFILE>;
close(INFILE);
foreach my $line (@all) {
        chomp $line;
        print OUTFILE "   $line\";
}
close(OUTFILE);
print "DONE!";