ESCAPES.txt for Tux Paint

Tux Paint - A simple drawing program for children.

Copyright 2003 by Bill Kendrick
bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/

February 1, 2003 - February 1, 2003


About Escape Sequences
----------------------
  Tux Paint allows the use of HTML escape sequences in the description files
  (".txt" files) it reads when loading Rubber Stamp images.
  (See README.txt for more information on creating your own rubber stamps.)
  
  The escape sequences provide a way of entering hard-to-type ASCII
  characters into the text file.  The escape sequences Tux Paint supports
  are identical to those used in HTML pages on the web.

  A sequence begins with the "&" character (ampersand), and ends with
  the ";" character (semicolon).  For example: "&iuml;".


Using Escape Sequences in Tux Paint
-----------------------------------
  To use a string containing escape sequences in a rubber stamp description
  file (the ".txt" file that corresponds to the stamps ".png" image file),
  the line containing the translated description should begin with the
  language's "locale code", followed by ".esc=" and the description text.

  For example, a Spanish translation of a string in plain ASCII might look
  like this:

    es=Hola

  A Spanish translation that takes advantage of the HTML-style escape
  sequences might look like this:

    es.esc=&iexcl;Hola ni&ntilde;os!
  

  In both cases, the "es" at the beginning of the line corresponds to the
  language of the description: Spanish.
  (See README.txt for a list of languages supported by Tux Paint, and their
  locale codes.)

  In the latter example, the "&iexcl;" is an 'escape sequence' that
  represents an inverted (upside-down) exclamation point ("!"), which
  looks like this:  ""

  The "&ntilde;" represents an "n" with a tilde ("~") over it.
  The Spanish character:  ""


  This example could have been easily done using plain ASCII, like so:

    es=Hola nios!

  However, depending on the text editor being used, typing that literally
  may not be an easy task.  Typing the letters A-Z and punctuation should
  never be a problem, though.  This is why escape sequence support was
  added to Tux Paint.


  NOTE: Since the ampersand character ("&") is used to denote the beginning
  of an escape sequence, it itself must be escaped.  Use the sequence "&amp;"

  For example, in plain ASCII:

    xx=This & that

  Should be written as follows when using the escape sequence mode:

    xx.esc=This &amp; that


  The following is INCORRECT, and will end up truncated to just the word "This":

    xx.esc=This & that



Supported Escape Sequences
--------------------------
  Sequence   Character   Description
  --------   ---------   -----------
  &agrave;              Lowercase a grave
  &aacute;              Lowercase a acute
  &acirc;               Lowercase a circumflex
  &atilde;              Lowercase a tilde
  &auml;                Lowercase a umlaut
  &aring;               Lowercase a ring

  &Agrave;              Uppercase A grave
  &Aacute;              Uppercase A acute
  &Acirc;               Uppercase A circumflex
  &Atilde;              Uppercase A tilde
  &Auml;                Uppercase A umlaut
  &Aring;               Uppercase A ring

  &aelig;               Lowercase ae ligature
  &AElig;               Uppercase AE ligature

  &ccedil;              Lowercase c cedil
  &Ccedil;              Uppercase C cedil

  &eth;                 Lowercase eth
  &ETH;                 Uppercase Eth

  &egrave;              Lowercase e grave
  &eacute;              Lowercase e acute
  &ecirc;               Lowercase e circumflex
  &euml;                Lowercase e umlaut

  &Egrave;              Uppercase E grave
  &Eacute;              Uppercase E acute
  &Ecirc;               Uppercase E circumflex
  &Euml;                Uppercase E umlaut

  &igrave;              Lowercase i grave
  &iacute;              Lowercase i acute
  &icirc;               Lowercase i circumflex
  &iuml;                Lowercase i umlaut

  &Igrave;              Uppercase I grave
  &Iacute;              Uppercase I acute
  &Icirc;               Uppercase I circumflex
  &Iuml;                Uppercase I umlaut

  &ograve;              Lowercase o grave
  &oacute;              Lowercase o acute
  &ocirc;               Lowercase o circumflex
  &otilde;              Lowercase o tilde
  &ouml;                Lowercase o umlaut
  &oslash;              Lowercase o slash

  &Ograve;              Uppercase O grave
  &Oacute;              Uppercase O acute
  &Ocirc;               Uppercase O circumflex
  &Otilde;              Uppercase O tilde
  &Ouml;                Uppercase O umlaut
  &Oslash;              Uppercase O slash

  &ugrave;              Lowercase u grave
  &uacute;              Lowercase u acute
  &ucirc;               Lowercase u circumflex
  &uuml;                Lowercase u umlaut

  &Ugrave;              Uppercase U grave
  &Uacute;              Uppercase U acute
  &Ucirc;               Uppercase U circumflex
  &Uuml;                Uppercase U umlaut

  &ntilde;              Lowercase n tilde
  &Ntilde;              Uppercase N tilde

  &szlig;               Sharp S

  &yacute;              Lowercase y acute
  &yuml;                Lowercase y umlaut
  &Yacute;              Uppercase Y acute

  &thorn;               Lowercase thorn
  &THORN;               Uppercase thorn

  &iexcl;               Inverted exclamation
  &iquest;              Inverte question mark
  &laquo;               Left angle quotes
  &raquo;               Right angle quotes

  &cent;                Cent sign
  &pound;               Pound sign
  &curren;              Currency sign
  &yen;                 Yen sign

  &acute;               Acute
  &cedil;               Cedil
  &uml;                 Umlaut

  &quot;         "       Quote
  &amp;          &       Ampersand
  &lt;           <       Less than
  &gt;           >       Greater than

  &plusmn;              Plus-minus sign
  &times;               Times sign
  &divide;              Division sign
  &not;                 Logical not sign
  &deg;                 Degree sign
  &micro;               Micro sign

  &frac14;              One quarter (1/4)
  &frac12;              One half (1/2)
  &frac34;              Three quarters (3/4)

  &sup1;                Superscript 1
  &sup2;                Superscript 2
  &sup3;                Superscript 3

  &brvbar;              Broken vertical bar
  &sect;                Section sign
  &para;                Paragraph sign
  &middot;       *       Middle dot

  &copy;                Copyright sign ((C))
  &reg;                 Registered trademark sign ((R))

  &ordf;                Feminine ordinal
  &ordm;                Masculine ordinal
  &shy;                 Soft hyphen
  &macr;                Spacing macron

