Next / Previous / Contents / Shipman's homepage

4.9. XHTML for bird form names

Rendering of the bird name is driven by a BirdForm instance from birdnotes.py. This instance's .birdId attribute is an instance of class BirdId from the taxonomy module xnomo3.py; it can represent single taxa, hybrids, or species pairs such as “Dusky/Hammond's Flycatcher.”

The entire name is wrapped in:

      <span class='bird-name'>...</span>

Inside this span are placed:

  1. The English name of the first or only form.

  2. If this is a compound form, the string ' x ' for hybrids or '/' for pair forms, followed by the English name of the second form.

  3. If the record is questionable, “?” is appended; if uncountable, “[uncountable]” is appended.