|
Description
|
In the package.html files, I find if I use the code for the emdash, "—",
then the string "—" gets rendered--that is, it does not print an emdash.
Have you encountered this before?
xxxxx@xxxxx
How do I get an emdash into the output. — If I put this escape sequence
in one of my html files it looks fine in a browser but the mifdoclet does not
recognize it.
xxxxx@xxxxx
|
|
Evaluation
|
The justification for — being used for an em-dash comes from
two sources:
- ANSI table defines 151 to be an em-dash (and 150 to be en-dash)
http://www.fingertipsoft.com/3dkbd/ansitable.html
- Dreamweaver inserts — when inserting an em-dash
xxxxx@xxxxx 2002-06-13
We have a hand-built HTML parser that we add entities to by request.
Currently, the only entities we support are:
< less than (<)
> greater than (>)
& ampersand (&)
non-breaking space
® registered trademark
© copyright
As documented at:
http://java.sun.com/j2se/javadoc/mifdoclet/docs/mifdoclet.html#mappingofhtmltags
We can define others, but would prefer to use the text name rather than
the number, because it's more readable, such as " " rather than " ".
(We could implemetn the number as well.)
The HTML 4.0 spec defines the following entities for dashes and spaces,
minus sign and plus/over/minus sign and other common characters.
I propose we add all of these. Are there any others you might need?
<!ENTITY ensp CDATA " " -- en space, U+2002 ISOpub -->
<!ENTITY emsp CDATA " " -- em space, U+2003 ISOpub -->
<!ENTITY thinsp CDATA " " -- thin space, U+2009 ISOpub -->
<!ENTITY ndash CDATA "–" -- en dash, U+2013 ISOpub -->
<!ENTITY mdash CDATA "—" -- em dash, U+2014 ISOpub -->
<!ENTITY times CDATA "×" -- multiplication sign, U+00D7
ISOnum -->
<!ENTITY divide CDATA "÷" -- division sign, U+00F7 ISOnum -->
<!ENTITY minus CDATA "−" -- minus sign, U+2212 ISOtech
-->
<!ENTITY plusmn CDATA "±" -- plus-minus sign = plus-or-minus
sign, U+00B1 ISOnum -->
<!ENTITY cong CDATA "≅" -- approximately equal to, U+2245
ISOtech -->
<!ENTITY equiv CDATA "≡" -- identical to, U+2261 ISOtech -->
<!ENTITY ne CDATA "≠" -- not equal to, U+2260 ISOtech -->
<!ENTITY le CDATA "≤" -- less-than or equal to, U+2264
ISOtech -->
<!ENTITY ge CDATA "≥" -- greater-than or equal to, U+2265
ISOtech -->
<!ENTITY prop CDATA "∝" -- proportional to, U+221D ISOtech
-->
<!ENTITY infin CDATA "∞" -- infinity, U+221E ISOtech -->
<!ENTITY bull CDATA "•" -- bullet = black small circle,
U+2022 ISOpub -->
<!ENTITY hellip CDATA "…" -- horizontal ellipsis = three dot
leader, U+2026 ISOpub -->
<!ENTITY deg CDATA "°" -- degree sign, U+00B0 ISOnum -->
These correspond to FrameMaker characters:
ensp
emsp
thinsp
ndash
mdash
times
divide
minus
plusmn
cong
equiv
ne
le \xa3
ge
prop
infin
bull
hellip
deg
xxxxx@xxxxx 2002-04-27
I fixed & #150; to be en dash and & #151; to be em dash.
Also, & #8212; works and has worked for some time.
xxxxx@xxxxx 2002-06-13
|