|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.templating.html.HTMLspec
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.
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 "§"> ,
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 |
public static final String quot
public static final String amp
public static final String lt
public static final String gt
public static final String OElig
public static final String oelig
public static final String Scaron
public static final String scaron
public static final String Yuml
public static final String circ
public static final String tilde
public static final String ensp
public static final String emsp
public static final String thinsp
public static final String zwnj
public static final String zwj
public static final String lrm
public static final String rlm
public static final String ndash
public static final String mdash
public static final String lsquo
public static final String rsquo
public static final String sbquo
public static final String ldquo
public static final String rdquo
public static final String bdquo
public static final String dagger
public static final String Dagger
public static final String permil
public static final String lsaquo
public static final String rsaquo
public static final String euro
Constructor Detail |
public HTMLspec()
Method Detail |
public static String getDecimalReference(String character)
public static String getName(String character)
HTMLlat1.getName(HTMLlat1.sect)
returns the
string "sect"
.
public static String getEntityDeclaration(String character)
<!ENTITY sect "§">
,
if called like so:
HTMLlat1.getEntityDeclaration(HTMLlat1.sect);
public static String getAllEntityDeclarations()
<!ENTITY nbsp " "> <!ENTITY iexcl "¡"> [ ... skipped for brevity ...] <!ENTITY yacute "ý"> <!ENTITY thorn "þ"> <!ENTITY yuml "ÿ">
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |