com.arsdigita.templating.html
Class HTMLspec

java.lang.Object
  extended bycom.arsdigita.templating.html.HTMLspec

public class HTMLspec
extends Object

Defines Character entity references for markup-significant and internationalization characters. (See also Special Entities.)

The reason public final fields in this class do not have all upper-case names is to make it easier for people to find the character they are looking for. For example, œ and &Oelig are different characters. To resolve the upper-case name collision, we would have to introduce names like SMALL_OELIG and CAPITAL_OELIG. Java coding standards have been sacrificed in favor of preserving familiar names in this case. Therefore, the two characters can be accessed as oelig and OElig, respectively.

Since:
2002-08-30
Version:
$Id: //core-platform/dev/src/com/arsdigita/templating/html/HTMLspec.java#4 $
Author:
Vadim Nasardinov (vadimn@redhat.com)

Field Summary
static String amp
          & - ampersand, U+0026 ISOnum.
static String bdquo
           - double low-9 quotation mark, U+201E NEW.
static String circ
          ˆ - modifier letter circumflex accent, U+02C6 ISOpub.
static String dagger
           - dagger, U+2020 ISOpub.
static String Dagger
           - double dagger, U+2021 ISOpub.
static String emsp
           - em space, U+2003 ISOpub.
static String ensp
           - en space, U+2002 ISOpub.
static String euro
           - euro sign, U+20AC NEW.
static String gt
          > - greater-than sign, U+003E ISOnum.
static String ldquo
           - left double quotation mark, U+201C ISOnum.
static String lrm
           - left-to-right mark, U+200E NEW RFC 2070.
static String lsaquo
           - single left-pointing angle quotation mark, U+2039 ISO proposed.
static String lsquo
           - left single quotation mark, U+2018 ISOnum.
static String lt
          < - less-than sign, U+003C ISOnum.
static String mdash
           - em dash, U+2014 ISOpub.
static String ndash
           - en dash, U+2013 ISOpub.
static String oelig
          œ - latin small ligature oe, U+0153 ISOlat2.
static String OElig
          Œ - latin capital ligature OE, U+0152 ISOlat2.
static String permil
           - per mille sign, U+2030 ISOtech.
static String quot
          " - quotation mark = APL quote, U+0022 ISOnum.
static String rdquo
           - right double quotation mark, U+201D ISOnum.
static String rlm
           - right-to-left mark, U+200F NEW RFC 2070.
static String rsaquo
           - single right-pointing angle quotation mark, U+203A ISO proposed.
static String rsquo
           - right single quotation mark, U+2019 ISOnum.
static String sbquo
           - single low-9 quotation mark, U+201A NEW.
static String scaron
          š - latin small letter s with caron, U+0161 ISOlat2.
static String Scaron
          Š - latin capital letter S with caron, U+0160 ISOlat2.
static String thinsp
           - thin space, U+2009 ISOpub.
static String tilde
          ˜ - small tilde, U+02DC ISOdia.
static String Yuml
          Ÿ - latin capital letter Y with diaeresis, U+0178 ISOlat2.
static String zwj
           - zero width joiner, U+200D NEW RFC 2070.
static String zwnj
           - zero width non-joiner, U+200C NEW RFC 2070.
 
Constructor Summary
HTMLspec()
           
 
Method Summary
static String getAllEntityDeclarations()
          Returns all character entity declarations as a single string of the following form:
static String getDecimalReference(String character)
           
static String getEntityDeclaration(String character)
          Returns a string of the form <!ENTITY sect "&#167;">, if called like so:
static String getName(String character)
          Returns the name of the character reference entity for this character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quot

public static final String quot
" - quotation mark = APL quote, U+0022 ISOnum.


amp

public static final String amp
& - ampersand, U+0026 ISOnum.


lt

public static final String lt
< - less-than sign, U+003C ISOnum.


gt

public static final String gt
> - greater-than sign, U+003E ISOnum.


OElig

public static final String OElig
Œ - latin capital ligature OE, U+0152 ISOlat2.


oelig

public static final String oelig
œ - latin small ligature oe, U+0153 ISOlat2.


Scaron

public static final String Scaron
Š - latin capital letter S with caron, U+0160 ISOlat2.


scaron

public static final String scaron
š - latin small letter s with caron, U+0161 ISOlat2.


Yuml

public static final String Yuml
Ÿ - latin capital letter Y with diaeresis, U+0178 ISOlat2.


circ

public static final String circ
ˆ - modifier letter circumflex accent, U+02C6 ISOpub.


tilde

public static final String tilde
˜ - small tilde, U+02DC ISOdia.


ensp

public static final String ensp
- en space, U+2002 ISOpub.


emsp

public static final String emsp
- em space, U+2003 ISOpub.


thinsp

public static final String thinsp
- thin space, U+2009 ISOpub.


zwnj

public static final String zwnj
- zero width non-joiner, U+200C NEW RFC 2070.


zwj

public static final String zwj
- zero width joiner, U+200D NEW RFC 2070.


lrm

public static final String lrm
- left-to-right mark, U+200E NEW RFC 2070.


rlm

public static final String rlm
- right-to-left mark, U+200F NEW RFC 2070.


ndash

public static final String ndash
- en dash, U+2013 ISOpub.


mdash

public static final String mdash
- em dash, U+2014 ISOpub.


lsquo

public static final String lsquo
- left single quotation mark, U+2018 ISOnum.


rsquo

public static final String rsquo
- right single quotation mark, U+2019 ISOnum.


sbquo

public static final String sbquo
- single low-9 quotation mark, U+201A NEW.


ldquo

public static final String ldquo
- left double quotation mark, U+201C ISOnum.


rdquo

public static final String rdquo
- right double quotation mark, U+201D ISOnum.


bdquo

public static final String bdquo
- double low-9 quotation mark, U+201E NEW.


dagger

public static final String dagger
- dagger, U+2020 ISOpub.


Dagger

public static final String Dagger
- double dagger, U+2021 ISOpub.


permil

public static final String permil
- per mille sign, U+2030 ISOtech.


lsaquo

public static final String lsaquo
- single left-pointing angle quotation mark, U+2039 ISO proposed.


rsaquo

public static final String rsaquo
- single right-pointing angle quotation mark, U+203A ISO proposed.


euro

public static final String euro
- euro sign, U+20AC NEW.

Constructor Detail

HTMLspec

public HTMLspec()
Method Detail

getDecimalReference

public static String getDecimalReference(String character)

getName

public static String getName(String character)
Returns the name of the character reference entity for this character. For example, HTMLlat1.getName(HTMLlat1.sect) returns the string "sect".


getEntityDeclaration

public static String getEntityDeclaration(String character)
Returns a string of the form <!ENTITY sect "&#167;">, if called like so:
 HTMLlat1.getEntityDeclaration(HTMLlat1.sect);
 


getAllEntityDeclarations

public static String getAllEntityDeclarations()
Returns all character entity declarations as a single string of the following form:
 <!ENTITY nbsp   "&#160;">
 <!ENTITY iexcl  "&#161;">
   [ ... skipped for brevity ...]
 <!ENTITY yacute "&#253;">
 <!ENTITY thorn  "&#254;">
 <!ENTITY yuml   "&#255;">
 



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC